Jump to content

Move the "Add To Cart" button below the picture gallery in Mobile view


jpayam
 Share

Recommended Posts

There are two solutions depending which version of the Foundation skin you have.

If CC618, then you have a template named element.product.vertical_gallery.php and element.product.horizontal_gallery.php.

Find:

{include file='templates/element.product.call_to_action.php'}

Move this line to just ABOVE:

   </div>
   <div class="small-7 medium-5 columns">

(The vertical template also has thinpad-left in the div.)

This also moves the prices along with the button because the buttons action and appearance are closelt associated with how the prices are displayed.

But I think you wanted this in only Mobile (small) view.

So, do not move the code, but just copy it to that location. Then:

For the copied statement, change that to:

<div class="show-for-small-only">{include file='templates/element.product.call_to_action.php'}</div>

For the original statement, change that to:

<div class="show-for-medium-up">{include file='templates/element.product.call_to_action.php'}</div>

 

Link to comment
Share on other sites

My concern is that the options, if any, will be positioned below the bottom of the screen. But if that's good for you, then:

In product.vertical_gallery.php, find:

<div class="small-5 medium-6 columns text-center nopad">

Change to:

<div class="small-12 medium-6 columns text-center nopad">

Find:

<div class="small-7 medium-5 columns thinpad-left">

Change to:

<div class="small-12 medium-5 columns thinpad-left">

Normally, each row will have a sum-total of 12 columns. But, because the columns are actually floated, it seems that overloading that total will cause what won't fit on the intended line to slip down to the next available space.

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.

 Share

×
×
  • Create New...