Support » Plugin: Subtitles » Integration with Yoast Custom Attributes

  • Resolved bunsundesigns



    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?


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


    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.

    Code add in functions.php but not works

    Plugin Author Philip Arthur Moore


    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?


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