• Resolved RaraAvis

    (@brookebot)


    I saw a previous question on this issue with a Debbie, but since it was resolved, I decided to add a new topic.

    I’ve created a custom post type “portfolio_piece” and have inserted the Genesis Featured Widget Amplified widget into the portfolio widget area of my theme. All is well and displaying properly. I just can’t figure out how to style the custom post type with my current themes’ CSS.

    So I’ve taken a look at my theme css and it’s very similar to the portfolio styling of Lifestyle 2.0 (like Nick the Geek suggested looking at in a previous post):

    .page-template-page-portfolio-php .featuredpage .page,
    .page-template-page-portfolio-php .featuredpost .post {
    float: left;
    margin: 0 9px 10px;
    padding: 5px 0 15px;
    overflow: hidden;
    width: 212px;
    }

    I am guessing all I have to do is add an additional line that includes the custom post type, but I don’t know what class the custom post type is.

    Can I add a class to the post type, or is there already one there I just need to pop in.

    Currently my posts display vertically:
    custom post type portfolio_piece 1
    custom post type portfolio_piece 2
    custom post type portfolio_piece 3

    I want them to display horizontally like when I used the Genesis featured posts widget (before I created custom a custom post type and before I used the Genesis Featured Widget Amplified).

    Can anyone help?

    http://wordpress.org/extend/plugins/genesis-featured-widget-amplified/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nick the Geek

    (@nick_thegeek)

    replace .post in your code with .hentry. Instead of using .page, .post .post-type …. always use .hentry, which is common for all post_class() values. Then if you ever need to style one specific post type differently you can target just that post type with it’s class.

    Thread Starter RaraAvis

    (@brookebot)

    Thank you, thank you, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Genesis Featured Widget Amplified Styling’ is closed to new replies.