Image into page title area
-
Hi,
I’m trying to add different images in page title area. That I done, but I have problem with CSS. My CSS code simple not working ?? Where can be the problem?my code in content-page.php
<header class="entry-header"> <h1 class="entry-title"> <?php the_title(); ?> </h1> <div class="pus-iko"> <?php if (is_page('apie-mus')) { echo '<img src="/naujas/wp-content/uploads/2015/04/apie-mus.png" alt="Apie mus">'; } if (is_page('paslaugos')) { echo '<img src="/naujas/wp-content/uploads/2015/04/paslaugos.png">'; } if (is_page('video')) { echo '<img src="/naujas/wp-content/uploads/2015/04/video-galerija.png">'; } if (is_page('projektai')) { echo '<img src="/naujas/wp-content/uploads/2015/04/projektai.png">'; } if (is_page('partneriai')) { echo '<img src="/naujas/wp-content/uploads/2015/04/Partneriai.png">'; } if (is_page('kontaktai')) { echo '<img src="/naujas/wp-content/uploads/2015/04/kontaktai.png">'; } ?> </div> </header>
and my code in style.css:
#pus-iko { float: right; border: 1px solid #000; background-attachment: red; }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Image into page title area’ is closed to new replies.