Alter the Shop Page Subheading

// Alter the Shop page subheading
function my_alter_shop_page_header_subheading( $subheading ) {
 
    if ( is_shop() ) {
        $subheading = 'My shop page subheading';
    }
 
    // Return the subheading
    return $subheading;
    
}
add_filter( 'ocean_post_subheading', 'my_alter_shop_page_header_subheading' );

All PHP snippets should be added via a child theme's functions.php file.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.