joah
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How to apply style to the_category(‘,’) ?ppffffff while posting all this i spot a typo!
sorry to have wasted your time….Forum: Themes and Templates
In reply to: How to apply style to the_category(‘,’) ?Yes I have the whole thing inside a DIV with an ID that is styled in a stylesheet, but not a SPAN –does that matter?
It is this:
<div class="fp_post_bsr_details" style="float:right;"> <?php the_time('F dS, Y'); ?> | <?php _e("Tags: "); ?><?php the_tags('', ', ', ''); ?> | <?php _e("Category: "); ?><?php the_category(',') ?> | <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> | <?php _e("Author: "); ?><?php the_author(',') ?> </div>
And in the stylesheet is says:
.fp_post_bar_details a { font-size:10px; color:#999999; font-weight:bold; text-decoration: none; border: 0px; } .fp_post_bar_details a:hover { font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#CCCCCC; font-weight:bold; text-decoration: none; border: 0px; }
What am i missing?
Forum: Themes and Templates
In reply to: Code-Newbie Needs Pointersallright,
I updated the code a bit… (?) :
<body> <div id="page"> <div id="header"> <a href="<?php echo get_option('home'); ?>/"><img id="headerimage" src="/wp-content/themes/redout/images/redout_logo.png"/></a> </div> <!-- header end --> <!-- index start --> <div id="container"> <div id="content"> <!-- loop start --> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title='Click to read: "<?php strip_tags(the_title()); ?>"'><?php the_title(); ?></a> <?php the_content("Continue reading '" . the_title('', '', false) . "'"); ?> <?php endwhile; ?> <?php next_posts_link('« Older blog posts') ?> <?php previous_posts_link('• Newer blog posts »') ?> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here. ?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> <!-- loop end --> </div> <div id="leftcol"> <!-- index end --> sidebar <!-- sidebar start --> </div> <div id="rightcol"> rightcol </div> </div> <!-- sidebar end --> <!-- footer start --> <div id="footer"> footer </div> </div> </body> </html> <!-- footer end -->
So far, it seems to be working, and the loop is generating posts as can be seen here at my URL. I think I’m on the right track, but i’m still very weary about any mistakes i might be making, that should be recognized now, before i’m too far into the development.
Forum: Themes and Templates
In reply to: Code-Newbie Needs PointersThe above code is not yet split into seperate header, footer, sidebar and index files. I thought i’d get the page to work as a whole first, and then split it into its template parts.
Also, I have not yet added all the php-code that WordPress uses. I’m just trying to figure out what goes where in CSS.
I hope this clarifies the question I’m asking, but perhaps your answer still remains the same. I’m going to take a look at the templates you mentioned now…
In the meantime, if anyone has something to add, please do so. ??
Forum: Themes and Templates
In reply to: Code-Newbie Needs PointersMaybe I should make my question more specific:
I have built the basic structure of my index page, which will contain “the loop”. I’m just starting to grasp the loop concept, but i’m unclear on the following:In the default theme, a call to the sidebar is made after the loop, right before calling the footer. I think my index file has the call to the sidebar inside the loop (but i’m not sure). Is this going to be a problem??
<body> <div id="page"> <div id="header"> <a href="<?php echo get_option('home'); ?>/"><img id="headerimage" src="/wp-content/themes/redout/images/redout_logo.png"/></a> </div> <?php /*?>header end<?php */?> <?php /*?>index start<?php */?> <div id="container"> <div id="content"> content <==== DOES THE LOOP GO HERE? </div> <div id="leftcol"> <?php /*?>sidebar start<?php */?> sidebar <=== I PLANNED THE SIDEBAR HERE <?php /*?>sidebar end<?php */?> </div> <div id="rightcol"> rightcol </div> </div> <?php /*?>index end<?php */?> <?php /*?>footer start<?php */?> <div id="footer"> footer </div> </div> </body> </html> <?php /*?>footer end<?php */?>