Featured Pages instead of Posts On "Home Featured Posts" Widget

Home Forums Optimal Theme Support Featured Pages instead of Posts On "Home Featured Posts" Widget

This topic contains 5 replies, has 2 voices, and was last updated by  Wes 1 year, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #530

    afshinarab
    Member

    Hi,

    I would like to show 3 featured Pages on the “Home Featured Posts” widget, which is located just above the “Home Bottom Message”. I tried adding 3 Genesis Featured Page into that widget, though it showed them vertically aligned to each other rather than horizontally aligning them.

    What’s the most convenient way of achieving this?

    #532

    Wes
    Moderator

    The best way is through css. The intention was to use it for featured posts, but it can easily be adjusted and used however you prefer.

    Do you have a link to your site?

    #533

    afshinarab
    Member

    Thank you for your prompt response Wes, just like the last time regarding legacy on studiopress.

    It’s currently hosted on a test server, http://65.60.58.61/wordpress/ , since I’m still working on the layout and its contents.

    #534

    Wes
    Moderator

    I’m sure more code will need to be added depending on what all you are trying to do. For now, here is the css for making the Featured page widget float side by side in the home-featured-posts section.

    .home-featured-posts .featuredpage {
    float: left;
    width: 240px;
    clear: none;
    }

    You can place this code in your Home Featured Posts section, which starts around line 714 in your style.css file. Add the necessary changes as needed, such as width, color, etc.

    #543

    afshinarab
    Member

    I’m sorry for the late response.

    It is now showing the featured pages next to each other. However, the alignment of pages’ titles, images, and short contents is not correct. On your demo the image of the featured post is shown on top of the title, though on mine now shows the image below the title. Also, the alignment of the title is not correct.

    Please help me to fix the alignment issue.

    #544

    Wes
    Moderator

    On line 1432 (in your style.css file) change the margin to look like this –

    margin: 0 0 20px;

    In your widgets section, remove the title from the “Title” section of the widget. Then inside of the Genesis Featured Page widget click the option “Show Page Title” instead and it will show underneath the image.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Featured Pages instead of Posts On "Home Featured Posts" Widget’ is closed to new replies.