Hide recently viewed products if there are no recently viewed products

New Member
4 0 0

Hello!

I am trying to figure out how to hide the recently viewed products carousel in the product pages if there are no recently viewed products as right now only the title is visible.

Please advise.

Thanks!

0 Likes
Shopify Partner
2116 353 444

Hi @Dimitris_Basdek 

Send you store url and which theme you have?

 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes

please share a store url to better assist

Thanks & Regards
Perennial Solution

Would like to add new functionality or customize an existing one, please hire us.
If helpful then please Like and Accept Solution .
Email: infoperennialsolution@gmail.com
Skype: infoperennialsolution
0 Likes
Highlighted
New Member
4 0 0
Hello, the store url is www.theprojectgarments.com, the theme is icon by weareunderground , however this section is custom so it is not built in the theme
0 Likes
Shopify Partner
2116 353 444

Hi @Dimitris_Basdek 

This section is generated by Js code so i can give you this fast solution by just console.

Add this Js code in Asset->theme.js at bottom of file

 

if($('.recently_viewed_container .slick-track').is(":empty")){
   $('.recently_viewed_container').hide()
}

 

 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes