Default Title and Description for Social media

#48074
  • Resolved C.K.
    Rank Math pro

    Default Title and Description for sharing on Facebook and Twitter are taken from the SEO Title and SEO Description that set in the General Tab, but this isn’t suitable for me, I keep empty description field on general tab and I don’t want to customize social title/desc. for every page either

    I can’t find any global setting for social title/desc ( there should be one ), is there a filter or option to do this?

    thank you
    c.k.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Todd
    Rank Math free

    Hello,

    Thanks for getting in touch with us.

    There is no option to choose a global setting just for social tags. You have to change them manually from the social tab if you want them to be different than your post/page title and meta description.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    C.K.
    Rank Math pro

    Hi,

    could you plz add this ticket as a feedback & feature request.
    I previously told you about the link of facebook at

    Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday09:00 – 17:00

    it opens in same page while it should be open in new page, I didn’t see this fixed yet.

    Thanks

    Alberto
    Rank Math business

    Hello,

    I will notify the devs with your suggestions and hopefully they will be added in a future update.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Hello,

    By default, Rank Math uses SEO Title & Description as fallback if a value is not entered in the Social fields. You can change this by using the following filter code:

    
    add_filter( "rank_math/opengraph/facebook/og_description", function( $content ) {
        return 'Facebook Description';
    });
    
    add_filter( "rank_math/opengraph/twitter/twitter_description", function( $content ) {
        return 'Twitter Description';
    });
    
    add_filter( "rank_math/opengraph/facebook/og_title", function( $content ) {
        return 'Facebook Title';
    });
    
    add_filter( "rank_math/opengraph/twitter/twitter_title", function( $content ) {
        return 'Twitter Ttile';
    });
    
    

    Please add this filter code in your theme’s functions.php file and change the text.

    I hope that helps.

    C.K.
    Rank Math pro

    Hi Pratik,
    -is there short method/filter to let the Rank Math uses schema headline and description as fallback if a value is not entered in the Social fields (instead of SEO Title & Description) this really should be added as an option through the dashboard instead of editing every single page

    thank you
    c.k.

    Hi CK,

    Thanks for the follow up.

    The schema data uses the %seo_title% and %seo_description%. The best way forward would be to use the filter provided by the my colleague above.

    I hope this helps. Thank you.

    C.K.
    Rank Math pro

    Hi Michael,

    can you plz add it as feedback & feature request to add an option at dashboard for global social media title/desc.

    the dynamic variables didn’t work inside the filter Pratik provided?!

    thank you
    c.k.

    Todd
    Rank Math free

    Hello,

    Sure, we will see what we can do about that.

    I can’t promise anything but we will consider it.

    Thank you.

    C.K.
    Rank Math pro

    Hi Todd,
    the dynamic variables for titles/desc. don’t work inside the filters?!!

    thanks
    c.k.

    Alberto
    Rank Math business

    Hello,

    No, dynamic variables are processed by WordPress backend and the code Pratick provided is plain PHP code.

    Looking forward to help you.

    C.K.
    Rank Math pro

    hi Alberto,
    if I cant use dynamic variables with the filter then it wont be helpful!!
    is there any method to make schema the default fallback for social!!!

    thanks
    ck

    Hello,

    Thank you for contacting Rank Math today.

    I don’t think it is possible to use schema data for social meta.I’ll however consult on this and will get back to you.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Todd
    Rank Math free

    Hello,

    My colleague is right, it is not possible.

    However, we will see if we can add this feature down the line.

    For now, you will need to make changes manually and have the social media tab use the data from the SEO title and SEO Description.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

Viewing 13 replies - 1 through 13 (of 13 total)

You must be logged in to reply to this ticket.