Jump to content
MWEapril

Category Description Not Displaying on Mobile Skin

Recommended Posts

On most category pages in our store, we have a description. In some cases, we have links to technical documents, or a table that has text and images. When a customer views our site from a mobile device (or selects Mobile Site via link at the bottom of the page), they cannot see any of the content of the category description. The only thing visible are the links to the subcategories in text format. The thumbnails are not visible, either. Has anyone run into this that may be able to give me some insight as to how to make the descriptions visible?

Share this post


Link to post
Share on other sites

This is not the standard behavior of the Foundation skin.

Please let us know what skin you are using.

Also, if we may see the store, what is it's web address?

Share this post


Link to post
Share on other sites

Sorry for leaving out all of the relevant information! Here is a link to a page that is displaying this behavior: https://www.markwilliams.com/technical.html.  

We are using a customized skin.

In mwcustom/templates/content.category.php, I noticed that there is "{if isset($PRODUCTS) && count($PRODUCTS) >= 1}" and thought that maybe the behavior was caused by the lack of products in this category. I added a product to the page, and the product showed up, but still none of the content. The pages that have product display fine. (less the content listed in the category description)

Share this post


Link to post
Share on other sites

Since your site is using a "non-responsive" skin, your site is relying on CubeCart to determine if an alternate skin - a "mobile-specific" skin - should be used.

The "mobile" skin is named Mobile, and its coding will not show a number of things that would otherwise show on the "desktop" skin.

Two missing items is the viewed category's assigned image and description. The following is the first few lines of content.category.php from the Mobile skin:

<h2>{$category.cat_name}</h2>
{if isset($SUBCATS) && $SUBCATS}

Compare this to the first few lines of content.category.php from the Kurouto desktop skin:

<h2>{$category.cat_name}</h2>
{if isset($category.image)}
<div id="category_image"><img src="{$category.image}" alt="{$category.cat_name}" /></div>
{/if}
{$category.cat_desc}
{if isset($SUBCATS) && $SUBCATS}

I recommend that you make the first few lines of this file of the Mobile skin look like the first few lines of your customized skin.

But be aware that your tables of images and other detail that shows best on a wide screen may have a horribly messed up layout on a skinny mobile screen.

Share this post


Link to post
Share on other sites

Thanks a bunch! I didn't want to add the images back in as I think that would be the cause of most of the problems I would have. I did add the content back in, and now the important stuff is there!

Share this post


Link to post
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...