[Resolved] WooCommerce Tags Page Lay Out

Home Forums Support [Resolved] WooCommerce Tags Page Lay Out

Home Forums Support WooCommerce Tags Page Lay Out

Viewing 15 posts - 1 through 15 (of 28 total)
  • Author
    Posts
  • #361500
    M.v.Schouten

    Hi,
    I use Tags for my Products in WooCommerce in combination with GeneratePress.
    When i click on a Tag, the page shows the related Products.
    So far so good.
    The problem however is that the page lay-out is not what i want it to be.
    It uses an older version of the page lay-out with footers, double menu, header.
    I don’t want this, but want to customise my “tags-page”.
    However, there doesn’t seem to be a “tags-page”.
    Although the permalink=internetaddress states there should be an tags-page, the list of pages or posts doesn’t mention it.
    How can i find this “being-there-but-not-to-be-found”-page and customize this page without changing other pages ?
    An alternative solution like a plugin could be a solution as well.
    Please give me a complete, clear answer.
    Thank you,
    Martin

    #361630
    Leo
    Staff
    Customer Support

    Hi there,

    We would have to try some coding solution.

    Can you link me to the page and list out the things you would like to change/remove?

    Thanks!

    #361643
    M.v.Schouten

    Hi Leo,
    Thank you for your reply.
    Here is the link : http://martinvanschoutenarchive.com/product-tag/doorsentrance/
    Beneath the menu there is a white header (empty) ; on this particular page i want it to be removed.
    At the bottom there are some footers. In the left one there is a possibility to select. The selection possibility i want to keep it, but maybe at a different place because i want to remove the footers for this page.
    Just want to keep the menu, the results of the tags search, and the tags search possibility.
    Hope you understand,
    Thanks,
    Martin

    #361647
    Leo
    Staff
    Customer Support

    The site is under maintenance mode. Can you disable it for now? Thanks!

    #361691
    M.v.Schouten

    Disabled. Sorry.

    #361696
    Leo
    Staff
    Customer Support

    Where would like to apply the WooCommerce Products Filter in the footer?

    #361699
    M.v.Schouten

    To be honest ?
    1.
    It’s important that i can choose what page the Products Filter can be shown or not (1 is enough i guess).
    2.
    It should be quite central ; the Footer was just a try out.
    Footers aren’t really central.
    The filter should be central, and the result (other page or same) as well.
    3.
    Please tell me your tactics ; would like to understand it.
    Thanks !
    Martin

    #361721
    Leo
    Staff
    Customer Support

    You can set the WooCommerce page to have 1 footer widget then it should be at the center:
    https://docs.generatepress.com/article/footer-widgets/#changing-the-numbers-of-widgets-using-a-filter

    I don’t really have tactics. Just trying to see the appearance you are trying to achieve and work towards that 🙂

    #361807
    M.v.Schouten

    Hi Leo,
    It looks like abacadabra to me.
    Remember i want only the tag-filter page (which i can’t find to change and of which i only see the result, the link i sent you) to be adjusted.
    The code is abacadabra to me ; should i put it somewhere ?
    And the empty header ? How can i delete it on just this page ?
    Sorry, but i’m a non tecchie
    Martin

    #361850
    Leo
    Staff
    Customer Support

    The empty header can be removed with this CSS:

    .woocommerce .site-header {
        display: none;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Try this PHP to set only 1 footer widget (the product filter) on woocommerce page:

    add_filter( 'generate_footer_widgets','tu_custom_woocommerce_footer_widgets' );
    function tu_custom_woocommerce_footer_widgets( $widgets )
    {
     	// If we are on a woocommerce page, set the number
     	if ( function_exists( 'is_woocommerce' ) && is_woocommerce() )
     	 	return '1';
    
     	// Or else, set the regular number
     	return $widgets;
    
     }

    Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets

    #362039
    M.v.Schouten

    Hi Leo,
    Thank you for your answer.
    The CSS answer worked !
    The PHP answer diddn’t work. Maybe due to not knowing where/how to put it.
    Nevertheless i figured out that there was a possibliity for appearance to hide the footers. I don’t seem to need them because i always will be able to make an extra text block down under which is a kind of footer.
    The filter is gone but i put it on another new page and put it in the menu, and another page for the results.
    So far so good.
    Thank you for your help !
    Martin

    #362184
    Leo
    Staff
    Customer Support

    No problem!

    For future reference the easiest way to add the filter is to use Code Snippet: https://docs.generatepress.com/article/adding-php/#code-snippets

    #610067
    Marcel

    Hello. I would like to know if the template for WooCommerce Tags Page could have a sidebar, or how I could have sidebar just for WooCommerce Tags Page but not for other pages. thanks

    #610110
    David
    Staff
    Customer Support

    Hi Marcel,

    GP 1.7 which will be released for Beta testings sometime very soon will make this a lot easier. In the meantime you can use this PHP Snippet to display the sidebar just on the product tag archive:

    add_filter( 'generate_sidebar_layout','tu_custom_category_sidebar_layout' );
    function tu_custom_category_sidebar_layout( $layout )
    {
     	// If we are on a category, set the sidebar
     	if ( function_exists( 'is_woocommerce' ) && is_product_tag() ) {   
     	 	return 'right-sidebar';
    	} else {
     	// Or else, set the regular layout
     	return $layout;
     }
    }
    #610132
    Marcel

    Hello, David and thanks for the answer. Somehow, the template for WooCommerce Tags Page could be edited with Elementor? Thanks

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