• I would like to add another type of “blockquote” into the CSS.

    I like the current one I have, but want something that I can use at the top of certain posts to seperate the first paragraph from everything else.. with a box around it and different background color.

    How do I create it so it can be called in a post like the blockquote function?

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’d suggest you add a class to your stylsheet. Something like:
    .topbq { /*adjust this to your taste */
    color:white;
    background-color:black;
    margin:4em;
    }

    I would then call it in my post with
    <blockquote class="topbq"> blah-blah-blah </blockquote>
    Then again, I don’t use the rich text editor ;’)

    You could even add this as another button in the quicktags array in the write screen. You edit the includes/js/quicktags.js file following the pattern already there. I think you can add to the RTE array too, but I don’t use it so haven’t any idea how for sure.

    (If you do edit the quicktags.js file, you’ll have to redo it whenever you upgrade wp – it gets overwritten….)

    There is a pretty cool plugin for adding tags to the quicktag.js from a pane in options page in your admin. Makes it painless and upgrading not a problem. You can find it here;
    https://roel.meurders.nl/wordpress-plugins/wp-addquicktag-plugin-for-adding-quicktags/

    This is not exactly a blockquote but it may do something similar to what you need.

    It is the pullquotes plugin from viper007bond. I use it on my site and it works really well.

    https://www.viper007bond.com/wordpress-plugins/javascript-pullquotes/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add a 2nd type of “blockquote”’ is closed to new replies.