Horizontal top menu + ribbon design

In this guide i want to show you how easily you can create ribbon style menu based on official module named horizontal top menu (blocktopmenu). In this guide we will use free html block module. To create this nice modification we will use css and simple html code. Effect of the modification you can check on image below:

 

ribbon style menu in prestashop - default menu modification

ribbon style top horizontal menu

or just see it live here: block top menu ribbon desing

 

 

Ribbon style top horizontal menu

Html block free module installation

First step of this modification is related to free html block module installation. Just install it as you install other prestashop modules. After module installation go to modules > positions tab in your back office and search for "displayTop" modules list. On this module list search for installed html block free module and move it to the top of the list.  You can drag'n'drop it as i show on video (click).

 

Image for ribbon style

I will use images uploaded to imgur service, but you can of course upload these images to your server, then in code below you will need to use own links instead of links to imgur that i used. You have to use these images:

 

left ribbon

left ribbon

this ribbon image is used for left hand side

part of the menu to display "left ribbon effect"

background ribbon

background

this is background image for whole menu
left ribbon

right ribbon

this ribbon image is used for right hand side

part of the menu to display "right ribbon effect"

 

 

Prepare the code for modified menu

Then open module configuration page. From the left hand side block select "Top". Right hand side textarea is a place where you have to paste the code:

 

<div style="width: 41px; height:37px; display:block; position:absolute; top: 117px; right: -23px; z-index:1; background:url('http://i.imgur.com/rMFy4fO.gif')"></div>
<div style="width: 41px; height:37px; display:block; position:absolute; top: 117px; left: -23px; z-index:1; background:url('http://i.imgur.com/XqLnQRX.gif')"></div>

and this css code:

<style>
.sf-contener{
z-index: 2!important;
position: relative!important;
}

.sf-menu{
background: url('http://i.imgur.com/MIH6C41.gif')!important;
height: 38px!important;
}

.sf-menu a{
display: block!important;
margin-right: 2px!important;
padding: 0 30px!important;
line-height: 38px!important;
border: 0!important;
text-decoration: none!important;
}
</style>

 

Paste whole code to html block, and then just save changes. Refresh your front office page, and you will see your default block top menu module with nice ribbon effect. If you've got problems with left / right hand side "ribbon effect" check last part of this article:

 

 

ribbon style menu problemPossible problems

If for some reasons ribbon images doesn't fit to your menu, it's because of top:117px; params. You have to increase / decrease this param values, both for left and right ribbon style image. In this case (left image) you have to increase it a bit, for example to 140px; but in fact, everything depends on other things like number of elements you've got in the top section. Just try several solutions, it will work as you want.

 

author milos myszczuk
Article by Milosz Myszczuk PrestaShop expert, official PrestaShop community moderator. PHP developer, specialist in relative and spatial databases management, GIS Analyst, CEO & founder of VEKIA interactive agency. Read more about VEKIA company
If you like my articles and want much more valuable tips, feel free to send me donation
1.4 version 1.4.11 1.6 404 addon admin advertise ahref ajax alpha animation api app application authentication back office backup badge banner basics block bootstrap button cache carrier cart catalog category certificate changelog chat class clear client clip cms code colors columns comments configuration contact container content controller cookie counter country coupon css csv currency customer dashboard database debug default delete delivery desktop developer device disable discount displayNav displayTop download dynamic editor effect empty encrypt engine error exchange exclude export facebook faceshop fade fancoupon fancybox fanpage fatal feature feed field file fix fixed font footer free friendly url front ftp full gallery generate gift global godaddy google google+ gray grid groupon header help hide highlight homefeatured homepage hook hosting hover howto htaccess html html5 ID image import include input instagram installation integration iPhone issue javascript jquery kgb knowhow languages law left likebox link list livingsocial loading log login logo loyality mail mailing maintenance manufacturer marketing marquee mcrypt menu meta mobile modification module movie moving multilanguage multiupload must have mysql news newsletter notification number open graph order override page password performance PHP phpmyadmin picture pinterest plugin popup post prestashop prestashop 1.0 prestashop 1.1 prestashop 1.2 prestashop 1.3 prestashop 1.4 prestashop 1.5 price rules problem product profile promotion proslider purifier quantity query quick tip random rates register reinsurance release reporting reset responsive restore results ribbon rich text right sales search security seo service shadow share shipping shop shopmania slider smarty social networks SQL SSL statistics stock store style subcategory superuser support switcher tab tablet tag tax template text theme tinyMCE tips and tricks tpl tracking translations tree trends trigger tumblr tutorial twitter update upgrade upload variables video visits voucher vulnerability web2print wide widget width window wishlist wysiwyg youtube zip zopim