- This topic has 27 replies, 4 voices, and was last updated 5 years, 10 months ago by David.
-
AuthorPosts
-
August 8, 2017 at 4:09 am #361500M.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,
MartinAugust 8, 2017 at 8:08 am #361630LeoStaffCustomer SupportHi 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!
August 8, 2017 at 8:29 am #361643M.v.SchoutenHi 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,
MartinAugust 8, 2017 at 8:39 am #361647LeoStaffCustomer SupportThe site is under maintenance mode. Can you disable it for now? Thanks!
August 8, 2017 at 9:21 am #361691M.v.SchoutenDisabled. Sorry.
August 8, 2017 at 9:24 am #361696LeoStaffCustomer SupportWhere would like to apply the WooCommerce Products Filter in the footer?
August 8, 2017 at 9:27 am #361699M.v.SchoutenTo 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 !
MartinAugust 8, 2017 at 10:08 am #361721LeoStaffCustomer SupportYou 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-filterI don’t really have tactics. Just trying to see the appearance you are trying to achieve and work towards that 🙂
August 8, 2017 at 1:00 pm #361807M.v.SchoutenHi 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
MartinAugust 8, 2017 at 2:11 pm #361850LeoStaffCustomer SupportThe 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
August 9, 2017 at 1:51 am #362039M.v.SchoutenHi 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 !
MartinAugust 9, 2017 at 8:04 am #362184LeoStaffCustomer SupportNo 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
June 27, 2018 at 11:24 am #610067MarcelHello. 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
June 27, 2018 at 12:24 pm #610110DavidStaffCustomer SupportHi 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; } }
June 27, 2018 at 1:05 pm #610132MarcelHello, David and thanks for the answer. Somehow, the template for WooCommerce Tags Page could be edited with Elementor? Thanks
-
AuthorPosts
- You must be logged in to reply to this topic.