Welcome!

And don't forget to edit your signature & profile.

 

Icon

Statistics

  • Total posts 26844
  • Total topics 4877
  • Total members 6616
  • Our newest member
    Kamila

TOP POSTERS

wordpress navigation question

Discussions that cover weblog-engines and CMS. Themes, plugins and articles are suggested and discussed here.
   

wordpress navigation question

Postby stephenjames716 » Mon Feb 09, 2009 1:23 pm

hello,

thanks for taking a look at my post. for some reason my "home" icon in my navigation header link section is not linking back to the "home" page of my site. here is the navigation.php code that I'm working with:

Code: Select all
<div id="branding">

      <?php include ('searchform.php'); ?>

       <div id="image">

      </div><!-- end imagelogo -->

   </div><!-- end branding -->

   <div id="page-navigation" class="clearfix">

      <a href="<?php bloginfo('daily_picks'); ?>" class="rss" title="daily picks">daily picks</a>

      <ul id="nav">

         <li<? echo (is_home())? ' class="current_page_item"' : ''; ?>><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></li>

         <?php wp_list_pages('title_li=&depth=1'); ?>

      </ul>

   </div><!-- end page-navigation -->


For example, when going to the "about" page on my site and then try to the home page, the hyperlink shows up as the following...

www.testsite.staging.com/about/block_club

...instead of just www.testsite.staging.com

Any help would be appreciated.
Thanks,
Steve
stephenjames716
 
Posts: 5
Joined: Mon Feb 09, 2009 1:05 pm
   

   

Re: wordpress navigation question

Postby Designography » Mon Feb 09, 2009 3:44 pm

In your wordpress settings (General), what have you set for your blogs home page? It should be set to the directory you installed Wordpress too e.g http://www.yoursite.com/blog and not http://www.yoursite.com.

If you want your blog to go back to the main page of your site and not the blog you'll need to manually add the URL.

Code: Select all
<a href="http://www.yoursite.com" class="current_page_item" title="Home">Home</a>
Michael
User avatar
Designography
Smashing <table>
 
Posts: 20
Joined: Mon Feb 09, 2009 2:49 pm
Location: UK
   

   

Re: wordpress navigation question

Postby stephenjames716 » Mon Feb 09, 2009 6:38 pm

hi, thanks for your reply.

under wordpress url I have: http://testsite.staging.cnpstudio.com

under blog address url I have: http://testsite.staging.cnpstudio.com/blog

I have different sections on my site, about, design, etc. when I'm on one of those sub-pages and want to click on the image in my nav bar to go back to the main page it always brings me to a 404 error page. for some reason wp is adding in the name of the page I'm on currently to the link, thus bringing me to a page that doesn't exist.

any more suggestions would be appreciated.

thanks,
steve
stephenjames716
 
Posts: 5
Joined: Mon Feb 09, 2009 1:05 pm
   

   

Re: wordpress navigation question

Postby stephenjames716 » Mon Feb 09, 2009 7:31 pm

ok, I think I have figured out my problem, but it brings up another question. I went into permalinks, which I had set to custom (/%year%/%monthnum%/%postname%/). after changing it from custom to default the navigation image now works, and brings me back to the main page no matter what sub-page that I'm on.

the issue now is that I don't have tidy little permalinks when on sub-pages, but rather ?page_id=11, ?page_id=9, etc.

is there a way to have the header nav image and custom permalinks working correctly?

thank you,
steve
stephenjames716
 
Posts: 5
Joined: Mon Feb 09, 2009 1:05 pm
   

   

Re: wordpress navigation question

Postby crome » Tue Feb 10, 2009 10:59 am

When you'd changed your permalink structure was there a message at the bottom of the page about manually updating your htaccess file? Sounds like it possible can't write the rewrite rules to the file. I've also had problems with permalinks on IIS.
crome
Smashing <div>
 
Posts: 104
Joined: Tue Feb 10, 2009 10:43 am
Location: UK
   

   

Re: wordpress navigation question

Postby stephenjames716 » Tue Feb 10, 2009 11:56 am

hello,

thanks for your reply. when changing my permalink structure I didn't get an error message, it said that the change was updated with no problem.
stephenjames716
 
Posts: 5
Joined: Mon Feb 09, 2009 1:05 pm
   

   

Re: wordpress navigation question

Postby Craig Tuller » Tue Feb 10, 2009 12:49 pm

Stephen,

Where do you have WordPress installed ... in the root directory or a /blog directory?

Also, if you already have content (pages & posts) you will need to get a permalink migration plugin in order to make the change at this point.

I have used this one in the past:
http://www.deanlee.cn/wordpress/permali ... on-plugin/
www.StudioPress.com | Online Business Solutions Using WordPress
User avatar
Craig Tuller
 
Posts: 5
Joined: Tue Feb 10, 2009 12:46 pm
   


Return to CMS & Blog Software



Who is online

Users browsing this forum: No registered users and 2 guests