Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

Menu messing up


  #1  
Old Apr 9, 2014, 02:37 PM
YJR
 
3 posts · Apr 2014
Hi all, I run into a problem with the main menu of montezuma. At a certain page width menu switch to a two row rendering which is fine. But it doesn't seem to adapt it s box resulting in the menu going into the next element as shown in the attachement.

header php for reference:

<div id="banner-bg" class="cf">
<div id="banner" class="row">
<?php wp_nav_menu( array(
'container' => 'nav',
'container_class' => 'menu-wrapper col7',
'container_id' => 'menu1-wrapper',
'menu_id' => 'menu1',
'menu_class' => 'cf menu',
'theme_location' => 'menu1',
'fallback_cb' => 'bfa_page_menu'
) ); ?>

<div id="logo-area" class="col5">
<<?php bfa_if_front_else( 'h1', 'h3' ); ?> id="sitetitle">
<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
</<?php bfa_if_front_else( 'h1', 'h3' ); ?>>
<p id="tagline"><?php bloginfo( 'description' ); ?></p>
</div>


</div>
</div>


<?php
$curdir=getcwd(); chdir(get_template_directory() . "/images/header");
$files=glob("*.{gif,png,jpg,gif}", GLOB_BRACE);
chdir($curdir);
$file=$files[array_rand($files)];
?>

<div id="image" style="width:100%;float:center;" class="row">
<img src="<?php echo "//blabla/wp-content/themes/montezuma/images/header/$file"; ?>"
alt="Logo_SelvaViva_standard"/>

</div>
Attached Thumbnails
Click image for larger version

Name:	Capture du 2014-04-09 22:01:31.png
Views:	372
Size:	87.5 KB
ID:	2540  
  #2  
Old Apr 9, 2014, 02:49 PM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
1) what is the url?
2) is the code from the virtual header.php template?
3) if so some of that code will not work like getcwd() or chdir() since they are not part of the 'Limited PHP Code'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Apr 11, 2014, 08:54 AM
YJR
 
3 posts · Apr 2014
HI,
No it's not a virtual header template I created a child template, but the issue is not related it was already happening with a virtual template without the non permitted code.
The site is not yet online, so I'can't get you a public url !
Hope you can still help me !
  #4  
Old Apr 12, 2014, 04:40 AM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what do you mean you created a child template? did you create a child theme and put the header.php there or did you code a new header.php and remove the exiisting header.php file from the theme folder?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Apr 12, 2014, 10:05 AM
YJR
 
3 posts · Apr 2014
Hi I just create a child directory and add a simple style.css as described in wp user man pages, which basically loads the original style.css. Then I add the modified header.php file there with the code in the first post.
Thanks for tracking my issue !
  #6  
Old Apr 13, 2014, 09:52 AM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Termonology is important - you created a child theme.
go to MTO->Export/Import and save your exort to a text file ands attach it to a reply.

your child CSS.style file should look like thous
HTML Code:
/*
Theme Name: Montezuma Child
Theme URI: http://wordpress.bytesforall.com/wordpress-themes/montezuma/
Description: Child Theme for Montezuma
Author: BytesForAll
Author URI: http://wordpress.bytesforall.com/
Template: montezuma
Version: 1.2.2
*/
@import url("../montezuma/style.css");
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
menu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] messing with the database/pages raddy59 Installing & running WordPress 0 Jan 24, 2012 06:51 AM
permalink settings messing up logo area on page w/ parent page jewellce Atahualpa 3 Wordpress theme 2 Sep 24, 2011 12:54 PM
Odd lingo on top is messing up site scarlett827 Atahualpa 3 Wordpress theme 5 Jan 31, 2009 08:01 AM


All times are GMT -6. The time now is 02:54 PM.


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