Add subheading to category page
-
I want to add subheading to my product category pages.
I tried this code, which I put together from two other snippets. One to remove the sidebar from the product category page and one to remove subheading under products page title.
function add_subheading_to_category( $subheading ) { // Set subheading to Yoast Breadcrumb if ( is_shop() || is_product() || is_product_category() ) { $subheading = '[wpseo_breadcrumb]'; } // Return the subheading return $subheading; } add_filter( 'ocean_post_subheading', 'add_subheading_to_category' );
Unfortunately it does not work and I do not get the reason for this.
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add subheading to category page’ is closed to new replies.