WordPress.org

Ready to get started?Download WordPress

Forums

RSS Just Better
Feature Request: Add class(es) for CSS styling? (3 posts)

  1. akurtz
    Member
    Posted 1 year ago #

    Any chance you could add one or more classes to the plugin output so elements can be easily targeted for CSS styling?

    Here's a potential start...

    <div class="rssjb">
    	<h2>Feed Title Here</h2>
    	<.ul>
    		<.li><.a href="feedurl" class="title">Item Title Here<./a><span class="datetime"> — Date and/or time here</span><br />
    		<span class="excerpt">Excerpt goes here...</span><./li>
    	<./ul>
    </div>

    Then we could style any element -- for example...

    div.rssjb { margin: 0.5em; }
    div.rssjb h2 { font-size: 1.2em; }
    div.rssjb li { font-size: 0.9em; }
    div.rssjb .title { font-weight: bold; font-size: 1.1em; }
    div.rssjb .datetime { font-style: italic; }
    div.rssjb .excerpt { margin-top: 0.5em; margin-bottom: 1em; }

    Thanks for your great plugin!

    http://wordpress.org/extend/plugins/rss-just-better/

  2. Stef
    Member
    Plugin Author

    Posted 1 year ago #

    I'm not much into CSS but thanks for your great suggestion. I think I can add it as you wrote it (I cannot do any better, sorry) to the next version of the plugin. It should not take long for a new release as there might be a bug.

    Thanks
    Stef

  3. akurtz
    Member
    Posted 1 year ago #

    Thanks, Stef!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic