If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / how can I remove the 'more info' line in product listing?

how can I remove the 'more info' line in product listing?

Started by shags38 on 31 Mar 2024, 2:30 AM · Views: 1,196

Results 1 to 7 of 7
31 Mar 2024, 2:30 AM
#1
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Post #1 by shags38

v157, PHP 7.1, Responsive_Classic

I'd like to remove the '.... more info' line under the product listings on category pages, featured products etc, and not sure how to go about it so would appreciate some help please. The product image and the description text under the image both link to the product page so personally I cannot see a need for the more info link - and removing it will reduce the gap between products on a page.

cheers, Mike

31 Mar 2024, 12:42 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #2 by swguy

The easiest way would be to simply not display the description.

Set Display Product Description to 0 on the New/Featured/All Listing pages
https://docs.zen-cart.com/user/template/new_featured_all_listing_page_configuration_v1/

then do the product listing page:
https://docs.zen-cart.com/user/template/product_listing_page_configuration/

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

31 Mar 2024, 12:50 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #3 by swguy

If you want to compress the rows more so they're skinnier, I would try this:

  • show Weight and Stock on the same line
  • reduce spacing under Price
  • remove Date Added.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

31 Mar 2024, 12:57 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #4 by lat9

Or, add to the site's stylesheet:

a.list-more {display: none;}
31 Mar 2024, 5:34 PM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #5 by dbltoe

swguy:

If you want to compress the rows more so they're skinnier, I would try this:

  • show Weight and Stock on the same line
    - reduce spacing under Price
  • remove Date Added.

FYT
When adjusting spaces or heights, especially h and p tags, be sure to keep accessibility in mind and test your page. Line-height is also one of the things all accessibility checkers look at.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

31 Mar 2024, 6:16 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #6 by dbltoe

A little mor FYI

Here are some other WCAG text spacing metrics:

  • Spacing following paragraphs: At least 2 times the font size

  • Letter spacing: At least 0.12 times the font size

  • Word spacing: At least 0.16 times the font size

The default line height in browsers is roughly 1.2. For good readability, values between 1.3 and 1.5 are typically recommended, although this varies with font face and line length.

Many people with cognitive disabilities have trouble reading text that is single spaced. A button that increases the line height will help them read the content.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

1 Apr 2024, 3:48 AM
#7
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Post #7 by shags38

Many thanks to everyone for your responses - as I needed to keep the description and price I elected to use the stylesheet code suggested by lat9 and that did the trick.

In respect to changing the listing configurations it did not make any changes, maybe I did it incorrectly - changed the 4th digit from 2 to 1 here applicable and for all the lines I did not want (weren't showing anyway) I change to first digit to 0 (off) but didn't change the other 3 digits. The resultant spacing was exactly the same as it previously was (and yes I cleared cache) and the same as on another 157 site with unaltered configuration.

With the line spacing aspect which I haven't done before I would have to do a bit of a) reading up on the process and b) do some experimenting.

Again many thanks, much appreciated
cheers, Mike