- This topic has 15 replies, 5 voices, and was last updated 8 years, 10 months ago by
Leo.
-
AuthorPosts
-
September 8, 2016 at 6:53 am #224948
Anders
Hi Tom,
Is there a way to get the sitetitel in the navbar instead of the navbar icon?
// Leif
September 8, 2016 at 10:29 am #225010Tom
Lead DeveloperLead DeveloperHi there,
You can use the
generate_inside_navigationhook.Something like this:
add_action( 'generate_inside_navigation','generate_site_title_navigation' ); function generate_site_title_navigation() { ?> <div class="menu-site-title"> My site title </div> <?php }Then style it:
.menu-site-title { float: left; font-size: 20px; color: #FFF; }Hope that gets you started ๐
September 8, 2016 at 4:13 pm #225047Anders
Thanks Tom,
This solved it, though I think this should have been feature in the settings under “Sticky Navigation Logo” in layout settings for people like me that does not know php and stuff .. ๐ .. Wink, Wink ..
Anyway thanks again it solved the problem.
September 8, 2016 at 9:48 pm #225106Tom
Lead DeveloperLead DeveloperBeen thinking that recently as well – definitely on my to-do list ๐
February 23, 2017 at 9:41 pm #283289Jonathan
I’d love to see this added as a feature as well.
I’ve added the code above according to instructions, using code snippets + simple css, but it doesn’t quite work. It’s displayed correctly in the sticky-bar, but it’s also displayed in the regular header (on initial load) with the ordinary site title and nav menu (which it pushes to the side).
Can it be invisible (on initial load) if another class is used? I’m no developer, so I can’t really figure this out myself.
February 23, 2017 at 11:32 pm #283316Tom
Lead DeveloperLead DeveloperYou can add this CSS to it:
.menu-site-title { display: none; } .navigation-stick .menu-site-title { display: block; }Let me know if that helps or not ๐
February 27, 2017 at 12:36 am #284405Jonathan
Tom, thanks a lot, it did work! ๐
February 27, 2017 at 9:44 am #284617Tom
Lead DeveloperLead DeveloperYou’re welcome ๐
June 6, 2017 at 12:12 pm #329538Georgios
Hello
Quick question related
I use text for site title but while i scroll the site title wont appear
Is there a way to make it appear and while in sticky mode of the menu?thank you
June 6, 2017 at 1:11 pm #329556Leo
StaffCustomer SupportDid you inserted using the method above? https://generatepress.com/forums/topic/sitetitle-in-navbar-instead-of-icon/#post-225010
June 6, 2017 at 1:21 pm #329561Georgios
Hello
Yes actually i use that code but it appears in the header also
i would like to appear only as i scroll down like if i had a small sticky logo?
take a look- its a test url : gegeor.net/https://gegeor.net/gr/June 6, 2017 at 1:28 pm #329564Leo
StaffCustomer SupportDid you add this CSS? https://generatepress.com/forums/topic/sitetitle-in-navbar-instead-of-icon/#post-283316
June 6, 2017 at 1:43 pm #329575Georgios
Great,worked!
Now it only appears while scrooling:)
How can i place it on the left side?
for styling i guess it needs CSS?June 6, 2017 at 1:45 pm #329576Leo
StaffCustomer SupportYup this post provides an example as well: https://generatepress.com/forums/topic/sitetitle-in-navbar-instead-of-icon/#post-225010
June 6, 2017 at 1:48 pm #329578Georgios
many thanks, exactly what i was looking for:))
thank you
-
AuthorPosts
- You must be logged in to reply to this topic.