Public Ticket #3725824

Elementor Page Title Problem

Closed
Comments
100 Tickets 17
Tasos started the conversation 2 years ago on September 16, 2024 at 3:22pm

Hi. When using Elementor custom page there is a problem. In Title of page instead of showing vendors name it shows Stores-List - Sitename

The best for SEO is to have the ability of Vendors Name - Sitename

Is this possible?

Thank you

1
2,762
KingsPlugins replied 2 years ago on September 18, 2024 at 2:54pm

I believe you can do that, by adding the following PHP snippet to the site:

add_filter('pre_get_document_title', 'marketking_seo_title', 1000);
function marketking_seo_title($title){
    $vendor_id = marketking()->get_vendor_id_in_store_url();
    if ($vendor_id !== 0){
        $title = marketking()->get_store_name_display($vendor_id);
    }
        
    return $title;
}

It should then use the store name as the page title when on the vendor store page.

1
2,762
KingsPlugins replied 2 years ago on September 26, 2024 at 6:38am

Hi again,

I've been looking into the issues with this snippet and I believe I have a fix for both the issue on facebook and the issue with this appearing on all URLs:

https://pastecode.io/s/3er836ix

 

I've also tested with that facebook debugger on our demo + the above code snippet, and the link appears correctly:

5351180105.png

 

Please try it with this snippet.

Regarding RankMath, I've been looking at it, but a special integration is needed - I think it is more realistic for product pages because those are actual pages (the vendor store page is a dynamically generated page).

1
100 Tickets 17
Tasos replied 2 years ago on September 26, 2024 at 9:04am

The vendor link changes the title normally but in debugger fb still have errors.

I think the most suitable is to make the vendors a custom taxonomy? So it can play well with RankMath

Another thing i was thinking is that vendors are not going on sitemap. 


I used this code and works fine as title and in og for social too.(my meta keys are in ACF to make them easier to edit them in vendor page as shortcodes)

https://pastecode.io/s/c1xmvwm4

2,762
KingsPlugins replied 2 years ago on September 30, 2024 at 3:11pm

Regarding the sitemap, I'm not really sure what the solution could be - I guess it depends on how the sitemap plugin generates it.

Generally a crawler should be able to get all links / all vendor pages, so it would only work if the sitemap generator actually crawls the site.

 

 

100 Tickets 17
Tasos replied 2 years ago on November 23, 2024 at 8:31pm

Maybe you should examine vendors to be custom taxonomies? I'm not sure. In rank math now I cannot see the vendors in the site map only the products and categories 🤔

2,762
KingsPlugins replied 2 years ago on November 25, 2024 at 2:01pm

I think a taxonomy for vendors would not really help, because I imagine that would just lead to incorrect links in Rankmath (e.g. site.com/archive/vendor).

I think we need to either add those as custom URLs (manually) to the sitemap: https://support.rankmath.com/ticket/add-specific-url-to-sitemap/ 

or do a custom integration between MarketKing and Rankmath.

We are open to the latter but it's not really something I could do now quickly.

100 Tickets 17
Tasos replied 2 years ago on November 25, 2024 at 2:16pm

Since we make custom role for each vendor we will create a snippets and add all vendors to a custom sitemap. Will let you know when its done in case it helps. But it certainly need to have either a CPT or custom role for vendor in order to recognize it.


Thank you

100 Tickets 17
Tasos replied 2 years ago on February 4, 2025 at 6:06pm

Hello there.

Do you have any plan to inegrate with rank math or make vendors a CPT so Rank math can add more functions to vendor pages?

Thank you!

2,762
KingsPlugins replied 2 years ago on February 6, 2025 at 10:47pm

Hi there,

Thank you for the feedback on that,

We are open to that and I know some plugins like Dokan do have a Rank Math module for product pages. I understand you'd be more interested in the vendor page. It's certainly an option for the future but I can't say we have an immediate plan for this right now.

2,762
KingsPlugins replied 2 years ago on February 9, 2025 at 11:57pm

A CPT would represent a Custom Post Type? It's possible I am not understanding it correctly as I am not super familiar with Rank Math, but I don't see how that could work.

I'm thinking that a vendor store page has a structure such as site.com/stores-list/vendor or site.com/vendor . Since a custom post type does not have that kind of frontend URL I am not sure how Rank Math could set SEO settings for the URL, even if we did have the settings page in place.

Any feedback is welcome.

100 Tickets 17
Tasos replied 2 years ago on February 10, 2025 at 6:49pm

Custom Post type (cpt) can works well with rank math so every vendor will be readed in sitemaps xml with better control I suppose.

For now we use custom snippets on order to make rank math to see the dynamic vendor pages og data and meta details for better seo performance.

Sign In