Why isn't this div showing?
-
Hi there,
I am using wordpress to design a website. I bought a theme and installed it. I am trying to fit a small div next to my header logo, so I’m trying to have the same as the attached screenshot. However, I can’t seem to get it to work. I’ve edited the header.php file and the css file but it’s still not showing.
The header.php code is:
<div id="top"> <?php $logotype = get_option('templatesquare_logo_type'); $logoimage = get_option('templatesquare_logo_image'); $sitename = get_option('templatesquare_site_name'); $tagline = get_option('templatesquare_tagline'); if($logoimage == ""){ $logoimage = get_bloginfo('template_url') . "/images/logo.png"; } ?> <?php if($logotype == 'textlogo'){ ?> <div id="logo"> <?php if($sitename=="" && $tagline==""){?> <h1><a href="<?php echo get_option('home'); ?>/" title="<?php _e('Click for Home','templatesquare'); ?>"><?php bloginfo('name'); ?></a></h1> <span class="desc"><?php bloginfo('description'); ?></span> <?php }else{ ?> <h1><a href="<?php echo get_option('home'); ?>/" title="<?php _e('Click for Home','templatesquare'); ?>"><?php echo $sitename; ?></a></h1> <span class="desc"><?php echo $tagline; ?></span> <?php }?> </div><!-- end #logo --> <div id="media"><p>test</p></div> <?php } else { ?> <div id="logo"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo $logoimage;?>" alt="" /></a></div><!-- end #logo --> <?php }?> </div><!-- end top -->
and the css code is:
#top{height:125px;} #logo{width: 750px; height: 125px;} #media{width: 170px; height: 125px; background: red; margin:0px 0px 0px 760px; float: right;}
Can anyone please help me to make this media div visible? The link to the site is https://martins.ie/newsite/. Thank you
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Why isn't this div showing?’ is closed to new replies.