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)
-   -   [SOLVED] Problem with Header.php (http://forum.bytesforall.com/showthread.php?t=20963)

Kaori29 Sep 28, 2013 12:12 PM

[SOLVED] Problem with Header.php
 
Hello,

i have a problem with this Theme.
In my Dashboard is shown:

http://img542.imageshack.us/img542/2996/5wog.png

How can i fix it?

I found the header sub template... but where to put it in?

Please help me :(

juggledad Sep 28, 2013 01:34 PM

What did you do before this showed up?

Kaori29 Sep 28, 2013 01:57 PM

It shows up after i edited the header subtemplate.

This is my header subtemplate:

Code:

<div id="banner-bg" class="cf">
        <div id="banner" class="row">
       
                <div id="sidetitle" class="col7">
                        <<?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 id="logo" class="col5">
                  <a href="<?php echo home_url(); ?>">
              <img src="http:///www.lovelystamps.de/wp-content/uploads/2013/03/logoblack-e1362827389929.jpg">
          </a>
  </div>
          </div>
<p> </p>
   
 <div class="cf">
        <div id="menu" class="row">
      <?php wp_nav_menu( array(
                        'container' => 'nav',
                        'container_class' => 'menu-wrapper col12',
                        'container_id' => 'menu1-wrapper',
                        'menu_id' => 'menu1',
                        'menu_class' => 'cf menu',
                        'theme_location' => 'menu1',
                        'fallback_cb' => 'bfa_page_menu'
                ) ); ?>
        </div>
</div>

<a href="<?php bloginfo( 'rss2_url' ); ?>" class="rsslink" title="<?php _e( 'Subscribe to RSS Feed', 'montezuma' ); ?>"></a>
               
<div id="breadcrumbs1-bg">
        <nav id="breadcrumbs1" class="breadcrumbs lw">
                <?php bfa_breadcrumbs( 'breadcrumbs1' ); ?>
        </nav>
</div>

And this is my header.php:

Code:

<?php
       
global $montezuma;

echo bfa_parse_php( $montezuma['subtemplate-header'] );

But where did i have to put the "<?php wp_head(); ?>" so the message disapper?

Info: i'm still using Version 1.1.3 from Montezuma, because i'm afraid that my personal changes like fonts, colors etc will disapear :(

CrouchingBruin Sep 28, 2013 11:35 PM

You have an unclosed DIV in your header.php subtemplate. You added an opening DIV tag with a class of cf, but that DIV takes the closing DIV that belonged to the opening banner-bg DIV. Was there a reason why you added that opening cf DIV in there? Try taking it out and see if you still have the error. Or else add a closing DIV for banner-bg.

CrouchingBruin Sep 29, 2013 12:17 AM

Never mind, that doesn't seem to be the problem. When do you see the warning message, when you try to install a particular plugin? Or on the Dashboard main page? I took a look at your site and it seems to be working properly.

Kaori29 Sep 30, 2013 06:58 AM

It is shown on the dashboard mainpage... all the time...

Edit: i add a closing DIV for banner-bg

But it just changed the color of the "DIV" in the editor from red to green.

But the message is still shown on the dashboard

juggledad Sep 30, 2013 08:23 AM

I would do an export then reset all the settings to see if it goes away. If it does, then it is something you did. You could then import the export and reset each theme page one at a time till you find the cause and fix it.

CrouchingBruin Sep 30, 2013 03:59 PM

You can also try deactivating all of your plugins to see if that clears the warning message. Perhaps one of your plugins is trying to scan your header.php file for the presence of the wp_head function? I don't know if that's even possible, but it shouldn't take that long to test.

juggledad Sep 30, 2013 04:50 PM

FYI: wp_head() is in the physical file head.php

jerryc Sep 30, 2013 09:29 PM

Users not realizing that MZ has both head.php and header.php is something we've seen periodically on this forum.

Other terminology issues have shown up periodically. For example, as Juggledad has noted, the term "sidebar" is sometimes confusing to new users, because they can go anywhere in a template, not just on the sides, and thinking of them as "widget areas" is more in alignment with how they can be used.

So, do we need a sticky for these and maybe some other terminology issues?

Kaori29 Oct 1, 2013 07:01 AM

i deaktivated all my plugins and this message is cause by Acurax social media widget :(

so i have to search a new plugin for social media

Thanks for the help.

I have a few other questions, but i start new threads for them.


All times are GMT -6. The time now is 06:48 AM.

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