• Resolved onesc

    (@onesc)


    Code blocks using the Author theme have extra indentation to the right on the first line. I have checked the extra space isn’t introduced by me by mistake.

    In case it’s relevant, I’m using the “code prettify” plugin. I have also verified that the issue isn’t reproduced when using other themes.

    The issue can be seen here (check the code blocks in grey midpage). This is very noticeable when there are several code lines all aligned to the left, the first line looks as if it had an initial blank space.

    (Besides that small issue I like the Author theme a lot, by the way!)

    • This topic was modified 5 years, 10 months ago by onesc.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Hey there,

    Thanks for using Author!

    This CSS should correct the indentation issue:

    .post-content code {
      padding: 0;
    }

    Please copy & paste the code above into the “Additional CSS” section in the Customizer (Appearance > Customize), and it will take effect right away.

    Thread Starter onesc

    (@onesc)

    Thank you, that solved the issue!

    Hopefully it will be solved on future updates of the theme (in case it’s something that has to do with the theme and not a particular problem on my side).

    Excellent work with the theme!

    Theme Author Ben Sibley

    (@bensibley)

    You’re welcome! Stay in touch if you need anything else and I’ll be happy to help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Code blocks add one extra space on first line’ is closed to new replies.