Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter adatfalo

    (@adatfalo)

    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

    (@johnclause)

    Great! I wish every problem would be solved like this ?? One note, you may wish to use WP standard function 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!

    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.