Forums

Adding elements to the blockquote when post is imported (8 posts)

  1. silverkid14
    Member
    Posted 4 years ago #

    The skin I am working on requires a few styling things inside the blockquote tag, as this theme will be free, I need to find a way for it to work without modding the core WordPress files.

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '<div class="widget">',
            'after_widget' => '</div>',
            'before_title' => '<h2 class="sifr">
    ',
            'after_title' => '</h2>',
        ));
    ?>

    I saw that code on a forum, and was wondering if that by any chance could help me at all.

    I would appriciate it if anyone could help!

  2. Chris_K
    Member
    Posted 4 years ago #

    You might want to elaborate a bit on what it is you wish to do and THEN relate it to that sample code.

    At the moment, I don't see what they have in common.

  3. silverkid14
    Member
    Posted 4 years ago #

    I just want to add code to whenever someone uses the blockquote function in WordPress, and instead of just
    <blockquote>Text</blockquote>
    Have:
    <blockquote><span class="corners"><div class="blah">Text</div></span></blockquote>
    I just really need to be able to edit the output of the blockquote tag.

  4. Chris_K
    Member
    Posted 4 years ago #

    ... why not just do that to the blockquote element in CSS directly?

  5. silverkid14
    Member
    Posted 4 years ago #

    You can't add 4 background images to the blockquote element, you know that...

  6. Chris_K
    Member
    Posted 4 years ago #

    Lots of things I know -- sometimes I even remember them. But this was the first I heard of the 4 background images. :-)

    So, it seems that what you want to do is write a little plugin or functions.php bit of code to catch <blockquote> and replace it with your own bits and the same for </blockquote>?

    If you hit Developer_Documentation and scroll down a bit, you'll find all the Plugin documentation. That and some judicious web searching ought to get you rolling?

  7. NeoconNews
    Member
    Posted 4 years ago #

    I'm interested in this as well. Does anyone know where blockquote calls from? I was thinking about going the clunky way and creating quote images by backgroundimg the front quote and then adding a div for the endquote. It would be nice if when blockquote calls, it automatically wrapped the div as well each time.

  8. whooami
    Member
    Posted 4 years ago #

    look inside wp-includes/formatting.php

    thats what you need to be tweeking.

    Ive done it so that when I use a blockquote everything is formatted exactly as I want it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.