Hi,
how to I show category name on products page?

Hi,
how to I show category name on products page?

Hi @matuskm,
By default, category is not included on breadcrumb of product pages. It may be possible with custom development but that would be outside the scope of our support. Please check this thread as guide.
For the dropdown ordering to align right, please add the following CSS on Theme Options > Global CSS
.woocommerce-ordering {
float: right;
}
Hope this helps.
Thank you but I need name category show in tag e.g. <h1>CATEGORY NAME</h1> on page products.
Name category as headline.
Not breadcrumb but thank you for link, helped me it :).
Hey Teem,
This would require custom development as this is not a theme feature by default and is outside of our support scope, but we will do our best to help you getting started with the customization but we will not be able to implement it. You can try adding the following script in the Theme Options > JS:
jQuery(document).ready(function($){
if( $('body').hasClass('archive') && $('body').hasClass('woocommerce') ) {
var category = $('.x-crumbs-list .x-crumbs-current > span').html();
$('ul.products').prepend('<h1 class="h-landmark"><span>'+ category +'</span></h1>')
}
});
Please note that the code provided above serves as a guide only and is to help you in getting started so implementing it and maintaining the code will be out of our support scope and for further maintenance for new possible versions of the theme that may cause the customization to break, you will need to hire a developer.
Hope this helps!
Hi,
this script not work.
Hi Teem,
I think you can utilize the Dynamic Content feature (see Pro 2.5.0, X 6.5.0, Cornerstone 3.5.0 – Notes). On your category header, under the bar with breadcrumbs. Add another Bar (or have the same bar but set the Flexbox child alignment to Column so the title will go under the breadcrumbs)
Add a Text element, configure that text element and have this on it’s content {{dc:archive:title}}
that text element should now output the Category title.
Hope it helps,
Cheers!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.