
Tagged: woocommerce
-
AuthorPosts
-
February 18, 2023 at 8:04 pm #1398477
Hey Gunter,
We are having some problems with the shop archive pages when we set under the product category “Fullwidth page banner” From the “Category Styling” dropdown.
Our issues are:
– Bread crumbs show on the bottom of image which is different to the rest of the site which displays it at the bottom of the header. We need to get the breadcrumbs up above the image.
– The image it produces is a parallax image with no source set which displays terribly on most devices. We need it to be a regular image that can use srcset and that we can set a size for.
– The text is put on top of the image rather than on the page like default archive pages. We need the text to be below the image, like with the default category layout.So is there an easy way we can customise this?
We can see most the code is in the enfold config-woocommerce/config.php file but it seems like a complicated set of functions that all work together rather than just a template file that can be edited. Should we edit this page?
Can this config.php file be placed in the child theme and customised?
Or are there hooks we can de-register/register to get it how we want it to look?
Really appreciate your help
Tim
February 20, 2023 at 4:57 pm #1398645Hey Tim,
I’ve uploaded a pdf with a screenshot how I see your link.
Images have scrset and sizes.
I’m a bit confused.If you want to make changes to config-woocommerce/config.php file you should stick to hooks and filters or define the functions you want to modify before our config file is loaded.
Most of the functions are wraped inif( ! function_exists( 'xxxx' ) ) { ...... }
To modify the complete file is not recommended as it might change at any time, when we find a bug or extend WC support.
Best regards,
GünterFebruary 20, 2023 at 5:42 pm #1398648Hey Gunter,
I get a 403 Forbidden when trying to download the PDF.
Please see private field.
Thanks
-
This reply was modified 3 months, 1 week ago by
THP Studio.
February 21, 2023 at 4:54 pm #1398797Hi,
Thanks for clarify. I did not check that it is the shop banner.
For the layout of the banner check function avia_woocommerce_parallax_banner in the config file.
And/or action ava_after_main_container and the 2 handlers
avia_woocommerce_big_cat_banner
avia_woocommerce_shop_bannerBreadcrumb:
You probably will need to modify:
action woocommerce_before_main_content – handler avia_woocommerce_before_main_content
and create your own breadcrumbs using action ava_after_main_container before shop banner
using function avia_title()I hope this helps you.
Best regards,
Günter -
This reply was modified 3 months, 1 week ago by
-
AuthorPosts
- You must be logged in to reply to this topic.