[Support request] how to create a page similar to thewirecutter.com

Home Forums Support [Support request] how to create a page similar to thewirecutter.com

Home Forums Support how to create a page similar to thewirecutter.com

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1134458
    Matthew

    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?

    #1134519
    Leo
    Staff
    Customer Support

    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 πŸ™‚

    #1134565
    Matthew

    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

    #1134584
    Leo
    Staff
    Customer Support

    Those options I mentioned above will apply to the blog page and category archives.

    Maybe give them a shot first?

    #1135202
    Matthew

    how to only apply to category archives page and not posts or pages?

    #1135218
    Leo
    Staff
    Customer Support

    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.

    #1135237
    Matthew

    can you please send me screenshots of where to add to the theme settings to accomplish this task.

    #1135268
    Leo
    Staff
    Customer Support

    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 πŸ™‚

    #1137098
    Matthew

    CAN I PAY YOU TO DO THIS FOR ME

    #1137206
    Vitor

    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;
    }
    #1137226
    Leo
    Staff
    Customer Support

    Give Vitor’s code a shot and let me know if that works for you πŸ™‚

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