cscott5288
Forum Replies Created
-
Forum: Themes and Templates
In reply to: images not aligningOoops, sorry, I posted this in the wrong thread :(. Ignore that.
Forum: Themes and Templates
In reply to: images not aligningI am using my own theme which I am testing before using it on my site.
Here is the sidebar:
<div id=”sidebar”>
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar(“Right Sidebar”) ) : ?><?php wp_list_categories(‘title_li=<h2>’ . __(‘Categories’) . ‘</h2>’ ); ?>
<?php wp_get_archives( $args ); ?>
<?php wp_list_comments( $args ); ?>
<?php endif; ?>
</div>
Here is the register for the sidebar in functions.php
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’ => ‘Right Sidebar’,
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<h2>’,
‘after_title’ => ‘</h2>’,
));Forum: Themes and Templates
In reply to: images not aligningOh, I thought that WordPress had its own custom styles somewhere. Thanks.
Forum: Themes and Templates
In reply to: Trying to show category title not in an liSee for yourself : https://www.hospiceinform.net/ (right sidebar)
Forum: Themes and Templates
In reply to: Trying to show category title not in an liI tried that, it still places the <h2>Categories</h2> in an li.
Forum: Themes and Templates
In reply to: What is going wrong with my theme??!But of course! my sidebar was placed after the post area in the HTML but in the PHP I had it before. problem solved.
Forum: Themes and Templates
In reply to: What is going wrong with my theme??!Actually, it wasn’t missing elements, it was an extra </div> in my sidebar. Thanks for all your help guys. My only problem now is figuring out why my sidebar is on the left hand side instead of the right … mysterious.
Forum: Themes and Templates
In reply to: What is going wrong with my theme??!I understand what is going wrong btw .. i have missing elements
Forum: Themes and Templates
In reply to: What is going wrong with my theme??!LOL wow, i feel like a dumbass.
well now I have this: https://www.hospiceinform.net/
not much better.
Just a question skylar – why wouldn’t it be logical to use id instead of class for the first post since the div will only be appearing once on the page?
I know it doesn’t matter but I am always confused about this and I want to make sure I understand the purpose of classes vs. ids.
Thanks a lot skylar, you really spelled it out for me!
Okay, I get the first example for singe loops but there are some things I am not clear on.
For the basic loop, how do I set how many posts will be displayed on the page? Does the first example (below) display ALL posts?
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
If so, how do I tell WP to create separate pages after the first 10 posts or so?
I see a way to style posts differently by category but how do I style posts differently from time they were posted. I want the latest post to be styled differently then all the rest.
Thanks … I really did read the whole tutorial I am just not very good with PHP.
I would really appreciate any help on this or at least a link to a tutorial :).
Forum: Themes and Templates
In reply to: Can I do this?Thanks. This makes sense.
Forum: Themes and Templates
In reply to: post_class or post_id?nvm … i figured it all out pretty much.