Creating a theme for a site I am working on and would like to know what would be the best solution for my problem.

On the home page I would like a full width slider under the header ( I have the header all built). Under the slider I would like a left column which has the navigation for product categories and the main body to the right of that with Sale and Clearance items product view.

I'm not sure if possible but should I set the home page as a 2 column and add the slider in or make the homepage a one column and do it that way.

If I do do it one of these ways what would be the best way to implement the slider.

I'm using CE lastest version the slider I'm looking at implementing is http://www.jssor.com/demos/simple-fade-slideshow.html

I'm also using the bootstrap framework for the theme as well.

Any input would be great, thanks


So the question is actually about page layout and there are 2 ways to achieve it.

  1. Either put your slider into the template/page/html/header.phtml of your theme and then wrap it into the "if" clause which will check if the current page is home or not.
  2. Modify template/page/2columns-left.phtml of your theme calling a new block between header and main content area. Of course you also have to define a block itself and add it under the cms_index_index layout handle.
| improve this answer | |
  • Thanks heaps for the answer. I was kinda leaning towards the second way. Just a quick question about it though, if I add it to the 2columns-left.phtml won't it display on all pages set to 2 columns let? – D-K Jun 16 '14 at 9:49
  • No it won't as the block will be added to cms_index_index layout handle only. – user487772 Jun 16 '14 at 20:19
  • ah cool, would I be best adding the slider to a static block and calling the static block. Sorry if these question seem pretty basic. I'm still just learning and would like to do it the most practical way as possible. – D-K Jun 18 '14 at 10:50
  • Adding a slider to static block is a good idea when you slider is pretty static. – user487772 Jun 18 '14 at 11:03

you can just edit CMS page, or if you want more advanced homepage, you can create new page template.


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.