Support » Plugin: Ocean Extra » Ocean world settings don’t work on woocommerce category pages

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Try to follow the documentation to do it – https://docs.oceanwp.org/article/203-altering-layouts

    Because I’m not that good at coding so I did it with the ocean extra plugin but it doesn’t show up on woocommerce category page edit section

    • This reply was modified 5 months, 2 weeks ago by  brandeeenie. Reason: Grammer

    OceanWP settings will not appear on the woocommerce category pages.
    You need to add the below code the functions.php file of the child theme or use code snippet plugin to add the code –

    function my_post_layout_class( $class ) {
    	if ( is_shop() || is_product() || is_product_category() ) {
    		$class = 'full-width';
    	}
    	return $class;
    }
    add_filter( 'ocean_post_layout_class', 'my_post_layout_class', 20 );

    Thank you👍😀

    One more thing though how do you get rid of the title in the category page since oceanwp settings don’t appear in the woocommerce edit category page

    Link: https://dogy-shop.com/product-category/dog-accessories/

    It’s the “Dog Accessories” bit I want removed

    To remove the page title from all the pages, go to Customize > General options > Page Title and select Hidden from the Style dropdown.

    TO remove it only from the product category page, add the below code to the functions.php file of the child theme –

    function disable_title( $return ) {
        if ( is_product_category() ) {
            $return = false;
        }
        return $return; 
    }
    add_filter( 'ocean_display_page_header', 'disable_title' );

    Last thing, how can you put the elementor editor on the woocommerce category pages

    It can’t be possible to edit a category page with Elementor. You need to use the Elementor Theme builder to create your custom archive template.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.