- This topic has 9 replies, 2 voices, and was last updated 4 years ago by
Tom.
-
AuthorPosts
-
March 1, 2019 at 3:46 am #825423
Marco
Hello
I’d like to have two columns of blog posts on the 1st page and the sidebar and then on the following pages I’d like to have no sidebar but 3 columns of blog posts.how can I achieve that?
any input is very much appreciated.
March 1, 2019 at 9:05 am #825780Tom
Lead DeveloperLead DeveloperHi there,
Give this a shot:
add_filter( 'generate_sidebar_layout', function( $layout ) { if ( is_paged() ) { return 'no-sidebar'; } return $layout; } ); add_filter( 'generate_blog_get_column_count', function( $count ) { if ( is_paged() ) { return '33'; } return $count; } );
Let me know ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 1, 2019 at 1:15 pm #825982Marco
Thanks Tom – those filters seem to work.
What I’m struggling with however is achieving the same height for the column content – I’m using the read more link as a button so it looks kind of strange not having them on the same line within a row.
I’m using the following code so far:
.generate-columns-container, .generate-columns { .inside-article { display: flex; flex-direction: column; .entry-summary { display: flex; flex-direction: column; flex-grow: 1; } } } .read-more-container { margin-top: auto; }
what am I missing??
March 1, 2019 at 4:57 pm #826091Tom
Lead DeveloperLead DeveloperAny chance you can link me to the page?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 1, 2019 at 5:03 pm #826095Marco
Hello Tom
I’m currently on localhost – while playing with the css in order to get to equal height columns I think I’ve figured out what the issue is – the entry footer doesn’t always have the same height since the number of tags are different for the posts – some tags go over two or even more lines – if I hide the .tags-links, the above css seems to work – I don’t really see a way around this, do you??
March 2, 2019 at 9:23 am #826658Tom
Lead DeveloperLead DeveloperHmm, it’s hard to tell without seeing it, unfortunately. Can you show me a screenshot?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 2, 2019 at 3:04 pm #826879Marco
Hello Tom
Please find the screenshot here:
or : Open image
March 2, 2019 at 10:19 pm #827024Tom
Lead DeveloperLead DeveloperHmm that’s strange, I think I’d have to see the issue to fully debug it, unfortunately. Any chance you can throw it up on a temporary live server?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMarch 3, 2019 at 4:16 am #827173Marco
I might be able to put it up on a live server or can give you access locally
March 3, 2019 at 9:23 am #827525Tom
Lead DeveloperLead DeveloperAwesome – feel free to send details through our contact form if you’d like: https://generatepress.com/contact
Just be sure to mention this topic ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.