[Resolved] Add a line of featured posts after the header

Home Forums Support [Resolved] Add a line of featured posts after the header

Home Forums Support Add a line of featured posts after the header

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #281767
    Cédric

    Hi,

    I’m looking to add a nice selection of feature posts on my blog just between header and content. Something like that :
    https://www.domo-blog.fr/

    I think that’s possible with GP, using a hook in after header. But what will be the best for you ?
    Do I add a bootstrap line with 6 colomns and in each a shortcode for widget ? So I just declare a new sidebar and put it in the hook ?

    Look for the nice way to do it. Any advices ?

    #281886
    Leo
    Staff
    Customer Support

    Hi Cedric,

    I think the easiest way would be using Tom’s WP Show Posts plugin and GP hooks.
    https://en-ca.wordpress.org/plugins/wp-show-posts/

    Let me know if you need more help 🙂

    #281912
    Cédric

    Thanks, will try this, look nice and easy to do
    Will give you news on the result

    #282089
    Cédric

    Ok, get it working. Have find CSS entry to reduce size of text so it’s matching my need. But one last thing, after header is a full width section, not limited to the size of content.
    On laptop look ok but with bigger screen it’s not good.
    I try to find how to limit width of after header but don’t find (so it take the same large as header)
    I try to add with “after header content, but so it display before menu, not what I look)

    #282149
    Leo
    Staff
    Customer Support

    Try adding this in the hook. This will make it the same as your container size

    <div class="grid-container grid-parent">
          Featured posts here
    </div>

    Let me know.

    #282288
    Cédric

    Yes, have found it also on other post for breadcrumbs, add it add some padding minimal and now it’s nice
    Thanks, job done

    #282458
    Leo
    Staff
    Customer Support

    You’re welcome 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.