![]() | | ||||||||
| | #1 |
| Imagination Warrior Join Date: Dec 2008 Location: Montreal
Posts: 66
Blog Entries: 1 Thanks: 6
Thanked 2 Times in 2 Posts
|
Hey guys, Take a look at this site: Madden Tips - Strategies, tips, hints and cheats for Madden 10 I'm using the navigation bar just below the header as a model for my site, but I can't understand what's going on. Here's a video of my problem.. it's much easier to understand watching this video: Thank you for your time, Daniel |
| | |
| | #2 | |
| Warrior Member Join Date: Sep 2009
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
|
Hey Daniel! Okay, I'm taking a blind guess here, not a lot of WP themes have this. But in your theme directory (wp-content/theme/themename/) do you see a home.php? If so edit it and remove <?php get_sidebar(); ?> or any variant of it. If you do not have home.php, then you could duplicate page.php and rename it as static.php, then remove <?php get_sidebar(); ?> And include this at the top of your static.php page: Quote:
Now make sure your settings has Static front page pointing to "Home". Basically your static.php file is now your new static front page. You will have to edit it and change the html / php codes to display what you want on the front page. If you do need any help, wordpress has a good support forum and codex (wiki site). Good luck! | |
| NeutroHost || Carbon-Neutral Web Hosting as low as $1.95/month EXCLUSIVE 30% OFF all semi-annual and annual plans (Promotional Code: WARRIORFORUM). | ||
| | |
| | #3 |
| Imagination Warrior Join Date: Dec 2008 Location: Montreal
Posts: 66
Blog Entries: 1 Thanks: 6
Thanked 2 Times in 2 Posts
|
Thanks for the guess. That actually did it.. somewhat. I guess now I know how to use templates within Wordpress to give certain pages certain features and others different ones. Now I just need to figure out how to get the sidebar here: Blog @ The Travian Blog back up at the top of the page. I'm thinking it has something to do with the limits defined in my "the loop", but I'm stilling trial and error'ing my way to the solution. |
| | |
| | #4 |
| Warrior Member Join Date: Sep 2009
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
|
Glad that worked! I haven't looked into your codes in detail so I won't actually know what the problem is, but from what it looks like, it's a styling (.css) problem Basically, the area where your posts are showing is wider than it's supposed to be, pushing the sidebar all the way down. It's hard to say which exact <div> is causing this, but you can play around and reduce the size of each of the divs below and see what works: Code:
<div id="wrap">
<div id="container">
<div class="pagewrap">
<div class="mainwrap">
<div class="content">
<div class="post" id="post-601">
<h2 class="posttitle">
<div class="entry"> |
| NeutroHost || Carbon-Neutral Web Hosting as low as $1.95/month EXCLUSIVE 30% OFF all semi-annual and annual plans (Promotional Code: WARRIORFORUM). | |
| | |
| | #5 |
| Imagination Warrior Join Date: Dec 2008 Location: Montreal
Posts: 66
Blog Entries: 1 Thanks: 6
Thanked 2 Times in 2 Posts
|
Hmm, not seeing it. From what I can see, taking one of the two </div> tags at the end of my code and inserting it in different places in the body of the code doesn't change anything but push the sidebar text a little to the right. It might be easier if you see the code, which is why I have it here... but I'm aiming to actually understand what's going on. PHP Code: |
| | |
| | #6 |
| Imagination Warrior Join Date: Dec 2008 Location: Montreal
Posts: 66
Blog Entries: 1 Thanks: 6
Thanked 2 Times in 2 Posts
|
Just fixed it. Turns out the <div class="content"> tag needed to be replaced with <div id="content">. Of course I had to throw a </div> tag somewhere in there too. I have a bit of customizing left to go and I'm done. :-) Btw, how do you "thank" someone? I can never find the button. |
| | |
| | #7 |
| HyperActive Warrior War Room Member Join Date: Sep 2009
Posts: 105
Thanks: 4
Thanked 13 Times in 12 Posts
|
Just use the Thanks button in black on the bottom right of the 'helpful' post. |
| | |
![]() |
|
| Tags |
| cms, navigation, replicate, understand, wordpress |
| Thread Tools | |
| |
![]() |