Jump to content


Photo

PHP Wordpress Problems

php wordpress navigation

  • Please log in to reply
3 replies to this topic

#1 fuzzles128

fuzzles128

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 10 May 2013 - 01:05 AM

Hi, I'm having troubles with my PHP Navigation for a website that I'm creating using a WP CMS. The PHP Navigation Code is Generating the Pages that I haven't added to my Website yet. Even though these pages did originally exist in my HTML. Any help would be greatly appreciated. The Navigation is also linking to a page known as /history1  on my website which doesn't exist within my CMS either.

Any Help is greatly appreciated.

Thanks! 

Attached File  header.php   3.55KB   2 downloads
 

To inspect the site yourself you can see blueribbonchocolate.net

 

Attached Files



#2 managerstats

managerstats

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 10 May 2013 - 07:21 AM

When you are logged into your site, look under Appearance > Menus.

 

You may be fetching the Nav from there. Which is essentially the best place to control your sites navigation as opposed to your header.php file



#3 fuzzles128

fuzzles128

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 15 May 2013 - 10:38 PM

Hi, There is isn't a menu option in WordPress under Appearance. Any other suggestions? Thanks. 



#4 QuickOldCar

QuickOldCar

    Advanced Member

  • Members
  • PipPipPip
  • 1,617 posts
  • LocationNorthEast Pennsylvania

Posted 16 May 2013 - 03:37 AM

in your footer.php file

 

change the href links to go to your same urls as your top navigation does, I'll include your home_url() to make sure it will always go there

 

 

<a href="<?php echo home_url(); ?>"><img src="<?php bloginfo( 'template_directory' ); ?>/_/img/menu_home.png"/></a>
            
<a href="<?php echo home_url(); ?>/history"><img src="<?php bloginfo( 'template_directory' ); ?>/_/img/menu_history.png"/></a>
            
<a href="<?php echo home_url(); ?>/benefits"><img src="<?php bloginfo( 'template_directory' ); ?>/_/img/menu_benefits.png"/></a>
            
<a href="<?php echo home_url(); ?>/products"><img src="<?php bloginfo( 'template_directory' ); ?>/_/img/menu_products.png"/></a>
            
<a href="<?php echo home_url(); ?>/contact"><img src="<?php bloginfo( 'template_directory' ); ?>/_/img/menu_contact.png"/></a>
 

 

 


Edited by QuickOldCar, 16 May 2013 - 03:48 AM.

DynaIndex.com
Dynamic search index of websites, links, feeds, title, description, keywords and thumbnail snapshot.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com