Category title nav on home page
-
Hi there, is it possible to have the Category page title nav appear on the home page please? Would I have to add it with a php include? Or a shortcode?
Thanks.
Attachments:
You must be
logged in to view attached files.
Hello,
There is no option to add the title with the categories to the page. You can just recreate this with an Information box with an icon. You can see the demo here: https://woodmart.xtemos.com/infobox/ consider Infobox with image left.
Insert the infoboxes into the row with a background and you would get almost the same.
The disadvantage is that you will have manually add the categories, the advantage is that you would determine which categories to show and in which order.
Best Regards
Hi Elise,
Ive actually managed it by editing the template-tags.php file with:
// Heading for pages
if( is_singular( 'page' ) && ( ! $page_for_posts || ! is_page( $page_for_posts ) ) ):
$title = get_the_title();
?>
<div class="page-title <?php echo esc_attr( $title_class ); ?>" style="<?php echo esc_attr( $style ); ?>">
<div class="container">
<div class="nav-shop">
<?php if( ! is_singular( "product" ) && $shop_categories ) woodmart_product_categories_nav(); ?>
</div>
</div>
</div>
<?php
return;
endif;
Hello,
That is fine. If you have any questions please feel free to contact us.
Best Regards
The topic ‘Category title nav on home page’ is closed to new replies.