Skip to content

All About Basic

Love to share Wordpress, HTML, CSS , JQuery related issues & My observations on Astrology

  • Home
  • WordPress Tricks
    • Theme for Photography
    • Contact Form 7 Issues
  • Web Development
  • Karma Observation

Tag: use arabic logo

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

This Site Has Been Visited

  • 7,648,212 Times

Who I Helped

Ben Kidd on Health, Wellness and Yoga base…
allaboutbasic on Health, Wellness and Yoga base…
Ben Kidd on Health, Wellness and Yoga base…
allaboutbasic on Health, Wellness and Yoga base…
Ben Kidd on Health, Wellness and Yoga base…
Irene Sackey on List of Input Devices, Output…
allaboutbasic on Seedlet by Automattic: A writi…
fabiank0407 on Seedlet by Automattic: A writi…

Connect With My Facebook Page

Connect With My Facebook Page

Recent Posts

  • Contact Form 7 British Date format DD-MM-YY
  • WordPress Copy Content Protection: Protect Specific page to be copied and disable CTRL+C, CTRL+V using jQuery and Javascript
  • Menu Drag and scroll in left and right using Mouse : HTML CSS and JavaScript
  • Woocommerce shortcode to show product image, sku, regular price, sales price, title using wp_Query
  • Multi Blog By themeinwp :Photography Fashion or food blog and Modification of header footer sidebar using css

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.
  • Follow Following
    • All About Basic
    • Join 1,256 other followers
    • Already have a WordPress.com account? Log in now.
    • All About Basic
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
%d bloggers like this: