Support » Fixing WordPress » Removing Short Line Above Headings in Twenty Nineteen

  • Resolved hardonhorsepoweradmin


    I understand this has already been posted in the past, however, the response which was marked as answer is not necessarily fully adequate as a fix, original post is now closed to further replies, and I was informed by a moderator, [redacted], that I should start my own thread instead of utilizing the existing thread.

    There is code called which adds css styling to h1 and h2 in order add a short line above heading tags in twentyninteen theme. The past thread indicated that a “display: none;” can hide the line, however I’d like to know where this is actually called so that it can be disabled entirely. the solution above is great for temporary, but I don’t want to look at things like this in my css. I want it gone altogether. Upon requesting this information on the last post, the post was closed rather than an answer provided.

    Where is this code called in theme templates? I want it gone, not covered with a bandage.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)


    Forum Moderator

    Please do not @-ping moderators in your topics.

    This CSS puts that line on-screen:

    .entry .entry-title:before { ...

    So, to remove it, use

    .entry .entry-title:before {
       display: none;

    That disables it entirely. If you want to remove the code from the CSS file, it appears to be here


    Note that if you modify the theme’s CSS, rather than address the change as an override in the customizer, you’ll need to re-do the modification each time the theme is updated. The override, being three lines of CSS, is probably faster and easier, and more peristent.

    Thread Starter hardonhorsepoweradmin


    If this is truly the only place to remove then I guess the CSS cover-up will do for now.. this line still seems like a very silly aesthetic to hard-code force for a default/vanilla theme.

    For a default/vanilla theme, I would assume that something like this large horizontal line over the heading would have a PHP function tied to it for the purpose of disabling/dequeuing.. however if this is not the case I believe I may have expected too much simplicity from the default theme.

    Thank you for your time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing Short Line Above Headings in Twenty Nineteen’ is closed to new replies.