How to change category title
-
Hello,
I want to change the category title in woocommerce.
Now, it shows the first product title, because I’ve made some changes:
“if(is_singular(‘portofolio’) || is_attachment()){
echo ‘<h1 class=”pagetitle”><span>’.get_the_title().'</span></h1>’;
}elseif( function_exists(‘is_woocommerce’) && is_woocommerce() ){
echo ‘<h1 class=”pagetitle”><span>’;
the_title();
echo ‘</span></h1>’;
}elseif(is_single()){echo ‘<h1 class=”pagetitle”><span>’.get_the_title().'</span></h1>’;”
How can i do this? Thank you!
- The topic ‘How to change category title’ is closed to new replies.