View Single Post
  #2  
Old January 10th, 2015, 10:41 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

One idea is to add your categories in a select menu so that your categories appear as a drop down menu.

To add your category list as a dropdown menu, add a new Category list widget to your Store's front page view.

Then add the following code to create the select menu which will automatically load the category page when selected:

HTML Code:
<script type="text/javascript">
	function redirectMe (sel) {
		var url = sel[sel.selectedIndex].value;
		window.location = url;
	}
</script>

<select name="myselect" onchange="redirectMe(this);">
	<option value="#">Select a category</option>
	[category.list before='' after='']
    	<option value="[category.link]">[category.name]</option>
	[/category.list]
</select>
That will add a drop down select menu to your store's front page to save space.

Eric