Which file

Hey i would like to use this little BETA banner on my sydney website. However which file can i put in the div tag for it to be in the front all the time? when i try to do it the slider with the big image always overrides the div tag. Which row and document should i place the div tag code for this to work? =)

Hello there,

Try to put it in the footer.php file right before this line <?php wp_footer(); ?>. To only display in the front page, you must wrap that code with is_front_page() conditional tag. So it will look like the following:


<?php if(is_front_page()): ?>
	<div class="corner-ribbon top-left sticky red shadow">Hello</div>
<?php endif; ?>

<?php wp_footer(); ?>

Apply the following CSS code to prevent the sticky header bar overlays your ribbon.


.corner-ribbon{
  z-index: 9999;
}

Let me know how it goes.

Regards,
Kharis

Thanks so much, worked!!

@Kharis Sulistiyono