Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1296397

    I need to add some content to the bottom of the page, just above footer_color in all my posts. This means the content should show just when it is a single post.

    Editing footer.php and adding my content above <div class='container_wrap footer_color' id='footer'> works, but the custom content appears everywhere in the site.

    How to just show it in single?

    Thanks.

    #1296525

    Hi peterolle,

    You can use conditional tags for that: https://developer.wordpress.org/themes/basics/conditional-tags/
    In this case use is_single() the code should look like:

    <?php if( is_single() ) { ?>
    <div class='container_wrap footer_color' id='footer'>
      Some Content Here...
    </div>
    <?php } ?>

    Hope this helps.

    Best regards,
    Nikko

    #1296536

    Thank you Nikko, you can mark it as solved.

    #1296582

    Hi peterolle,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Custom content above footer_color in single posts’ is closed to new replies.