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

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


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


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

#1 maofree

    PrestaShop Addict

  • 20 Feb 2010
  • Members
  • PipPipPip
  • 848 posts

Posted 05 September 2010 - 09:24 PM

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 File(s)



#2 shacker

    PrestaShop Fanatic

  • 03 Mar 2009
  • Moderators
  • 4417 posts
  • Location:Argentina

Posted 30 September 2010 - 12:40 AM

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

  • 20 Feb 2010
  • Members
  • PipPipPip
  • 848 posts

Posted 30 September 2010 - 12:51 AM

Hi shacker
This solution is simpler, I still do not know Smarty language
Thanks





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users