• Hey πŸ™‚

    I would like to Auto add a further code inside the H2 tag. Because i do this within my visual editor,- my question is if i need to change something in WordPress or in TinyMCE Advanced.

    What i would like to do is if i click on the H2 button
    that the code would be instead of:
    <h2>test</h2>
    This below
    <h2 itemprop=”alternativeHeadline”>test</h2>

    Sincerly Yours

    DeexGnome

    https://wordpress.org/plugins/tinymce-advanced/

Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    A relatively easy way to do this would be to add that on saving the post. Can also add itemprop as valid attribute for h2 (and/or other) tags with extended_valid_elements so TinyMCE doesn’t remove them when editing.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding Markup inside h2 tag’ is closed to new replies.