Home Forums WoodMart support forum Problem with H1 product category on woodmart layout and Filter Everyting

Problem with H1 product category on woodmart layout and Filter Everyting

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #653200

    ya.predko
    Participant

    Hello. I have problem with output H1 product category afler filtering. In Filter Everything seo rules set H1 template like a “Category+brand” (Aquariums Juwel). I using Woodmart layout builder for categories.
    But after filtering i see default category name. https://aqua-deco.com.ua/product-category/akvariumy-uk/komplekty-uk/brand-eheim-uk/

    On another theme its work.

    i find this:
    Displaying SEO entities depends on the hooks your active theme uses.

    We can only provide you with a list of hooks that are used for certain SEO entities:

    // For SEO title
    add_filter( ‘wp_title’, array( $this, ‘wpTitle’ ), 15 );
    // For the Meta description
    add_action( ‘wp_head’, array( $this, ‘filtersWpHead’ ), 1 );
    // For H1 title one of these hooks
    add_filter( ‘woocommerce_page_title’, array( $this, ‘seoH1’), -5 );
    add_filter( ‘get_the_archive_title’, array( $this, ‘seoH1’), -5 );
    add_filter( ‘post_type_archive_title’, [$this, ‘seoH1’], -5 );
    add_filter( ‘elementor/utils/get_the_archive_title’, [$this, ‘seoH1’], -5 );

    Check your page template responsible for showing the products on the needed page with filters and look for those hooks.

    #653392

    Luke Nielsen
    Keymaster

    Hello,

    Could you please explain in more detail what exactly should be with the title after filtering? Do you mean that after the title, the brand’s title should also be shown? https://prnt.sc/RqokRF_sd0x3

    Thank you for your time. Looking forward to hearing back from you!

    Kind Regards

    #653424

    ya.predko
    Participant

    Yes. In seo rules of filter plugin I can set h1, title, description. And structure of filtered product page.

    #653432

    Luke Nielsen
    Keymaster

    Hello,

    May I disable the Archive Layout and check how it works without it?

    I await your response.

    Kind Regards

    #653443

    ya.predko
    Participant

    Yes

    #653447

    Luke Nielsen
    Keymaster

    Hello,

    Could you please clarify on which themes you tested it?

    Also, may I enable the default Storefront theme for testing?

    Kind Regards

    #653675

    ya.predko
    Participant

    Yes. It’s theme Flatsome on another shop.

    #653901

    Luke Nielsen
    Keymaster

    Hello,

    Now it works well on my end – https://prnt.sc/OmIJubsngYJv

    https://prnt.sc/wM3SJ5EESwtk

    Clear the cache on your end and check how it works for you.

    Kind Regards

    #653908

    ya.predko
    Participant

    Great! It’s working, thanks.
    What was the problem?

    #653916

    Luke Nielsen
    Keymaster

    Hello,

    We just resaved the Widget’s settings and it started to work.

    Thank you for your time.

    Kind Regards

    #653979

    ya.predko
    Participant

    I’m angry!
    Why do you constantly have to check your support? Why can’t you just do it normally? You installed the main theme by default, not the child theme as before, which is why all the additional functions and styles from the child theme were not implemented… After switching to the child theme, the headers don’t work again! Are you kidding me??????

    #653980

    ya.predko
    Participant

    But thanks to your negligence, I discovered that the conflicting code is the code in the child function.php which displayed the missing products at the end of the list.

    ///product out of stock to end///
    add_filter('posts_clauses', 'order_by_stock_status');
    function order_by_stock_status($posts_clauses) {
        global $wpdb;
        // only change query on WooCommerce loops
        if (is_woocommerce() && (is_shop() || is_product_category() || is_product_tag() || is_product_taxonomy())) {
            $posts_clauses['join'] .= " INNER JOIN $wpdb->postmeta istockstatus ON ($wpdb->posts.ID = istockstatus.post_id) ";
            $posts_clauses['orderby'] = " istockstatus.meta_value ASC, " . $posts_clauses['orderby'];
            $posts_clauses['where'] = " AND istockstatus.meta_key = '_stock_status' AND istockstatus.meta_value <> '' " . $posts_clauses['where'];
        }
        return $posts_clauses;
    }

    Now the question is how to do it in another way, because in the theme settings such a function is marked as deprecated

    #654089

    Luke Nielsen
    Keymaster

    Hello,

    I apologize for any inconvenience you have experienced.

    This option is marked as experimental rather than deprecated. This means the feature is still being actively developed and refined. While it’s available for you to use, we cannot guarantee its complete stability or compatibility with third-party plugins. https://monosnap.com/file/wT2LX7wDDFU6r0qqxD6iSfhiuwY6GM

    Kind Regards

    #654750

    ya.predko
    Participant

    Where is my all wigets?? Why you started regeneration of image??? My hoster block my sites after over limits of regeneration…. What a F*****?????

    #654825

    Artem Temos
    Keymaster

    Hello,

    We didn’t touch your website and didn’t run images regeneration.

    Kind Regards

Viewing 15 posts - 1 through 15 (of 15 total)