Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   How to change "Blog" text from homepage on header nav? (http://forum.bytesforall.com/showthread.php?t=19696)

corneliusw Feb 21, 2013 04:35 PM

How to change "Blog" text from homepage on header nav?
I have search around and can not find the code to edit for this. On the header nav bar where it has the house icon, next to it reads "Blog". How do I change that text? Take a look at my website ps4on.com to see what I am talking about.

That part is fine for the rest of the sections on the website, I just want to change it for the homepage only.

jerryc Feb 21, 2013 08:00 PM

Did you try appearance > menus? I don't use the nav menus, but that's where I'd look. If that doesn't work, at least you'll know one thing that doesn't fix your problem.

juggledad Feb 21, 2013 08:57 PM

With a little knowledge and a quick test, here is how you can fix this.

go to mto->CSS Files->bbreadcrumbs.css and add the following to the bottom
HTML Code:

body.home nav#breadcrumbs1 li {display:none;}
body.home nav#breadcrumbs1 li.bc-home {display:block;}

with this you will still have the bar containing the breadcrumbs and the home icon but the word 'blog' will not be displayed.

corneliusw Feb 21, 2013 11:51 PM


Thanks as that did hide the "Blog" text. However I was looking to change it from "Blog" to something else, as oppose to hiding it completely. Somewhere it's telling it to output "Blog" for text, and I'm trying to find out where so I can change the text to something else that I want.

juggledad Feb 22, 2013 04:11 AM

Ahh, that is different that what you state in the title.

To change the word 'Blog' to something else you have several choices
1) make the landing page a 'page' page (dashboard->settings->reading) and create a page with any name you like as the blog page
2) use a .po file to translate the word to something else
3) edit the template code - montezuma/includes/breadcrumbs.php - line 95

remember if you pick (3) you will have to re-do it every time the theme is updated.

corneliusw Feb 22, 2013 06:56 AM

Thanks your a big help!

Jon Mar 27, 2013 02:58 PM

Not sure if this is a better/easier solution, but here goes:

Appearance-->Editor (it appears underneath the Montezuma Options menu)

This will bring up an option to edit codes for pages and php. On the right-hand side click on "breadcrumbs.php"

You will find these lines near the bottom:


} else {
echo '<li>' . $before . 'Blog' . $after . '</li>';
} elseif ( is_home() ) {
echo '<li>' . $before . __( 'Blog', 'montezuma' ) . $after . '</li>';
Change "Blog" to whatever you would like instead.


lmilesw Mar 27, 2013 03:26 PM


This solution was mentioned in Juggledad's last post as the third option but as noted this will have to be redone if you ever upgrade the theme.

Jon Mar 27, 2013 04:36 PM

Thanks for pointing that out ... I didn't read carefully enough and thought 1-3 were steps, not options!

All times are GMT -6. The time now is 12:07 PM.

Powered by vBulletin® Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.