Forum Support

Shape 5
January 21, 2022, 09:16:02 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]
Author Topic: Change logo for a different language  (Read 651 times)
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:
<!-- 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'); ?>
<?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!
Offline Offline

Posts: 28743

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


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.

Mike Knott
Shape 5 Team

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

- 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
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
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by
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.