I just installed WordPress with Ashford v2.3.
My first problem is that my blog posts aren’t displayed properly on the home page – there aren’t any line breaks or anything, it’s just a mush of words. But when I click on a post and see it by itself, it looks fine.
My second question is about using the sidebar space for blog posts. I’ve removed all the sidebar widgets, so there’s nothing there, but I’m not sure how to remove the entire sidebar or tell the posts to centre and use up that space. This will go for my other pages as well.
You can see the site here: http://wtat.co.za/
Thanks for the help, and please excuse my lack of knowledge! I’m expecting to dig around in some php by the way, which I’ve done a lot of before, just not with WordPress, so I don’t know where to start…
Your theme may be using
<?php the_excerpt();?>instead of
<?php the_content();?>in its index.php template file. Try creating a child theme, editing the file in your child theme and replacing
Thanks that was it. Just found the post_excerpt.php and edited it to be more similar to the post_content.php file.
As for my other problem… I’ve managed to get the extra pages to be wider and centred, but not the blog… Been fiddling with the php but no luck yet.
Here’s what I’m working with. The first template is what the pages are based on, and seems to make them wider, and the second one is for the blog page, which isn’t wider…
<?php /* Template Name: Page layout 1 column wide * "content" is 700px wide * no sidebar * * v0.7 - changed content width from 820px to 700px * v2.3 - added grid constants * * @author Tim Bednar * @version v1.0 * @todo n/a */ ?> <?php get_header(); ?> <div id="content" class="<?php echo constant('ASHFORD_CONTENT_GRID');?>"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php include (TEMPLATEPATH . '/post_page.php'); ?> <?php endwhile; endif; ?> </div><!-- /#content --> <?php get_footer(); ?>
<?php /* Template Name: Template for blog * includes the index.php * * v0.7 - Added php comments * * @author Tim Bednar * @version v1.0 * @todo n/a */ // Which page of the blog are we on? $paged = get_query_var('paged'); query_posts('cat=-0&paged='.$paged); // make posts print only the first part with a link to rest of the post. global $more; $more = 0; //load index to show blog load_template(TEMPLATEPATH . '/index.php'); ?>
Try using Firefox with the Firebug add-on for this kind of CSS work.
- The topic ‘Two questions, using Ashford’ is closed to new replies.