- This topic has 45 replies, 4 voices, and was last updated 5 years, 7 months ago by
Tom.
-
AuthorPosts
-
October 7, 2020 at 12:24 pm #1477268
Tom
Lead DeveloperLead DeveloperYes, exactly. If it’s removed from the template and nothing displays, you can add it as an Element and it shouldn’t show up twice.
October 7, 2020 at 12:25 pm #1477273moderndev
Thats done and there is no title or description now. I did this by removing the wooarchive block from the child template.
I have not added any hook elements.
Whats next?
October 7, 2020 at 12:29 pm #1477278moderndev
Ok I added it back using the hook element, but its in the wrong position. Its not full width and above the side bar?
https://moderncooking.com/en/product-category/kitchen-knives/?purge_success=1&cache_type=all
October 7, 2020 at 12:31 pm #1477286moderndev
I changed it from generate_before_main_content to inside_site_container is that ok?
October 7, 2020 at 12:32 pm #1477289Tom
Lead DeveloperLead DeveloperYes, that should work perfectly 🙂
October 7, 2020 at 12:36 pm #1477297moderndev
sorry I meant generate_inside_container
October 7, 2020 at 12:36 pm #1477302Tom
Lead DeveloperLead Developergenerate_inside_site_containerwill work –generate_inside_containerwill have flexbox issues.October 7, 2020 at 12:36 pm #1477303moderndev
Ok so this is looking correct. So, now you think the flexbox setting will work?
October 7, 2020 at 12:39 pm #1477308moderndev
I just tried and nothing has changed. I am not sure what we have achieved here. I still have a child template, but now I have a hook element as well and in the end I am in the same position. flexbox doesnt work on those pages???
October 7, 2020 at 12:40 pm #1477309moderndev
Sorry just seeing you comment above
October 7, 2020 at 12:42 pm #1477315moderndev
Ok now we are looking good. Everything seems to be working well. Do you another way to remove the head so I can get rid of the child template?
October 7, 2020 at 2:28 pm #1477447Tom
Lead DeveloperLead DeveloperYou mean remove the archive header that comes with WooCommerce? If you re-name the child template, does it come back?
October 7, 2020 at 11:28 pm #1477825moderndev
Yes, because the only reason that it is not displaying is because I have removed it in the child theme
October 8, 2020 at 9:21 am #1478835Tom
Lead DeveloperLead DeveloperThat’s what the options in Customize > Layout > WooCommerce should do.
However, looking at the template, there’s no way to remove the wrapper around the title and archive: https://github.com/woocommerce/woocommerce/blob/master/templates/archive-product.php#L32-L46
October 8, 2020 at 9:53 am #1478892moderndev
Ok thanks Tom.
Maybe I will play around with the styling and see if I can remove the wrapper
-
AuthorPosts
- You must be logged in to reply to this topic.