WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Drop Down Menu Help (1 post)

  1. tinatinatina.ts
    Member
    Posted 1 year ago #

    Hi!

    I'm having so much trouble with my drop down menu I have tried changing the code in my header.php to fix it but I don't know how...I need to change the top order of my menu...and also each "sub-menu" or child in the 5 top headings "Company Profile" "Residential" "Pursol Advantage" "Account Login" and "Commercial"....the backend of my wordpress options in the menus area is not working either i don't know what's wrong and what each .php call means please help...here's is my current header.php file let me know if I need to post other .php files to see what's wrong?

    here is the site link

    http://www.gosolarsandiego.com/wordpress

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title><?php
    	global $page, $paged;
    	wp_title( '|', true, 'right' );
    	bloginfo( 'name' );
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " | $site_description";
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'pursol' ), max( $paged, $page ) );
    	?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link href="<?php bloginfo( 'stylesheet_url' ); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php bloginfo('stylesheet_directory'); ?>/drop_menu.css" rel="stylesheet" type="text/css" />
    <script src="<?php bloginfo('stylesheet_directory'); ?>/js/stuHover.js" type="text/javascript"></script>
    <script src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="<?php bloginfo('stylesheet_directory'); ?>/js/cufon-yui.js" type="text/javascript"></script>
    <script src="<?php bloginfo('stylesheet_directory'); ?>/js/Century_Gothic_700.font.js" type="text/javascript"></script>
    
    <script type="text/javascript">
    Cufon.replace(['#service ul li h3', '#about_we ul li h3 span', '#about_we ul li h3 small'], {fontFamily: 'Century Gothic', hover: true})
    </script>
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    	if ( is_singular() && get_option( 'thread_comments' ) )
    		wp_enqueue_script( 'comment-reply' );
    	wp_head();
    ?>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    
    <script type="text/javascript" src="scripts/fadeslideshow.js">
    </script>
    </head>
    
    <body>
    <!--Layout Start-->
    <div id="layout">
      <!--header Start-->
      <div id="header">
        <h1>Pursol Solar System</h1>
        <div class="logo"><a>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.jpg" alt="Pursol Solar Systems Inc." /></a></div>
        <div class="top_links">
    		<img src="http://gosolarsandiego.com/wordpress/wp-content/uploads/2012/08/phone26.jpg"></div>
    </div>
      <!--header End-->
      <!--Menu Start-->
      <div id="menu">
      <?php //wp_nav_menu( array('container_class' => 'menu-header', 'theme_location' => 'Top menu', 'menu', => 'Top Menu' ) ); ?>
      <?php if($post->post_parent !=0)
    		  {
    		  	$varActiveHedaer = $post->post_parent;
    		  }
    		  else
    		  {
    		  	$varActiveHedaer = $post->ID;
    		  }
    		   ?>
        <ul id="menu-top-menu">
           <?php  $pages = get_pages('sort_column=menu_order&parent=0');
    	foreach($pages as $varPage)
    	{ ?>
    
    <li><a>ID) ?>"><?php echo $varPage->post_title; ?></a>
          <?php $second = get_pages('sort_orderby=>83,85,125,95,258,child_of='.$varPage->ID); ?>
          <?php if($second != array()){  ?>
    
            <ul class="sub-menu png">
             <?php foreach($second  as $varSecond){?>
                    </li>
    <li><?php echo $varSecond->post_title; ?>
             <?php $third = get_pages('sort_orderby=>83,85,125,95,258,child_of='.$varSecond->ID); ?>
          <?php if($third != array()){  ?>
    
    <ul>
               <?php foreach($third  as $varThird){?>
    
    <li><a>ID); ?>"><?php echo $varThird->post_title; ?></a></li>
                 <?php }?>
              </ul>
              <?php }?>
              </li>
              <?php }?>
    
            <?php }?>
    
          <?php }?>
    
      </div>
      <!--Menu End-->

    Thanks!

    Christina

Topic Closed

This topic has been closed to new replies.

About this Topic