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

  1. eqjosh
    Posted 2 years 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.



  2. maiki
    Posted 2 years 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
    Posted 2 years 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
    Plugin Author

    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Posts Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic