Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Home Page Icon Disappears from the menu when home page set as static page


  #1  
Old Mar 12, 2015, 07:36 PM
beerboy
 
6 posts · Mar 2015
Firstly great theme.

Whenever I make my home page a static page the icon in the menu disappears.

No set static pages or posts everything works fine

Tried another theme and it stays where it should. I am sure I am missing something simple
  #2  
Old Mar 13, 2015, 04:05 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
It works that way by design. You have multiple ways to get back to the front page (1) click the Site namein the header (2) click the 'home' icon in the bar just below the header (3) use the back arrows on your browser.

However, if you feel you need it in the menu you have two options:
1) use a custom menu (dashboard->appearances->menus - build a menu and select Theme locations 'Menu 1'
2) edit the code
edit montezuma/includes/menu.php and change lines 38-41 from
HTML Code:
	// If the front page is a page, add it to the exclude list
	if( get_option( 'show_on_front' ) == 'page' ) {
		$args['exclude'] = get_option( 'page_on_front' );
	}
to
HTML Code:
	// If the front page is a page, add it to the exclude list
//	if( get_option( 'show_on_front' ) == 'page' ) {
//		$args['exclude'] = get_option( 'page_on_front' );
//	}
if you choose to edit the code remember you will need to do it each time there is an upgrade.

If you can come up with a reallly good argument that is should be in the menu, I'll pass it on to Flynn and see what his take is and maybe it will be changed.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 13, 2015, 03:46 PM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
Strange, I don't observe the same behavior on my test site when i switch to a static home page, but maybe I've made so many changes to my test site that something isn't apparent. So the menu icons disappear when a static page is selected as the home page? Beerboy, can you post a link to your site?
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!
  #4  
Old Mar 13, 2015, 04:02 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
@CB: lets say you have Page 1, Page 2 and Sample page. In the MENU you will see
Page 1 Page 2 Sample Page
if you set page 2 as the front page displays, the menu will show
Page 1 Sample Page
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Mar 13, 2015, 04:22 PM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
Ah, OK, now I understand. I thought Beerboy was referring to just the star icons and not the entire menu item. Thanks for the clarification.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!
  #6  
Old Mar 15, 2015, 09:31 PM
beerboy
 
6 posts · Mar 2015
Quote:
Originally Posted by juggledad
@CB: lets say you have Page 1, Page 2 and Sample page. In the MENU you will see
Page 1 Page 2 Sample Page
if you set page 2 as the front page displays, the menu will show
Page 1 Sample Page
Many thanks for the clarity. It just seams a bit illogical to me that once you set the page as a static it no longer shows as a menu item. I like the fact that all pages created are on the menu. maybe its just me. thanks again
  #7  
Old Mar 15, 2015, 09:39 PM
beerboy
 
6 posts · Mar 2015
Quote:
Originally Posted by juggledad
It works that way by design. You have multiple ways to get back to the front page (1) click the Site namein the header (2) click the 'home' icon in the bar just below the header (3) use the back arrows on your browser.

However, if you feel you need it in the menu you have two options:
1) use a custom menu (dashboard->appearances->menus - build a menu and select Theme locations 'Menu 1'
2) edit the code
edit montezuma/includes/menu.php and change lines 38-41 from
HTML Code:
	// If the front page is a page, add it to the exclude list
	if( get_option( 'show_on_front' ) == 'page' ) {
		$args['exclude'] = get_option( 'page_on_front' );
	}
to
HTML Code:
	// If the front page is a page, add it to the exclude list
//	if( get_option( 'show_on_front' ) == 'page' ) {
//		$args['exclude'] = get_option( 'page_on_front' );
//	}
if you choose to edit the code remember you will need to do it each time there is an upgrade.

If you can come up with a reallly good argument that is should be in the menu, I'll pass it on to Flynn and see what his take is and maybe it will be changed.
Great thanks for the clear explaination and that's worked perfectly.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Static Page Appears twice in menu bar if selected as home page dorich Page & Category Menu Bars 10 Sep 24, 2010 07:06 AM
[SOLVED] Remove Page Menu from Home (static page)... calculator Header configuration & styling 2 Jul 6, 2010 05:30 PM
[SOLVED] category menu bar shows up on static home page, although I'd deleted it. mathmojo Page & Category Menu Bars 1 Jun 27, 2010 06:28 PM
Right hand sidebar disappears in ie on home page sceneabout Atahualpa 3 Wordpress theme 7 Mar 12, 2010 03:14 PM
including page menu bar in static home page Lee Mandell Page & Category Menu Bars 1 Jun 4, 2009 07:35 AM


All times are GMT -6. The time now is 10:09 PM.


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