Change footer color in classic theme

2017-03-09 classic theme, footer

In this short guide i want to show you the way of how to alter color of the footer's background in default theme (classic) prestashop 1.7. Problem with background change of footer is related to fact that footer's background color is a color of "body" element (whole page). If we change the color of "body" element, we will change it also in other parts not related to footer. Because of this - we have to create new styles that browser will use to colorize the footer only.

footer in classic theme prestashop

Modification of theme.css file

Styles for #footer element are located in theme.css file. Full path to the file is: /themes/classic/assets/css/theme.css. Please open it - file is minified so it is unreadable, but no worries about that. At the end of the code paste:

#footer {
    background: #DDDDDD!important;
}

Change the #DDDDDD to any other color that will fit to your requirements. If you want to use Image instead of color you can use this code:

#footer {
    background: url('https://i.imgur.com/aMwCZeC.jpg');
}

Change the url to the image: https://i.imgur.com/aMwCZeC.jpg to your own picture you want to use as footer background.

 

I dont want to modify the theme file, is there any other way?

You can use module like html box free to put custom contents. Install this module and on module configuration page select "header" position as a place where you want to insert the code. Then in rich text editor use code tool to paste the code of your styles. Paste there styles in that way:

<style>
// YOUR CODE HERE
</style>

example of working code:

<style>
#footer {
    background: #DDDDDD!important;
}
</style>

 

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