Forum Support

Shape 5
March 28, 2024, 11:56:54 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Change logo for a different language  (Read 857 times)
TomJansen
Jr. Member
**
Offline Offline

Posts: 12



« on: April 16, 2018, 02:27:56 AM »

Hi Guys, goodmorning,

I want to change the logo/header when a visitor from a other country visits my website, how is this possible?

The code in the template index.php file is:
Code:
<!-- Header -->
<div id="s5_header_area1">
<div id="s5_header_area2">
<div id="s5_header_area_inner">
<div id="s5_header_wrap">

<?php if($s5_pos_logo == "published") { ?>
<div id="s5_logo_module">
<?php s5_module_call('logo','notitle'); ?>
</div>
<?php } else { ?>
<img alt="logo" src="/images/header.jpg" id="s5_logo" onclick="window.document.location.href='<?php echo $LiveSiteUrl ?>'" width="1800"/>
<?php ?>

<?php if ($s5_rss  != "" || $s5_twitter  != "" || $s5_facebook  != "" || $s5_google  != "" || $s5_pinterest  != "") { ?>

I want to change the header.jpg image to header-de.jpg when a German visitor is on our website.

Kind regards!
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: April 16, 2018, 08:36:47 AM »

Hello,

You should not be making modifications to the template's index.php file. If you want a different logo per language you would have to use a module published to the "logo" position and set the logo type under Main/Logo. Once you do that you would have to create a module published to "logo" for every language of your site.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
TomJansen
Jr. Member
**
Offline Offline

Posts: 12



« Reply #2 on: April 16, 2018, 08:49:31 AM »

Great! It works perfect, thanks for your fast reply! Cool
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.