Title: Logo change problem
Last modified: August 31, 2016

---

# Logo change problem

 *  Resolved [adatfalo](https://wordpress.org/support/users/adatfalo/)
 * (@adatfalo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/logo-change-problem/)
 * Hi!
 * I would like to set 2 logos for my website.
    Can you tell me someone, how can
   I change this code:
 * `<img src="<?php echo esc_url($redux_demo['logo']['url']); ?>" alt="Logo" class
   ="logo_img">`
 * I would like to use a simple url links.
 * Thanks,
 * adatfalo
 * [https://wordpress.org/plugins/qtranslate-x/](https://wordpress.org/plugins/qtranslate-x/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [adatfalo](https://wordpress.org/support/users/adatfalo/)
 * (@adatfalo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/logo-change-problem/#post-7375534)
 * Hi!
 * I was impatient.I solved the problem, here is the code:
 *     ```
       <?php
       if( qtranxf_getLanguage() == 'hu' ){ ?>
         <img src="<?php echo esc_url($redux_demo['logo']['url']); ?>" alt="Logo" class="logo_img">
       <?php }else { ?>
         <img src="<?php echo get_template_directory_uri().'/img/logo.png';?>" alt="Logo" class="logo_img">
       <?php } ?>
       ```
   
 *  Plugin Author [John Clause](https://wordpress.org/support/users/johnclause/)
 * (@johnclause)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/logo-change-problem/#post-7375552)
 * Great! I wish every problem would be solved like this 😉 One note, you may wish
   to use WP standard function [get_locale ](https://codex.wordpress.org/Function_Reference/get_locale)
   instead of qtx-specific `qtranxf_getLanguage`, so that the site would continue
   to work even if qtx is deactivated. It is just more clean. We discourage people
   to use direct calls to qtx functions, but it is not very important. Good luck
   to you in your further development!
 *  [wayakan](https://wordpress.org/support/users/wayakan/)
 * (@wayakan)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/logo-change-problem/#post-7375773)
 * Hi,
 * I apologize in advance if this sounds like a stupid question, but I am pretty
   new to WP.
 * Where exactly do you insert this code? This is what I have:
 *     ```
       <?php if ( get_theme_mod( 'business_logo', get_template_directory_uri() . '/images/logo.png' ) ) { ?>
   
       						<h1 id="logo">
       							<a>">
       								<img src="<?php echo esc_url( get_theme_mod( 'business_logo', get_template_directory_uri() . '/images/logo.png' ) ); ?>" alt=""/>
       								<span class="logo-text"><?php echo wp_kses_post( get_bloginfo( 'name' ) ); ?></span>
       							</a>
       						</h1>
   
       					<?php } else { ?>
   
       						<div id="site-title" class="<?php if (get_theme_mod('business_title_align', 'left') == 'center') { ?>text-center<?php } if (get_theme_mod('business_title_align') == 'left') { ?>align-left<?php } if (get_theme_mod('business_title_align') == 'right') { ?>align-right text-right<?php } ?>">
       ```
   
 * _[Moderator Note: Please post code & markup between backticks or use the code
   button. Your posted code has now been damaged by the forum’s parser.]_
 * I am guessing it should be inserted near the “a href”, but where exactly?
 * Thank you so much!
 * Gabriel

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Logo change problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-x_f9f9f9.svg)
 * [qTranslate X](https://wordpress.org/plugins/qtranslate-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-x/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-x/reviews/)

## Tags

 * [change](https://wordpress.org/support/topic-tag/change/)
 * [logo](https://wordpress.org/support/topic-tag/logo/)
 * [redux](https://wordpress.org/support/topic-tag/redux/)

 * 3 replies
 * 3 participants
 * Last reply from: [wayakan](https://wordpress.org/support/users/wayakan/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/logo-change-problem/#post-7375773)
 * Status: resolved