Forums

Editing Flickr Text in Sidebar (3 posts)

  1. varresa
    Member
    Posted 6 years ago #

    Hello -
    I have edited the Flickr text in the sidebar to have the colors of the word Flickr to match the logo (blue & pink). The problem is, I can't get the different colored letter sets to show up on the same line. Please see my page to know what I am talking about: http://varresa.org

    Here is the code I used:

    <?php if ((function_exists('get_flickrRSS')) && is_home() && !(is_paged())) { ?>
    <div class="flickr"><h2 style="color:#0066FF">flick<h2 style="color:#FF0099">r</h2> <h2>feed</h2>

    <ul>
    <?php get_flickrRSS(); ?>
    </ul>
    </div>
    <?php } ?>

    I would like it to look like what Ben Gray has done at http://www.openswitch.org/

    Any ideas?

    Thanks!

  2. bookchiq
    Member
    Posted 6 years ago #

    An h2 tag includes a line break automatically, so I would probably change that section to something like this:
    <h2><span style="color:#0066FF">flick</span><span style="color:#FF0099">r</span> feed</h2>

    The spans will take care of the color without a line break, and the whole title is in one h2 tag.

  3. varresa
    Member
    Posted 6 years ago #

    Beautiful - that worked perfectly!

    I have only been with WordPress for 2 days now and this was my first support post - so far, I'm impressed :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags