Wordpress problem:

  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post July 17th, 2009, 2:18 pm

So my dads blog is my first ever experience with wordpress. Not sure why, but if you click on the comment link, or go to a different page other than the homepage the navigation disappears. Anyone know why?

The only changes I made were to the css of the default theme. In the default theme, if you go to a specific article, there is no sidebar. I know I should start with that; but I'm not sure how to fix it.
Use your words like arrows to shoot toward your goal.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 17th, 2009, 2:18 pm

  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Joined: May 29, 2005
  • Posts: 1417
  • Loc: 55° N, 3° W
  • Status: Offline

Post July 17th, 2009, 3:33 pm

I had a vanishing sidebar issue once. The only way I could figure it out was by starting from scratch with the default theme all over again.

The default style sheet is quite messy and confusing I felt - so it is very easy to create a rule that conflicts with another and messes everything up. All too easy since many page elements are referenced several times at different places within the style sheet.

The sidebar itself appears to be very susceptible to markup errors and miscalculations of width, borders and paddings.
  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post July 17th, 2009, 3:37 pm

That's actually what I did, started with the wordpress default and adjusted the css. I went through and removed all the recurrences of css selectors - combining their properties into one. The layout has no problems, it the sidebar.php file not being included in the article pages. It's only included in the homepage. Unfortunately, I don't know how or where to add the php include so that the sidebar.php is in all pages.
Use your words like arrows to shoot toward your goal.
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Joined: May 29, 2005
  • Posts: 1417
  • Loc: 55° N, 3° W
  • Status: Offline

Post July 17th, 2009, 3:44 pm

Be aware that I'm no wordpress expert and so I can't debug your issue with much skill...

The bottom of my index.php file in wp-content/themes/default/ looks like this:

Code: [ Select ]
<?php endif; ?>
</div>
 
<?php get_sidebar(); ?>
 
<?php get_footer(); ?>
  1. <?php endif; ?>
  2. </div>
  3.  
  4. <?php get_sidebar(); ?>
  5.  
  6. <?php get_footer(); ?>


Edit: the get_sidebar function should obviously be in the other important files too, like "page.php", "single.php", "archives.php" and so on.
  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post July 17th, 2009, 4:06 pm

Code: [ Select ]
<?php get_sidebar(); ?>


This looks what I need. Now I need where to put it. It is in the index file, which is why it's showing up on the homepage I would imagine. Anyone know which php file generates the pages for the individual articles?
Use your words like arrows to shoot toward your goal.
  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post July 17th, 2009, 4:08 pm

perhaps a visual representation of my problem.
rantingbill.com

That's the homepage. It has the navigation at the top. If you click on "July 17th" it will open up the article's page. In this page the navigation bar is not included.
Use your words like arrows to shoot toward your goal.
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Joined: May 29, 2005
  • Posts: 1417
  • Loc: 55° N, 3° W
  • Status: Offline

Post July 17th, 2009, 4:14 pm

The article page is created from "single.php"
  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post July 17th, 2009, 4:18 pm

that did it zwirko, you're my new fav when it comes to wordpress - even if you don't want the title; hehe.
Use your words like arrows to shoot toward your goal.

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 163 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.