-
AuthorPosts
-
October 30, 2014 at 7:57 am #135108
Hi! I’ve searched for this in the forum but I not found anything.
I ‘ve got this web: http://nueva.residenciadonperro.com/wordpress. It’s important for my client to put 2 logos in the left side header menu section.
I’ve got the following structure:
DogLog (href=indexphp) — CatLog (Href=section to the web) — THE ACTUAL MENUIs there any way to make this?
Thanks in advanced
October 30, 2014 at 10:05 am #135237Hi There,
Thanks for writing in,
First of all, please update your X theme and X shortcode, you can follow the update guide from here -> http://theme.co/x/member/kb/updating-your-theme-and-plugins/
and sorry, but I’m not really sure if I understand you correctly,
Did you mean to have a different logo in the home page?
If so, then you need to set-up a child theme, you can simply download the child theme from here -> http://theme.co/x/member/child-themes/ then install and activate the one that corresponds to your stack
Then copy this file x/framework/views/global/_brand.php to your child theme
e.g. x-child-integrity-light/framework/views/global/_brand.phpThen edit the _brand.php that you copied on your child, theme,
you can see a code like this,
$site_name = get_bloginfo( 'name' ); $site_description = get_bloginfo( 'description' ); $logo = x_make_protocol_relative( x_get_option( 'x_logo' ) ); $site_logo = '<img src="' . $logo . '" alt="' . $site_description . '">';
Then simply add another $logo variable with the image url and add a php statement, e.g.
something like this,
$site_name = get_bloginfo( 'name' ); $site_description = get_bloginfo( 'description' ); $logo = x_make_protocol_relative( x_get_option( 'x_logo' ) ); if( is_front_page() ) { $logo = 'http://your-image-url-here.com/image.jpg'; } $site_logo = '<img src="' . $logo . '" alt="' . $site_description . '">';
Hope that helps,
Have a great day
October 31, 2014 at 4:42 am #135726OK! The answer solves my problem. I dont want 2 different logos deppens the page. I want two logos always, in any page.
The solution is very simple. I only just add another <a href=””….. in mi brand.php and it works.
I didn’t know what file manage the logo. _brand.php is the key 🙂
Thanks so much!
October 31, 2014 at 7:33 am #135816Glad you were able to figure this out and thank you for posting the solution for others who may encounter the same issue.
February 18, 2016 at 9:27 am #801791One and half year later, I re-up this topic cause now I’ve got a new problem.
When reinstall all my files, and update mi “X-Theme”, this change is not perfect for me.
If I add in the global/brand.php the change of the add a new logo, everything is ok. But If I add this lines ONLY in the child theme brand.php, the change is not working.
This is a problem cause when I update the X Theme, I should made a backup of the global/brand.php and then restore it, instead only update, because the change only works in the global brand.php and not in the child brand.php.
How can I solve this?
Best regards
February 18, 2016 at 7:18 pm #802493Hi there,
It should work even if you add to your child theme. Just make sure that your child theme is active, and not the main theme.
Would you mind provided the update URL? The above URL is inaccessible.
Thanks!
-
AuthorPosts