Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 09-26-2009, 11:11 AM   #1
Imagination Warrior
 
Dantplayer's Avatar
 
Join Date: Dec 2008
Location: Montreal
Posts: 66
Blog Entries: 1
Thanks: 6
Thanked 2 Times in 2 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Dantplayer
Arrow Trying to understand this... :S

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
Dantplayer is offline   Reply With Quote
Old 09-27-2009, 12:56 PM   #2
Warrior Member
 
NeutroHost [Jon]'s Avatar
 
Join Date: Sep 2009
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Trying to understand this... :S

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:
<?php
/*
Template Name: Static Home Page
*/
?>
Head over to "Pages", edit "Home" and on the right sidebar (attributes tab), look out for "Template". Select "Static Home Page" from the dropdown menu and Save.

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).
NeutroHost [Jon] is offline   Reply With Quote
Old 09-27-2009, 06:16 PM   #3
Imagination Warrior
 
Dantplayer's Avatar
 
Join Date: Dec 2008
Location: Montreal
Posts: 66
Blog Entries: 1
Thanks: 6
Thanked 2 Times in 2 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Dantplayer
Default Re: Trying to understand this... :S

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.
Dantplayer is offline   Reply With Quote
Old 09-28-2009, 01:39 AM   #4
Warrior Member
 
NeutroHost [Jon]'s Avatar
 
Join Date: Sep 2009
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Trying to understand this... :S

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">
Hope that helps!

NeutroHost || Carbon-Neutral Web Hosting as low as $1.95/month
EXCLUSIVE 30% OFF all semi-annual and annual plans (Promotional Code: WARRIORFORUM).
NeutroHost [Jon] is offline   Reply With Quote
Old 09-28-2009, 02:54 PM   #5
Imagination Warrior
 
Dantplayer's Avatar
 
Join Date: Dec 2008
Location: Montreal
Posts: 66
Blog Entries: 1
Thanks: 6
Thanked 2 Times in 2 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Dantplayer
Default Re: Trying to understand this... :S

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:
    <?php
    
/*
    Template Name: Recent Blog Posts

    */
    
?>
<?php get_header
(); ?>

<div class="pagewrap">
    <div class="mainwrap">
            <div class="content">
            <?php if (have_posts()) : ?>
                <?php
                
global ;
                 = 
get_posts('numberposts=1');
                 = 
get_posts('numberposts=3&offset=1');
                 = 
get_posts('numberposts=5&offset=4&order=DESC&orderby=post_date'); ?>
                
                <?php foreach( as ) :
                    
setup_postdata();    ?>
                    <div class="post" id="post-<?php the_ID(); ?>">
                        <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
                        <div class="entry">
                            <?php the_content('<span>Read on &raquo;</span>'); ?>
                        </div>
                        <div class="postmeta">Posted in <?php the_category(', '?> | <?php edit_post_link('Edit'''' | '); ?>  <?php comments_popup_link('No Comments''Comment (1)''Comments (%)'); ?></div>
                    </div>
                <?php endforeach; ?>

                <?php foreach( as ) :
                    
setup_postdata();    ?>
                    <div class="post" id="post-<?php the_ID(); ?>">
                        <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
                        <div class="entry">
                            <?php the_excerpt('<span>Read on &raquo;</span>'); ?>
                        </div>
                        <div class="postmeta">Posted in <?php the_category(', '?> | <?php edit_post_link('Edit'''' | '); ?>  <?php comments_popup_link('No Comments''Comment (1)''Comments (%)'); ?></div>
                    </div>
                <?php endforeach; ?>

                <?php foreach( as ) :
                    
setup_postdata();    ?>
                    <strong><?php the_time('F jS, Y'?></strong><br />
                    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
                    <br /><br /> 
                <?php endforeach; ?>

                <div class="navigation">
                    <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries'?></div>
                    <div class="alignright"><?php previous_posts_link('Next Entries &raquo;'?></div>
                </div>
            
            <?php else : ?>
                <h2 class="center">Not Found</h2>
                <p class="center">Sorry, but you are looking for something that isn't here.</p>
                <?php include (TEMPLATEPATH "/searchform.php"); ?>
            <?php endif; ?>
        </div>

</div></div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
Dantplayer is offline   Reply With Quote
Old 09-28-2009, 03:05 PM   #6
Imagination Warrior
 
Dantplayer's Avatar
 
Join Date: Dec 2008
Location: Montreal
Posts: 66
Blog Entries: 1
Thanks: 6
Thanked 2 Times in 2 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Dantplayer
Default Re: Trying to understand this... :S

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.
Dantplayer is offline   Reply With Quote
Old 09-28-2009, 03:24 PM   #7
HyperActive Warrior
War Room Member
 
NowIstheTime's Avatar
 
Join Date: Sep 2009
Posts: 105
Thanks: 4
Thanked 13 Times in 12 Posts
Default Re: Trying to understand this... :S

Just use the Thanks button in black on the bottom right of the 'helpful' post.
NowIstheTime is offline   Reply With Quote
Old 09-28-2009, 06:31 PM   #8
Imagination Warrior
 
Dantplayer's Avatar
 
Join Date: Dec 2008
Location: Montreal
Posts: 66
Blog Entries: 1
Thanks: 6
Thanked 2 Times in 2 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Dantplayer
Default Re: Trying to understand this... :S

Now see that's the strangest thing... there isn't one. Just the "quote" button in black; that's all.
Dantplayer is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
cms, navigation, replicate, understand, wordpress

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 09:34 PM.