Jump to content

Recommended Posts

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! 

header.php
 

To inspect the site yourself you can see blueribbonchocolate.net

 

footer.php

front-page.php

index.php

style.css

Link to comment
https://forums.phpfreaks.com/topic/277867-php-wordpress-problems/
Share on other sites

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
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.