Archived topic
Logo Text
5 replies · Started by Maro on January 10, 2018
Hi guys, hope you are enjoying 2018:)
I would like to do this:
If I have not declared a primary nav > nav logo the site title should replace the image, or an action that replaces the logo img.
I could use this (copied from another thread) and style it:
add_action( 'generate_inside_navigation','generate_site_title_navigation' );
function generate_site_title_navigation()
{
?>
<?php
}
but the styling (margin, padding, mobile etc. ) is already done great for the logo image and I would like to have that.
So basically replacing nav logo with text.
thanks
Hi there,
What style are you looking for?
Can you link me to the site and show me what you have so far?
Hi Leo
There is no site, playing around with some design thoughts.
I just want to replace the logo img with text instead
Hmm you can give it whatever style using this method: https://generatepress.com/forums/topic/sitetitle-in-navbar-instead-of-icon/#post-225010
Well yes, i know, that is the code i refered to. But this adds a title, i would like to replace the img instead!
But nevermind, I’ll make some workaround
Thanks
If you want to use image instead then you can just use the navigation logo in the customizer?
Sorry if I'm misunderstanding something.
Or you can use an <img> tag in the hook as well.
Let me know if you need more help :)