Jump to content

default list as tiles?


foz1234

Recommended Posts

I think, by default for Foundation, a Category View is in a 'list' style. (This is, of course, a layout consideration of the skin you are using, and not a specific decision or setting made within CubeCart.)

There are a few edits to make to the template to have it initially be in a grid view:

In content.category.php, near line 59, find:

         <dd><a href="#" class="grid_view"><svg class="icon"><use xlink:href="#icon-th-large"></use></svg></a></dd>
         <dd class="active"><a href="#" class="list_view"><svg class="icon"><use xlink:href="#icon-th-list"></use></svg></a></dd>

Change to:

         <dd class="active"><a href="#" class="grid_view"><svg class="icon"><use xlink:href="#icon-th-large"></use></svg></a></dd>
         <dd><a href="#" class="list_view"><svg class="icon"><use xlink:href="#icon-th-list"></use></svg></a></dd>

Near line 70, find:

<div class="row product_list_view">

Change to:

<div class="row product_list_view hide">

Near line 130, find:

<div class="product_grid_view hide">

Change to:

<div class="product_grid_view">

Because a template has been changed, we need to clear the template cache (admin, Maintenance, Rebuild tab, Clear Cache).

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...