The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Add a 2nd type of "blockquote" (5 posts)

  1. danfef
    Posted 9 years ago #

    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?


  2. yosemite
    Posted 9 years ago #

    I'd suggest you add a class to your stylsheet. Something like:
    .topbq { /*adjust this to your taste */

    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 ;')

  3. vkaryl
    Posted 9 years ago #

    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....)

  4. incertus
    Posted 9 years ago #

    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;

  5. febwa1976
    Posted 9 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Topic