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] Header Problems (http://forum.bytesforall.com/showthread.php?t=19855)

Kaori29 Mar 9, 2013 05:13 AM

[SOLVED] Header Problems
 
Hello,

this is the code of my header:

Code:

<div id="banner-bg" class="cf">
        <div id="banner" class="row">
                <div id="logo-img" class="col3">
                  <a href="<?php echo home_url(); ?>">
              <img src="http:///www.lovelystamps.de/wp-content/uploads/2013/03/logoblack-e1362827389929.jpg">
          </a>
                </div>
                <div id="logo-area" class="col4">
                        <<?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>
             
           
                <?php wp_nav_menu( array(
                        'container' => 'nav',
                        'container_class' => 'menu-wrapper col5',
                        '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 it looks so:

http://imageshack.us/photo/my-images...aderbefore.jpg


Is it posibble to set the menu unter the image, sidetitle and discription?

Please help me to modify the code.

I know that every class has to be "12"

so i think the menu should look so:

Code:

<?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'
                ) ); ?>

But how to add the rows?

Kaori29 Mar 9, 2013 06:08 AM

:) I got it with the rows

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 id="menu" class="cf">
        <div id="menu" class="row">
                <div id="menu" class="col12">   
     
                <?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>
</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>

But now the "description" is not shown :confused:

How can i display it?

juggledad Mar 9, 2013 07:19 AM

every ROW has to have 12 columns

by description do you mean the blog's TAG line?
Also ID's must be unique on a page, you have ID="menu" in three places

Kaori29 Mar 9, 2013 07:25 AM

Yes i mean the Tagline. Sorry for the wrong word.

i tried some things and i saw that the tagline is hidden under the menu.

Maybe i have to create another row only for the tagline?

juggledad Mar 9, 2013 08:21 AM

TRY THIS
HTML 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>


Kaori29 Mar 9, 2013 08:40 AM

Nearly...

Now the Menu is no longer in the header :(

http://img577.imageshack.us/img577/820/headertestq.png

juggledad Mar 9, 2013 11:08 AM

edit the css and remove the 'position: absolute' from the '#menu1-wrapper' - I'll let you figure out which css file it is in.

Kaori29 Mar 10, 2013 01:02 AM

I found it in the menus_menu1.css :)

I first looked at the menus.css

Thanks for your help.


All times are GMT -6. The time now is 03:27 PM.

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