Yoast SEO - remove og description and twitter description

0 votes
how can i remove the og:description and twitter:description tag for a certain page with the yoast-seo plugin?
Feb 26, 2022 in Others by Kichu
• 19,050 points
1,767 views

1 answer to this question.

0 votes
add_filter("wpseo_opengraph_desc", "remove_yoast_og");
add_filter("wpseo_twitter_description", "remove_yoast_og");
function remove_yoast_og($description) {
    if (is_page(1093)) {
        return false;
    }

    return $description;
}
just use this code and it will work for sure 
answered Feb 27, 2022 by narikkadan
• 63,680 points

Related Questions In Others

0 votes
1 answer

SEO META TAG og:description vs description

your at a wrong assumption actually this ...READ MORE

answered Feb 20, 2022 in Others by narikkadan
• 63,680 points
731 views
0 votes
1 answer

Yoast plugin is not showing meta description and meta keyword can i get an answer

function set_head_keywords() { $id ...READ MORE

answered Feb 20, 2022 in Others by narikkadan
• 63,680 points
501 views
0 votes
1 answer

Yoast plugin is not showing meta description and meta keyword

function set_head_keywords() { $id ...READ MORE

answered Feb 24, 2022 in Others by narikkadan
• 63,680 points
2,060 views
0 votes
1 answer

Yoast Seo breadcrumbs: How to add custom text to category and tag name

add_filter('wpseo_breadcrumb_single_link', 'filter_breadcrumbs_for_h1', 10, 2); function filter_breadcrumbs_for_h1($link_output, $link) {     if ...READ MORE

answered Feb 25, 2022 in Others by narikkadan
• 63,680 points
1,439 views
0 votes
1 answer

Yoast SEO: remove og:description and twitter:description

add_filter("wpseo_opengraph_desc", "remove_yoast_og"); add_filter("wpseo_twitter_description", "remove_yoast_og"); function remove_yoast_og($description) { ...READ MORE

answered Mar 1, 2022 in Digital Marketing by narikkadan
• 63,680 points
655 views
0 votes
1 answer

Simple question regarding PHP, Wordpress & Yoast SEO

the way the search engine displays your ...READ MORE

answered Feb 14, 2022 in Others by narikkadan
• 63,680 points
480 views
0 votes
0 answers

Yoast SEO/Facebook OG: Image not displaying after fb url change

i recently changed the name of my ...READ MORE

Feb 14, 2022 in Others by Kichu
• 19,050 points
743 views
0 votes
1 answer

Wordpress seo silo category/term-tree for sidebar

function children_sidebar_shortcode( $atts ) { ...READ MORE

answered Feb 26, 2022 in Others by narikkadan
• 63,680 points
778 views
0 votes
1 answer

Yoast SEO remove og description and twitter description on certain page

try this out it wil help ...READ MORE

answered Feb 11, 2022 in Others by narikkadan
• 63,680 points
553 views
0 votes
1 answer

Yoast Seo breadcrumbs: How to add custom text to category and tag name

use this code  add_filter('wpseo_breadcrumb_single_link', 'filter_breadcrumbs_for_h1', 10, 2); function filter_breadcrumbs_for_h1($link_output, ...READ MORE

answered Feb 12, 2022 in Others by narikkadan
• 63,680 points
680 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP