• Resolved bunsundesigns

    (@bunsundesigns)


    Hello!

    I am currently using the Subtitles plugin and love it. One thing that I am trying to do is integrate it with Yoast SEO custom attributes for outputting the Post Subtitle to the meta description.

    To call the custom attribute, Yoast uses %%cf_custom-field-name%%. I have tried using a few field names but have not had luck. Do you know what I should put here in order to accomplish this?

    Thanks!
    Chad

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Mrinal Roy

    (@mkrdip)

    Hi Chad,

    We have used span tag for subtitles, for Yoast SEO subtitles need to have semantic header tag h2 or h3, see here.

    To change our default span to header tag, please use the following codes via functions.php file:

    function subtitle_markup_mods( $markup ) {
        $markup[ 'before' ] = '<h2 class="custom-subtitle-class">';
        $markup[ 'after' ] = '</h2>';
    
        return $markup;
    }
    add_filter( 'subtitle_markup', 'subtitle_markup_mods' );

    Let me know if you need more help on this.

    migratoria

    (@migratoria)

    Code add in functions.php but not works

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Hi Chad,

    I’m cleaning up support and noticed this ticket. I’m so very sorry that we overlooked it.

    Did you ever resolve this issue?

    Cheers,
    Philip

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Integration with Yoast Custom Attributes’ is closed to new replies.