badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Change logo per lenguaje

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12531
    lmhernando83
    Participant

    `Hi there,

    Im using the theme for a multilanguaje site using wpml. im trying to change the logo when the languaje changes. in the heder.php in the header branding div i add the follow code

    <header id="branding" >
        <?php
    				/** 
    				 * interface_header hook
    				 *
    				 * HOOKED_FUNCTION_NAME PRIORITY
    				 *
    				 * interface_headercontent_details 10
    				 */
    				do_action( 'interface_header' );
    	?>
    <?php
    		if (ICL_LANGUAGE_CODE == 'es') { ?>
     
    			<a href="/"><img src="http://.mysite.com/wp-content/uploads/2014/07/logo.png" /></a>
     
    	<?php
    		} else if (ICL_LANGUAGE_CODE == 'en') { ?>
    			<a href="/en"><img src="http://mysite.com/wp-content/uploads/2014/07/logo_en.png" /></a>
     
    	<?php
    		} else if (ICL_LANGUAGE_CODE == 'de') {?>
    			<a href="/de"><img src="http://mysite.com/wp-content/uploads/2014/07/logo_en.png" /></a>
     
    	<?php
    		} else if (ICL_LANGUAGE_CODE == 'fr') {?>
    			<a href="/fr"><img src="http://mysite.com/wp-content/uploads/2014/07/logo_en.png" /></a>
    	<?php
    		}
    	?>

    The code i added works just fine, but it shows below the slider. If i erase the do_action( ‘interface_header’ ) code i lose my menu and slider.

    I been reading a lot an it seems that exists a heder-extension.php but i dont have that archive in my theme.

    How can i fix the problem?

    Awsome theme by the way, keep the good work.

    #12540

    Hi please go throught theme folder (interface) -> inc -> structure -> header – extension.php on line no 361.
    From there your header image is displayed. If you are good at coding then you can make a condition from there too.
    We recommended not to change the code because if you change the code then while updating to our new version all your customization code will be lost. So better make child theme and first unhook the functions and the edit the code.

    http://codex.wordpress.org/Child_Themes

    Thank you!

    #12570
    lmhernando83
    Participant

    Awsome Thanks a lot you made my day.

    I never used the child themes but thanks for the link i´ll put it in use.

    Keep the good work.

    Regards.

    #12584

    You welcome
    Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.