Support » Plugins and Hacks » Display Posts Shortcode » [Resolved] css styling

[Resolved] css styling

  • 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.



Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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.

    Plugin Author Bill Erickson


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] css styling’ is closed to new replies.
Skip to toolbar