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.
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
Thank you Nikko, you can mark it as solved.
Hi peterolle,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko