Archived topic
Add a line of featured posts after the header
6 replies · Started by Cédric on February 21, 2017
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 ?
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 :)
Thanks, will try this, look nice and easy to do
Will give you news on the result
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)
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.
Yes, have found it also on other post for breadcrumbs, add it add some padding minimal and now it's nice
Thanks, job done
You're welcome :)