Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    not really, but can you elaborate a little bit what you’re trying to do please?

    thx

    Thread Starter moderworks

    (@moderworks)

    Thank you for the quick response!

    I plan to switch to SEOPress with Yoast SEO.

    I need to remove meta tags from one of the pages. I use:

    function disable_seopress_meta_description($meta_description) {
    if (is_page(32537)) {
    return '';
    }
    return $meta_description;
    }
    add_filter('seopress_titles_desc', 'disable_seopress_meta_description');
    function disable_seopress_canonical($canonical_url) {
    if (is_page(32537)) {
    return '';
    }
    return $canonical_url;
    }
    add_filter('seopress_titles_canonical', 'disable_seopress_canonical');

    It works. But I don’t know how to disable meta property

    This is for “peepso”. Your plugin does not work correctly with groups, they have the same id with the parent page.

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Return false should do the trick:

    return false;

    Thread Starter moderworks

    (@moderworks)

    There are no problems with this.

    How to delete:

    meta property=”og:url”
    meta property=”og:site_name”
    meta property=”og:locale”
    and so on…
    The whole block.

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    With these hooks it should work too:

    https://www.seopress.org/support/hooks/#topic-78

    Thread Starter moderworks

    (@moderworks)

    No such hook ((

    I tried like this:

    functiondisable_seopress_og_tags($og_tags) { if (is_page(32537)) { unset($og_tags['og:url']); unset($og_tags['og:site_name']); unset($og_tags['og:locale']); unset($og_tags['og:type']); unset($og_tags['article:author']); unset($og_tags['article:publisher']); unset($og_tags['og:title']); } return $og_tags; } add_filter('seopress_social_og_output', 'disable_seopress_og_tags');

    This does not work. Any options?

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    This filter seopress_social_og_output doesn’t exist.

    For example, to disable OG Title, use this snippet:

    add_filter('seopress_social_og_title', '__return_false');

    Do the same for other metas (https://www.seopress.org/support/hooks/#topic-78)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to disable SEOPress on a specific page by id?’ is closed to new replies.