I want to display the footer sidebar only in my blog section (i added tags to post and added a tagcloud to the footer in the widget section).
So in my footer.php i replaced
<?php get_sidebar( 'footer' ); ?>
with
<?php if( is_page_template( 'template-blog-full-width.php' ) ) : ?>
<?php get_sidebar( 'footer' ); ?>
<?php endif; ?>
It works fine, see here on my test blog.
My problem is that I want to add the footer sidebar allso on the “tag page” to let users navigate through tagcould. example of “tag page”
I tried few thing without succes.
i saw a “tag page” is
page-template-template-full-width-php
so i tried
<?php if( is_page_template( 'template-blog-full-width.php' ) || ( is_page_template( 'template-full-width.php' ) ) ) : ?>
<?php get_sidebar( 'footer' ); ?>
<?php endif; ?>
or
<?php if( is_page_template( 'template-blog-full-width.php' ) || ( is_page_template( 'template-full-width.php' ) && ! is_paged() ) ) : ?>
<?php get_sidebar( 'footer' ); ?>
<?php endif; ?>
But this doesn’t work, so i’m wondering how to display the footer sidebar also on “tag page” ?
PS:for any question, images are me, my wife, and my lovely daughter. π
You have the is_tag()
conditional for tag archives.
This works fine.
Thank you for the help