Home Forums WoodMart support forum Category title nav on home page

Category title nav on home page

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

    y2cjr
    Participant

    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.
    #182583

    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

    #182592

    y2cjr
    Participant

    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;
    #182633

    Hello,

    That is fine. If you have any questions please feel free to contact us.

    Best Regards

Tagged: , , , ,

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Category title nav on home page’ is closed to new replies.