• Resolved englishdoggy

    (@englishdoggy)


    Change “Share This” h3 heading tag

    This is what I see when I inspect: <h3 class=”sd-title”>Share this:</h3>

    Want to change this for SEO purpose to h4 or p

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @englishdoggy

    You can use this filter:

    https://developer.jetpack.com/hooks/jetpack_sharing_headline_html/

    to customize the tag used for the “Share This” heading. Modifying the example code on that page:

    function jetpackcom_custom_heading( $headline, $label, $module ) {
            if ( 'sharing' == $module ) {
                    $headline = sprintf(
                            '<h1>%s</h1>',
                            $label
                    );
            }
            return $headline;
    }
    add_filter( 'jetpack_sharing_headline_html', 'jetpackcom_custom_heading', 10, 3 );

    accomplish this.

    You will need to either customize your functions.php file or use a plugin like Code Snippets to add the snippet to your site.

    It’s outside our scope of support to provide the exact code, but this should get you started.

    Thread Starter englishdoggy

    (@englishdoggy)

    Used code snippet, didnt work

    Thread Starter englishdoggy

    (@englishdoggy)

    Got the original code from the site. So it worked now. Thanks for helping!

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hi there,

    I’m glad to hear you have managed to solve the issue. For now, I’m marking this as resolved, but if you have any more questions or come across any other issue, let us know, we’ll be happy to help. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change “Share This” h3 heading tag’ is closed to new replies.