buy button code to WordPress

buy button code to WordPress

DY92
Visitor
1 0 0

The cart icon only shows on product page where I added the embed code but not showing on other page such as product archive pages or home page. Is there any html code I can add to other pages to show the cart icon?

 

I tried to add the same embed code to other page but the cart won't auto-update. You have to refresh the whole page to show the updated cart. Please help!

Reply 1 (1)

PageFly-Theodor
Shopify Partner
691 86 102

Hi @DY92 ,
This is Theodore from PageFly - Shopify Page Builder App.

The cart icon code you added is likely specific to the product page template. To show it on all pages:

  1. (For developers) Edit your theme's header/navigation template and inject the code there.
  2. (Easier option) Use a Shopify app for cart icons. These handle code injection and might offer real-time cart updates.

Automatic cart updates might require an app with features like websockets or polling.


Best regards,
Theodore | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.