PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

SEO URL request - H1 and Meta Descriptions not work, search in website

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

I installed your plugin on my site and have a few questions.

1) SEO URL request - H1 and Meta Descriptions aren't being replaced on pages. Title and SEO text are being replaced correctly.

The Yoast SEO plugin is installed on the site.

2) I only need the plugin for product filtering. Is it possible to disable site search using your plugin?

Thanks in advance

Hello

  1. Provide please exact link and screen of page code what is corrent and what is wrong by your idea. You can see page code using CTRL+U for example
  2. Here is not option but you can do it by code placed into file functions.php:

    add_action('template_redirect', function() { if (is_search() && !is_admin()) { wp_redirect(home_url('/shop/')); exit; } });

    OR

    add_filter('posts_search', function($search, $query) {
    if (!is_admin() && $query->is_search() && $query->is_main_query()) {
    $search =" AND 0=1";
    }
    return $search;
    }, 10, 2);

Welcome!

Link - https://www.gmformula.ru/product-category/masla-gidravlicheskie/swoof/5vyazkost-iso-46/
H1 - The"h1" tag disappears
Descriptions - The same as on the main page of the online store

<!-- This site is optimized with the Yoast SEO plugin v24.6 - https://yoast.com/wordpress/plugins/seo/ -->
<title>Гидравлические масла ISO 46 - купить в интернет магазине</title>
<meta name="description" content="Каталог масел в GM-Formula. Индивидуальный подход к каждому клиенту. Удобная форма заказа на сайте, варианты форм оплаты. Доставка по Санкт-Петербургу и всей России." class="yoast-seo-meta-tag" />

Settings - https://drive.google.com/file/d/1LsU9wuLNpk1-lo72BFvmcNfir71uydve/view?usp=sharing

 

Hello

So, we just checked it on the basic set  of scripts (woo+woof+yoast+wp theme twentytwelve) and its works. Try next please:

  1. use /5vyazkost-iso-46/ in rules then check
  2. if no luck create stage site using https://wordpress.org/plugins/duplicator/ and disable there all plugins exept to check woo+woof+yoast
  3. if doesn work also, change wp theme to see if theme has prevent code inside

If you do not have knoweledge how to check it you can provide us with stage site access (wp-admin + ftp) in the private area of this ticket

Also please provide actual purchase code

https://share.pluginus.net/image/i20230222134241.png
https://share.pluginus.net/image/i20230222134615.png
https://share.pluginus.net/image/i20230222134511.png

 

Can you tell me how to access the plugin from my theme? So I can check if the page has the rule specified and display the 'h1' tag in the theme?

Hello

I think I understand the confusion now.

Your site's internal search (the search box in your theme) searches through actual content - product titles, descriptions, posts, etc. HUSKY filter pages are not part of this search because they are dynamic URLs, not actual database entries.

HUSKY SEO URLs (like /brand/nike/color/red/) are generated dynamically when someone uses filters. These pages don't exist in WordPress database as posts or pages.

For Google/external search engines to find these URLs, you need to:

  1. Add them to your sitemap.xml
  2. HUSKY has a setting to generate SEO URLs for sitemaps
  3. Submit the sitemap to Google Search Console

Your internal site search will NOT find HUSKY filter pages - it only searches real products/posts. This is normal behavior.

If you want HUSKY filter combinations to appear in Google search results, make sure:

  • SEO URLs are enabled in HUSKY settings
  • The URLs are added to your sitemap
  • Meta descriptions and H1 tags are configured in HUSKY

For some reason, this condition (highlighted in bold in the code) isn't met in the code. Because of this, the H1 tag isn't being replaced.

    public function set_page_title($title, $id) {
        $rule = $this->check_search_rules();
        if ($rule && is_page($id) && $this->do_index()) {
            if (isset($rule['h1']) AND $rule['h1']) {
                $title = apply_filters('woof_seo_h1', $this->replace_vars($rule['h1'], $this->get_current_replace_vars()));
            }
        }
        return $title;
    }