Support » Theme: Twenty Sixteen » h1 h2 h3 h4 h5 h6 tags lines

  • Hello,

    I have read all I can find on the subject of avoiding a line feed before and after an h1 to h6 tag.

    I have tried the css display:inline

    I have looked at taking the last bit out of this …

    $allblocks = ‘(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|d

    I have tried removing wpautop but this removes all punctuation. All I wish to do is use the h2 to h6 tags in the normal flow of a paragraph without a blank line.

    Many thanks,


Viewing 1 replies (of 1 total)
  • Hi neilovan,

    I’m not sure I understand you correctly, but h2 to h6 are heading tags. Being headings they can’t be inside a paragraph, which explains why you can’t have them in the normal flow of the body text.

    Also, this explains why display:inline doesn’t help very much: to have the heading in the same flow of the paragraph, the heading should physically be located inside the paragraph, which is invalid HTML nesting.

    However, if there are bits of text inside a paragraph that you’d like to have displayed like headings, you could wrap them in a span tag and apply to them the heading CSS styles that relate to font weight, color, size, etc., leaving out the display block of headings.

    – Maria Antonietta

Viewing 1 replies (of 1 total)
  • The topic ‘h1 h2 h3 h4 h5 h6 tags lines’ is closed to new replies.