47 users online (1 members and 46 guests)  


Page 1 of 2 1 2 Last
  Results 1 to 15 of 18

Related

  1. Template help    Forum: HTML Forum
    Replies: 8
  1. #1
    urban's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    8

    Trying to get swf into a template

    Hi All,

    This is probably not the ideal place for this thread, but it seemed the best fit. I'm pretty fluent in html and basic css, but I've encountered a problem I am hoping somebody can help me with.

    I downloaded a blog template which is full css and I'm trying to replace the static logo with a flash header but I'm not winning at all. I'm not exactly sure how to edit the template and css to accommodate the flash. Here is the html and css:

    Code:
    <div class="clear"></div>
    <div id="top"> 
    <div class="blogname">
    	<h1><a href="<?php bloginfo('siteurl');?>/" title="<?php bloginfo('name');?>"><?php bloginfo('name');?>
    </a>
    </h1>
    </div>
    </div>
    I'm trying to get the flash to display in the 'top' id basically, the css is as follows:

    Code:
    #top {
    	height:160px;
            background:#ffffff;
    	margin:auto;
    	width:1000px;
    	border-bottom:1px solid #c3c3c3;
            border-top:1px solid #c3c3c3;
    	
    	}
    .blogname {
    	width:800px;
    	font-family:Georgia ,Century gothic,Verdana,Tahoma,sans-serif;	
    	margin:0px 0 0 0px;
        float:left;
    	background-repeat:no-repeat;
    
    	}
    .blogname h1  {
    	font-size:125px;
    	padding:0 0 0px 0;
    	font-weight:normal;
    	color:#cacccd;
    	text-align:left;
    	margin:0px 0 0 0px;
    	text-indent:-9000px;
    background:url(images/logo.png) no-repeat;
    	
    	}
    You can see that is where you insert the logo image that I am trying to replace. If anybody could help me with this I would really appreciate it.

    Thanks in advance!

  2. #2
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: Trying to get swf into a template

    Your code does not show where the current logo is but my guess would be that you want to include it between
    Code:
    <div id="top"> 
    <div class="blogname">
    Something tells me I am missing something here though.
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  3. #3
    urban's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    8

    Re: Trying to get swf into a template

    At the moment the logo is called by the css via the blogname h1 style. It shows in the css above. Right off the bat I also tried to put it where you have just said but that seems to distort the header pretty badly, I'm under the impression that I'm also missing something really ssimple here.

    I dunno if I'm allowed to post my url or not, I'm sure that would also make life a bit easier.

  4. #4
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: Trying to get swf into a template

    ou can post the URL just leave off the http://www.
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  5. #5
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: Trying to get swf into a template

    Are you trying to replace the entire header, or still have the text, etc. there still?

  6. #6
    urban's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    8

    Re: Trying to get swf into a template

    thx, the url is uag.co.za you can see where the logo is now, that is where i'm trying to get the flash in

  7. #7
    urban's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    8

    Re: Trying to get swf into a template

    Im just trying to get my header in the white bit. AFAIK there is no text, the code that is there now just creates a hotspot over the logo.....

    Quote Originally Posted by jthayne View Post
    Are you trying to replace the entire header, or still have the text, etc. there still?

  8. #8
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: Trying to get swf into a template

    There is text but it is hidden,

    PHP Code:
    <h1><a href="http://www.uag.co.za/" title="Urban Aluminium &amp; Glass">[b]Urban Aluminium &ampGlass[/b]</a>
    </
    h1
    1 - images do not belong in header tags (h1) only text.

    2- Hiding text is a huge no no, especially in a header tag. This could very well result in Google penalties.

    Give me a minute to put something together.
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  9. #9
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: Trying to get swf into a template

    can you post your flash.
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  10. #10
    urban's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    8

    Re: Trying to get swf into a template

    Thx HTML, I really appreciate the help. This is also the first time I have ever seen a img tag in a H1 style.

    I take it you want the flash code?

    Quote Originally Posted by HTML View Post
    can you post your flash.

  11. #11
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: Trying to get swf into a template

    Never mind on the flash.

    Try changing
    Code:
    <div class="clear"></div>
    <div id="top"> 
    <div class="blogname">
    	<h1><a href="http://www.uag.co.za/" title="Urban Aluminium &amp; Glass">Urban Aluminium &amp; Glass</a>
    </h1>
    </div>
    </div>
    to

    Code:
    <div class="clear"></div>
    <div id="top"> 
    <div class="blogname">
    INSERT FLASH HERE
    </div>
    </div>
    and change

    Code:
    .blogname h1  {
    	font-size:125px;
    	padding:0 0 0px 0;
    	font-weight:normal;
    	color:#cacccd;
    	text-align:left;
    	margin:0px 0 0 0px;
    	text-indent:-9000px;
    background:url(images/logo.png) no-repeat;
    	
    	}
    to

    Code:
    .blogname {
    	padding:0 0 0px 0;
    	color:#cacccd;
    	margin:0px 0 0 0px;	
    	}
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  12. #12
    urban's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    8

    Re: Trying to get swf into a template

    ok, made the changes and it hasn't broken the template, however, the flash doesn't seem to be showing up

  13. #13
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: Trying to get swf into a template

    You put the wrong location into the call.

    Try http://www.uag.co.za/wp-content/themes/epsilon/images/header.swf

    (leaving out "public_html")
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  14. #14
    urban's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    8

    Re: Trying to get swf into a template

    what a silly mistake. Thx HTML!!

    Now that I've found this place I'll do my best to hang around and help out where I can

  15. #15
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: Trying to get swf into a template

    Glad you got it fixed, even happier to have you around

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting



Page 1 of 2 1 2 Last

Tags for this Thread