Hello Vantage team,
I hope everything is going great, we keep developing websites with your awesome theme (Vantage) but have encountered the following challenges:
1. Is there a way to have a logo with the logo in menu settings that overflows the menu bar.
i.e.: http://margherita.mx/wp-content/uploads/2015/09/Screen-shot-2015-09-28-at-12.26.43-PM.png
(maybe z-index can do the trick?)
2. How can we add a different logo (different from the one on theme settings) to an individual page. We would like this page to have its own logo: http://margherita.mx/catering-eventos/
This is all for the moment,
hope you guys can help! Thanks in advance,
J.
URL: http://margherita.mx
Hi Jose
Thanks for reaching out. All good our side.
1. How’s your CSS :) You basically need to use Custom CSS and absolute position the logo. You’d also need to re-position the menu as a result and re-adjust it all for mobile. It’s a custom development task.
2. Also a custom development job, outside our scope, we can advise though. Use a child theme, create a parts folder, insert masthead.php and change line 9. Use conditionals to render the normal logo for all pages and render your custom logo for the page you want:
https://codex.wordpress.org/Conditional_Tags
Hope that helps get you started.
Hey Andrew,
Thanks for the great support,
We succesfully worked out point 1 and are now working on point 2 and we have the following doubt:
Currently we made the child theme as instructed, found line 9 in the masthead.php and are stuck trying to find out how to call the other logo so that we can modify line 9.
any ideas?
thanks
JP
Hey Jose
We can’t really assist much further than I have already. This is custom development territory. If you can do the work then that’s great but if not, we, unfortunately aren’t able to do it for you in our current support setup. In broad terms you need to use a PHP conditional statement:
http://www.w3schools.com/php/php_if_else.asp
using WordPress conditional tags:
https://codex.wordpress.org/Conditional_Tags
To load your different logos at different times.
You can load a static image in the theme file using:
https://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri
That’s assuming your logo is stored in the child theme. You could also just call your image using a regular img tag:
http://www.w3schools.com/tags/tag_img.asp
Hello Vantage Team,
we know you canĀ“t really assist us with our issue: Having different logos on different pages and we are doing this with our own developers but we are hoping you can point us in the right direction again. We already tried the las suggestions but with no luck.
This is what we did:
Modified header.php with If-else with two different codes:
and
Hope you can help us out but if its really not possible, don’t worry we understand! Your support has been supreme all the time and we appreciate it a lot.
Thanks
J
Hey J :)
I’d create a “parts” folder in the child theme and put a copy of masthead.php in the parts folder copied from the parent.
Find this line:
Replace it with something like this:
Replace my page ID 1929 with the page ID of the page you need the new logo on. Replace my localhost image URL with yours. Should do the trick.