• Resolved magz_m

    (@magz_m)


    Hi,

    Thanks for this great plugin, I love the amount of customization it allows. I am, however, noticing a problem with the ecommerce portion of my website – none of the ecommerce pages are getting indexed by search engines. I noticed that all of those pages feature og:url code that points them to a single page – the one with the ecommerce plugin’s shortcode.

    I understand SEO Ultimate has no control over pages generated by other plugins, but I was wondering if it could be possible to eliminate the og:url code just from that one page that has the WPOS shortcode, I think that might fix the problem. If so, how would I go about that?

    For reference, the page in question is https://marfioneguitars.com/all-strings-nylon-store/ and pages linked to from it (all the catalog links, etc.) contain the following code: <meta property=”og:url” content=”https://marfioneguitars.com/all-strings-nylon-store/&#8221; /> which makes search engines view them all as that one page.

    Any advice will be much appreciated. Thank you,
    Magz

    https://www.ads-software.com/extend/plugins/seo-ultimate/

Viewing 1 replies (of 1 total)
  • Thread Starter magz_m

    (@magz_m)

    OK, I figured out on my own how to remove the og:url as well as other repetitive code from the page in question. It’s too soon to tell if this will indeed fix the indexing issue, but so far I’m not noticing anything being broken, so life is good. PLEASE if you know or think that what I’m describing below will/might cause trouble, do let me know.

    Here’s what I did:

    In the following file:
    /seo-ultimate/modules/opengraph/opengraph.php

    I added a snippet of code below the section that starts with:
    if (is_home()) {

    and just above the line:
    } elseif (is_singular()) {

    The snippet I added is:

    } elseif (is_page(‘###’)) {
    $tags[‘og:type’] = ‘catalog’;

    (replace ### with the ID of the page you wish to exclude)

    Now when I look at page source for my store pages, they don’t have the OG description/keywords/URL (that were previously identical for each store page), but the product pages do have their individual descriptions and keywords set up using the ecommerce plugin’s SEO functionality. At the same time, all of the non-store pages and posts have all of the OG info as before.

    Regards,
    Magz

Viewing 1 replies (of 1 total)
  • The topic ‘Is it possible to disable og:url code for selected pages?’ is closed to new replies.