All things Shopify and commerce
When adding 2 or more items to the announcement bar it doesn't work (anymore). I get the following console error:
global.js?v=113367515774722599301698655681:932 Uncaught TypeError: Cannot read properties of undefined (reading 'classList') at SlideshowComponent.applyAnimationToAnnouncementBar (global.js?v=113367515774722599301698655681:932:18) at SlideshowComponent.onButtonClick (global.js?v=113367515774722599301698655681:783:12).
I've logged some values, but get the following:
console.log(currentSlide);
Output: undefined
console.log(this.sliderItems);
Output: NodeList(2) [div#Slide-sections--21423793209631__announcement-bar-1.slideshow__slide.slider__slide.grid__item.gr…, div#Slide-sections--21423793209631__announcement-bar-2.slideshow__slide.slider__slide.grid__item.gr…]
console.log(this.sliderItems[currentIndex]);
Output: undefined
Hi @Exp-Mick
Could you share your store link?
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Please provide password protected of store
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Does anyone has an idea? I'm using the Dawn theme.
Hi @Exp-Mick
Did you disabled your announcement bar?
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
No, what do you mean?
There is a announcement bar in the top of the website. It has two different texts (which you can see here: https://test-marcels-green-soap.myshopify.com/).
The slider in the announcement bar is not working.
I cannot see it anymore
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
That's right.. I see it was hidden. It's visible again now!
Announcement slider conflict with something in your theme so it's cause this issue. Have you installed any new app or script recently?
If you don't know how then I recommend you contact developer of this theme so they can check and fix the issue for your store.
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Yes, so I'm the theme developer 😉
I've used the Dawn theme. I did nothing special yet. I've added some styling and Javascript.
But after deleting the styling and javascript it's still not working. So thats strange.
Hey, I got the same issue rn as you do. Did you manage to figure out a solution for that?
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025