WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. danfef
    Member
    Posted 7 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?

    thanks

  2. yosemite
    Member
    Posted 7 years ago #

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

  3. vkaryl
    Member
    Posted 7 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
    Member
    Posted 7 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;
    http://roel.meurders.nl/wordpress-plugins/wp-addquicktag-plugin-for-adding-quicktags/

  5. febwa1976
    Member
    Posted 7 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.

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags