Remove Home button from Nav Bar
-
Hey guys the theme is amazing!
I would like to know how can i remove the Home Button from the nav Bar. I’ve look in Appareance –> Menu but there’s nothing there.
Can you help me?
Best!
Sebastián
-
Hey there Sebastian,
Thanks for the rating and I am really glad you like the theme. Doing what you want is easy enough, but I do hope you are using a child theme 😉
What you are looking to to do is modify what is called the top-bar
Now the section of the top-bar you want to change is called the
title area. Now, make a copy of content-nav.php. Now open content-nav.php and look for the following<ul class="title-area">. There are twolicomponents one of them looks like this:<li class="name"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php echo esc_attr(get_theme_mod('wpforge_nav_text','Home')); ?></a> </li>this is the one you want to remove. Now the above mentioned
liis located in several places withincontent-nav.phphere are the lines it is located on:- line 19 through 21
- line 54 through 56
- line 90 through 92
- line 126 through 128
- line 163 through 165
Hopes this helps and remember I recommend that you use a child theme at all times. Enjoy! 😉
Thank you tsquez!
I’m still having a problem, when i do that i’m still having a gap between the margin and the next menu and also a division. This is because i’m still having the UL with the LI for the responsive design, isn’t it?
If it’s like i’m saying I’ll leave it like you set for deafault.
One more question how can i change the color of the font in widget?
Thanks a lot!!Not a problem amigo, my pleasure to help.
Yes you are correct, unfortunately this is one of caveats of the
top-bar– Hopefully this will be changed in a positive way by Foundation when F6 comes out.In regards to your question about changing the color of the font in a widget, this is done in the customizer. However, with the new 4.2 update there seems to be a an issue with the names I provided for the theme mod areas in the customizer. Another user has brought this to my attention in this forum topic here: https://wordpress.org/support/topic/sidebar-color-changes-are-not-saved?replies=4
For now I would suggest you do the following. Open up your style sheet and add the following. For text:
#secondary { color: your color!important; }for links:
#secondary a { color:your color!important; }and for hover:
#secondary a:hover { color:your color!important; }Add these somewhere you can easily find them and remove them. I am working on an update to correct the issue and hope to have that released shortly.
Again hope this helps. Enjoy!
I found the CSS property in the file located in wp-forge/css/customizer.css
but this file is not in the Site Folder and also if i upload it nothing happen, do you know where can i find this style?
In the code is located in “wpforge-customizer-css” but i can’t do it work, any additional help?
Also i would like to put some words in spanish like “comment, Search, Continue Reading” i tried to install the es_ES.mo/.po but that’s not working
Thanks in advance tsquez!Hey there,
if you have customizer.css then this means you have v5.5.1.7 of WP-Forge and have not updated to v5.5.1.8 – customizer.css is not in the latest version and it was also not used in 5.5.1.7. – I was planning on using it for something but it didn’t work out and was left there by accident.
So you need to add what I mentioned above to the main style.css file, either of WP-Forge itself, or to the child theme.
In regards to the translation, the .po file is the language folder. If i am not mistaken this is to help anyone who wants to translate the theme into their own language. I have never had to do this so I am really unfamiliar with it.
I believe you may also need create your own spanish file. Look here WordPress in Your Language – This should help you
Please let me know how it goes.
Thanks TSQUEZ!!
One more question how can i remove the, the margin bottom in this style:”header-image” and the padding here: “site-header medium-12 large-12 columns” and here: “header_wrap row”.
I want a background image for header without margin or paddings, is it possible?Thanks again!
You are very welcome.
What you want to do is remove the padding and margin from columns and rows. This is the power behind Foundation. Don’t worry, we aren’t going to blow anything up…lol
#header .row, #header .columns { padding:0!important; } img.header-image { margin: 0!important; }This isn’t tested as I do not have time to fire up the testing environment. Hope this helps. As always, enjoy!
You’re incredible Tsquez!
Thanks!Why thank you, I appreciate that.
The topic ‘Remove Home button from Nav Bar’ is closed to new replies.
