Rank math and tutor lms

#850376
  • Resolved K World
    Rank Math free

    Hello, I have tutor LMS Pro which has a certificate page for every student who completed the course and can also share the certificate on social media but when the certificate is shared it only appears as a link. there is no preview for the certificate… can I make an open graph using rank math that can make a preview for the certificate when shared?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello, we apologize for the issue you are facing with the certificate sharing on social media.

    Yes, you can use Rank Math to set up Open Graph meta tags for your certificate pages, which will help create a preview when shared on social media. Here’s how you can do it:

    1. Set Open Graph Image for the Certificate Page: You can add a specific Open Graph image for the certificate page by editing the page in WordPress. In the Rank Math Meta Box, navigate to the Social tab and upload an image that you want to display when the certificate is shared.

      Add featured image

    2. Check Image Dimensions and Format: Ensure that the image you are using meets the recommended dimensions of 1200px X 630px and is in a supported format (JPEG, PNG, GIF, WebP). If the image dimensions are too small or too large, social networks may not display it correctly.

    3. Set Default Open Graph Image: If you want a fallback image for all pages, you can set a default Open Graph thumbnail in the Rank Math settings. Go to WordPress Dashboard → Rank Math → Titles & Meta → Global → OpenGraph Thumbnail and upload your default image there.

      OpenGraph Thumbnail

    By following these steps, you should be able to create a proper preview for your certificates when they are shared on social media. If you have any further questions or need assistance, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Sources:
    Open Graph/Social Preview Image Is Not Displayed » Rank Math

    Hello,

    Thank you for contacting Rank Math support.

    To help you investigate this issue, we might need to take a closer look at your website and settings. Please follow these steps:

    • Edit the first post on this ticket and include your WordPress logins in the Sensitive Data section. This is a secure section that only our support staff can access.
      Sensitive Data Section
    • Make sure you take a complete backup of your website before sharing the information with us.
    • If you prefer, you can use this plugin to generate a temporary login URL to your website and share that with us instead: https://wordpress.org/plugins/temporary-login-without-password/
    • You can also use this plugin to monitor what changes our staff might make on your website (if any): https://wordpress.org/plugins/wp-security-audit-log/

    We appreciate your cooperation and patience. Thank you for choosing Rank Math.

    K World
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    K World
    Rank Math free

    I have updated the login link

    Hello,

    We are not totally sure how this plugin certification works, you might need to reach out to the plugin developer for more information. Rank Math only displays the Social Media configurations for post types, taxonomies, etc, unless this is the case for the certicates, you will not get the Rank Math option to add a social media image to the certificate.

    However, you can programmatically add a social media image to any link on your website using the Rank Math filter. Here’s an example filter:

     * @param string $attachment_url The image we are about to add.
     */
    add_filter( 'rank_math/opengraph/facebook/image', function( $attachment_url ) {
        // Check if the current URL matches loveknx.com/certifiation-link
        if ( strpos( $_SERVER['REQUEST_URI'], '/certifiation-link' ) !== false ) {
            // Replace the URL below with the desired image URL
            return 'https://loveknx.com/wp-content/uploads/image.jpg';
        }
        return $attachment_url;
    });

    You can modify the above code and add it to your site to see if it works for you. I just tested this on my end and it successfully added the image to a random link. You can add the code to your site using any of the methods here.

    Hopefully, this information helps you resolve the issue. Feel free to reach out to us again if you have any further questions or concerns about Rank Math. We’re always here to assist you.

    Thank you for choosing Rank Math!

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Rank math and tutor lms’ is closed to new replies.