Conditional tag for course archive page
-
Hi,
My site uses a code to display content above the blog pages & archive pages but not on Woocommerce. I installed Tutor and I want to make it so the blog extra content sin’t displayed but I cannot seem to find the right conditional tag.
What should I use?
this is y code where is_category does not work:
// Add blog menu on blog pages - archives & blogpages function blog_menu() { if ( is_archive() && !is_woocommerce() || !is_category('courses') || is_home() ) { ?> <div class="blog-header"><?php echo do_shortcode( '[ca-sidebar id="10193"]' ); ?></div> <?php } } add_action('astra_content_top', 'blog_menu');
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Conditional tag for course archive page’ is closed to new replies.