PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

[LOGO] Different logo to load each page, taken randomly from a folder of logos

2 replies to this topic
#1
maofree

    PrestaShop Addict

  • Members
  • PipPipPip
  • 871 posts
Hi
Solution:
1)
In img directory, create another directory (folder) named "logo" and inside it add as many images as you want, is not imported the image type, the important thing that they have the same size (but just a suggestion) .
2)
make a backup of both files header.tpl (present in your theme) and header.php (present in webroot of your site)
3)
replaced original header.tpl and header.php with those found in. zip attached

(prestashop 1.3.1)
bye bye

Attached Files



#2
shacker

    PrestaShop Superstar

  • Moderators
  • 5427 posts

From 1283718286:

Hi
Solution:
1)
In img directory, create another directory (folder) named "logo" and inside it add as many images as you want, is not imported the image type, the important thing that they have the same size (but just a suggestion) .
2)
make a backup of both files header.tpl (present in your theme) and header.php (present in webroot of your site)
3)
replaced original header.tpl and header.php with those found in. zip attached

(prestashop 1.3.1)
bye bye


you can replace in the header.tpl, in the img for the logo

{math equation=rand(1,5)}.jpg

where 1, 5 is the names from/to of the images

1.jpg, 2.jpg, 3.jpg

#3
maofree

    PrestaShop Addict

  • Members
  • PipPipPip
  • 871 posts
Hi shacker
This solution is simpler, I still do not know Smarty language
Thanks