WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] css styling (4 posts)

  1. eqjosh
    Member
    Posted 10 months ago #

    I'm wondering if there are built-in css elements that I can style. I see on the main docs there is .display-posts-listing .listing-item -- can I add a css to style the title? Date? excerpt?

    I saw on your blog you had a post on how to edit the plugin to include css, but that seems "scary" -- and I couldn't tell after doing that what the classes or ids would be called in the css stylesheet.

    Thanks!!

    http://wordpress.org/plugins/display-posts-shortcode/

  2. maiki
    Member
    Posted 9 months ago #

    You can see which classes are added by looking at the output. Create the shortcode with all the content you want (title, date and excerpt), and then look at the code it generates. From there you should be able to choose your CSS selectors.

  3. SusanLow
    Member
    Posted 7 months ago #

    I want to have the display posts content styled exactly the same way that normal category archives are styled. How would you suggest this be accomplished?

    My issue is that I want to include two categories in an archive page that's called from a menu link. Display Posts Shortcode seems to be the only way I can accomplish this, but the styling is a headache. Alternative approaches are most welcome.

    http://fern.communitycouncil.ca -- I'm trying to do the 'News' page.

  4. Bill Erickson
    Member
    Plugin Author

    Posted 5 months ago #

    AS maiki said, you'll need to look at the outputted HTML, identify the items you want to modify, and use their wrapping classes to change them with CSS. There's no easier way to match your current site - you're just going to have to style it to match.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags