Jump to content

Is there a way to adjust?


Recommended Posts

Hello. After upgrading to CubeCart 6, we've been enjoying the Foundation skin. However, we've encountered an issue where product titles under any category are being cut off when viewed on mobile devices or in the three-column layout on desktop. Is there a way to adjust this so the entire title is visible, particularly on mobile devices?

Link to comment
Share on other sites

When viewing a list of products in a given category, when that list is in 'grid' view, the product name (title) is truncated to 38 characters (including spaces), followed by a three-dot character (ellipsis). The same applies to the listing on the homepage.

Using a programmer's text editor, please edit these files:

content.homepage.php, near line 29:
From:
<h3><a href="{$product.url}" title="{$product.name}">{$product.name|truncate:38:"&hellip;"}</a></h3>
To:
<h3><a href="{$product.url}" title="{$product.name}">{$product.name}</a></h3>

content.category.php, near line 137:
From:
<h3><a href="{$product.url}" title="{$product.name}">{$product.name|truncate:38:"&hellip;"}</a></h3>
To:
<h3><a href="{$product.url}" title="{$product.name}">{$product.name}</a></h3>

Have CubeCart clear its internal cache (in admin, click the "Clear Cache" button at the upper-right corner).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...