Home › Forums › WoodMart support forum › Empty Cart is showing without the heading
Empty Cart is showing without the heading
- This topic has 9 replies, 2 voices, and was last updated 9 months, 2 weeks ago by
Hung Pham.
-
AuthorPosts
-
May 9, 2024 at 12:50 pm #564397
FabioParticipantHello,
When I empty my cart page, the page heading isn’t showing, but if I refresh the cart page it looks good.
We looked it out and found out it’s the sticky header that’s causing this.Could you help us fix it?
Thank you.
Attachments:
You must be logged in to view attached files.May 10, 2024 at 9:53 am #564613
Hung PhamKeymasterHi Fabio,
Thanks for reaching to us.
Admin credential is incorrect, please check again.
Regards,
May 10, 2024 at 11:53 am #564670
FabioParticipantHi,
Here you have the correct info.
Thank you.
May 12, 2024 at 4:23 am #564933
Hung PhamKeymasterHi Fabio,
Thanks for details.
First of all, I’m really sorry have taken long time to reply you due to the weekend.
You are also using Custom Cart layout, which is built with WoodMart WooCommerce builder. Navigate to Layouts > Layout to edit Cart layout and add
Page title
widget https://prnt.sc/-Lgzd7O-HziHFurther, you can read more about the Layout Builder here: https://xtemos.com/docs-topic/woodmart-woocommerce-layout-builder/
Regards,
May 13, 2024 at 3:45 pm #565211
FabioParticipantHello,
I have changed the widget to “page title”, but didn’t solved the problem…
When I delete everything that it’s on my cart and it gets empty, the whole page title section disappears. And if I refresh that page, than it looks fine.I recorded a video so you can see what’s happening.
Thank you.
Attachments:
You must be logged in to view attached files.May 14, 2024 at 9:41 am #565378
Hung PhamKeymasterHi Fabio,
Thanks for details.
Please clear cache and check again https://prnt.sc/La8Grk6ThH72
Regards,
May 14, 2024 at 11:40 am #565453
FabioParticipantHi,
I’ve cleared the cache several times, but its still happening.
(look at the attachment)Thank you.
Attachments:
You must be logged in to view attached files.May 15, 2024 at 6:30 am #565711
Hung PhamKeymasterHi Fabio,
To fix this issue, first try to add the following code snippet to the Child Theme functions.php file:
add_action( 'woodmart_after_header', function () { if ( ! woodmart_woocommerce_installed() || ! is_cart() || ! XTS\Modules\Layouts\Main::get_instance()->has_custom_layout( 'cart' ) ) { return; } XTS\Modules\Layouts\Global_Data::get_instance()->set_data( 'builder', true ); woodmart_page_title(); remove_action( 'woodmart_after_header', 'woodmart_page_title', 10 ); }, 1 );
And second, add the following code snippet to the Custom CSS area in Theme Settings:
.woocommerce-cart .main-page-wrapper > .page-title { display: none; } .woocommerce-cart .main-page-wrapper:has(.wd-empty-page) > .page-title { display: block; }
Kind Regards
May 17, 2024 at 12:03 pm #566229
FabioParticipantHello,
That worked perfectly!
Thank you so much for your help.May 18, 2024 at 7:00 am #566359
Hung PhamKeymasterHi Fabio,
Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!
If you have a quick minute we always appreciate a 5-star rating on our theme!
https://themeforest.net/item/woodmart-woocommerce-wordpress-theme/reviews/20264492
Your feedback is the motivation to improve our work and services.
Regards,
-
AuthorPosts
The topic ‘Empty Cart is showing without the heading’ is closed to new replies.
- You must be logged in to create new topics. Login / Register