Site logo

Archived topic

WooCommerce Tags Page Lay Out

27 replies · Started by M.v.Schouten on August 8, 2017

Viewing posts 1–15 of 28

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

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!

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

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

Disabled. Sorry.

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

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

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

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

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

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

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;
 }
}

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

This archived topic is closed to new replies.