Post by LetsBuy » Mon Dec 12, 2022 10:38 am

Hi all,

I am trying to hide the product description in Grid View and Display it in List View.
All my atempts at changing the JS Function have failed miserablely :-[

If some kind guru can give be a example would be much apprecaited

Thanks in Advance
OpenCart Version 3.0.3.8 | Default Theme

Newbie

Posts

Joined
Sat Sep 17, 2022 2:01 pm

Post by by mona » Tue Dec 13, 2022 1:01 am

why do it in js anyway ?

Code: Select all

.product-thumb  .caption h4+p {
   display:none; 
}
.product-list .product-thumb .caption h4+p {
display:block;
}

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by gcextreme » Mon Jan 09, 2023 11:10 am

by mona wrote:
Tue Dec 13, 2022 1:01 am
why do it in js anyway ?

Code: Select all

.product-thumb  .caption h4+p {
   display:none; 
}
.product-list .product-thumb .caption h4+p {
display:block;
}
Where do you add this to? the stylesheet or twig and where at?

Opencart Default Theme Version 3.0.3.8
www.gcextreme.com
Fergus Falls, Mn. USA
AAS Degree in E-Com Web Design Development
Old School: Dreamweaver, Fireworks, Flash, Photoshop


User avatar
New member

Posts

Joined
Mon Jul 14, 2014 6:31 am


Post by by mona » Mon Jan 09, 2023 12:41 pm

in your custom stylesheet if you have one or your theme or the opencart stylesheet.css
remember to refresh all the cache (which includes your browser and any server cache)
note this is for default theme - if you have a theme it might be different and would require a web page

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: No registered users and 15 guests