Skip to content

All About Basic

Wordpress CSS Customization, Web Development, Wordpress Tricks, Job Interview and Recruitment Guide

Tag: changing flag changing logo opencart

Web Development

Opencart issue: Changing logo while changing language flag instantly

April 3, 2016 allaboutbasic

Use the following code if u want to show different logo image in different language pages in Opencart sites.

This code Also solves / helps

1. Changing language and changing logo instantly…there is no lapses or need to refresh the page again

*** i used this code in Journal2 theme and i had to modify the following file

/public_html/catalog/view/theme/journal2/template/journal2/headers/center.nosecond.tpl

but depending on your opencart theme you may need to modify the header.tpl file

<?php if ( $lang=='ar') { ?>
  <div id="logo"><a href="<?php echo $home; ?>"><img src="/image/LOGODONEARABIC.png" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" /></a>  </div>
  <?php } ?>
  <?php if ( $lang=='en' ) { ?>
  <div id="logo"><a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" /></a></div>
  <?php } ?>


If you have any issue feel free to ask me question here in comments section

Like this post?

  • Tweet
  • Email
  • WhatsApp
  • Print

Like this:

Like Loading...
Tagged changing flag changing logo opencart, changing language flag not changing the logo instantly, use arabic logo, use different language different logo in opencartLeave a comment

Search Posts

About Me

Om Prakash Chowdhury Om Prakash Chowdhury Skype: om2000_cuet

This Site Has Been Visited

  • 7,413,144 Times

Who I Helped

allaboutbasic on How to add auto calculation fi…
jelenas897ab9a238aa on How to add auto calculation fi…
allaboutbasic on How to add auto calculation fi…
Adam Kruzics on How to add auto calculation fi…
allaboutbasic on Radcliffe 2 By Anders Norén :M…
TraduAgindo on Radcliffe 2 By Anders Norén :M…
allaboutbasic on The Rowling Theme by Anders No…
Francesca Alloatti on The Rowling Theme by Anders No…

Recent Posts

  • WordPress theme Twenty Twenty-One: Modifications and customizations of headers, fonts, styles and more
  • Previous and Next Post title from same category
  • HTML Tab without bootstrap : Tabbed menu with only css, jQuery and html
  • WordPress Podcasting theme Spearhead by Automattic : Modifications of header, footer, fonts, widgets, titles and more
  • Seedlet by Automattic: A writing and content based theme’s Modifications, Support and Customization

ফেসবুকে আমাদের সাথে যুক্ত হতে চান?

ফেসবুকে আমাদের সাথে যুক্ত হতে চান?

Flickr Photos

Contact Form 7 send mails based on drop down person or department selectionContact Form 7 mail tag to send  mails based on drop down person or department selectionContact Form 7 code to send  mails based on drop down person or department selectiontheme Editor by array demotheme Editor by Array Post or page title modifications and Meta section Removal to increase width of contentstheme Editor by Array  Tabbed sidebar  widget section modificationtheme Editor by Array  Tabbed sidebar featured post widget section modificationtheme Editor by Array  site title menus and social icons modificationtheme Editor by Array  comments section modifications
More Photos

My Favorite Lines

Synopsis of Bhagavad Geeta!!!
What has happened, happened fair,
What is happening, happening fair!
What will be will be fair!
What have you lost that you are crying for?
What did u have with you during your birth that u have lost?
What have u created that is destroyed??
What u have taken, taken from here!
What u have given, given here!
What u possess today,
That was possessed by other yesterday…
And will be possessed by some other tomorrow!!!
‘Change’ is the very law of the world!!!
Blog at WordPress.com.
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.
%d bloggers like this: