- This topic has 3 replies, 2 voices, and was last updated 11 years, 3 months ago by
Theme Horse Support Team.
-
AuthorPosts
-
July 27, 2014 at 12:47 pm #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.
July 28, 2014 at 5:41 am #12540Theme Horse Support Team
KeymasterHi 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!
July 29, 2014 at 2:17 pm #12570lmhernando83
ParticipantAwsome 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.
July 30, 2014 at 6:00 am #12584Theme Horse Support Team
KeymasterYou welcome
Thank you! -
AuthorPosts
- You must be logged in to reply to this topic.
