Jump to content

PHP Wordpress Problems


fuzzles128

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>
 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.