Support » Themes and Templates » Blockquote and 2012 theme

  • I want to change the way blockquotes display in the 2012 theme to have more padding left and right (make it narrower), and add a horizontal line top and bottom.

    Which of the blockquote entries in the style.css file do I edit?

    Or should I just add a custom entry by itself?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Don’t edit any theme files directly. To make changes to the CSS, be sure that you have a child theme set up or use the jetpack plug-in custom CSS option.

    Then you can make modifications that won’t be erased when WP is updated.

    Thread Starter ichadwick

    (@ichadwick)

    Thanks. But is there a specific entry to modify? I seem to recall three entires that relate to blockquote. Or just make it general like this:
    blockquote
    {
    some changes
    }

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you want to change it within a specific entry?

    Thread Starter ichadwick

    (@ichadwick)

    No, I want all blockquotes to be affected in pages. I’m using WP for a mostly static website, but I do allow comments on pages.

    I have experimented with this CSS:
    blockquote {
    font: 14px/22px normal helvetica, sans-serif;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 50px;
    padding-left: 15px;
    border-left: 3px solid #ccc;
    }
    and it works nicely in pages, but not sure yet how it works in comments and blog posts. Will tinker further.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If there are no styles overriding it, then it will work on all instances within entries, posts, etc.

    If you are not already using it, Firebug is a great tool for working with CSS — it will show you which styles are affecting a given area or element on a page. You may need to use more specific CSS selectors to target some instances of the blockquote.

    http://www.w3schools.com/cssref/css_selectors.asp

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Blockquote and 2012 theme’ is closed to new replies.