Archived topic
how to create a page similar to thewirecutter.com
10 replies · Started by Matthew on January 16, 2020
https://thewirecutter.com/home-garden/bathroom/
So when I add a post to CATEGORY the category page looks like the above.
I need to create a page similar to the above do you have a page template for a review page identical to this one?
Hi there,
Not 100% sure if I understand.
You can use the 3 columns and featured post option in the customizer:
https://docs.generatepress.com/article/using-columns-in-the-blog/
Then make the featured post full width with this CSS:
https://docs.generatepress.com/article/using-columns-in-the-blog/#using-full-width-for-featured-post
Then the result should be very similar to your example.
Let me know if this helps :)
Your understanding is close.
So i want this template to be for Category template.
So if you click the link above you will see the page is generated by clicking on the category of the page.
Its not a page or post, but category in theme
Those options I mentioned above will apply to the blog page and category archives.
Maybe give them a shot first?
how to only apply to category archives page and not posts or pages?
You will need this filter:
https://docs.generatepress.com/article/option_generate_blog_settings/#examples
With this conditional tags:
https://codex.wordpress.org/Conditional_Tags#A_Category_Page
These are blog/archive specific options so nothing will apply to static pages.
can you please send me screenshots of where to add to the theme settings to accomplish this task.
Sorry. The filters can be added using one of these methods:
https://docs.generatepress.com/article/adding-php/
Code snippets is the easiest way if you aren't using a child theme already.
Let me know :)
CAN I PAY YOU TO DO THIS FOR ME
Hi Matthew,
as Leo mentioned you can install this plugin https://wordpress.org/plugins/code-snippets/ if you don't have a child theme, and add the code below:
// -- Blog page columns --
add_filter( 'option_generate_blog_settings', 'lh_custom_columns_posts' );
function lh_custom_columns_posts( $options ) {
if ( is_archive() ) {
$options['column_layout'] = true;
}
elseif ( is_home() ) {
$options['column_layout'] = false;
}
return $options;
}
Give Vitor's code a shot and let me know if that works for you :)