WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Two questions, using Ashford (6 posts)

  1. JImbailna MMsksds
    Member
    Posted 2 years ago #

    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...

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    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 <?php the_excerpt();?> with <?php the_content();?>.

  3. JImbailna MMsksds
    Member
    Posted 2 years ago #

    Thanks that was it. Just found the post_excerpt.php and edited it to be more similar to the post_content.php file.

  4. JImbailna MMsksds
    Member
    Posted 2 years ago #

    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...

    page_1_column_wide.php

    <?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(); ?>

    page_blog.php

    <?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');
    ?>
  5. esmi
    Forum Moderator
    Posted 2 years ago #

    Try using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

  6. JImbailna MMsksds
    Member
    Posted 2 years ago #

    Thanks, just got a more involved with Notepad++ and found a variable called ASHFORD_CONTENT_RIGHT_GRID in index.php, that I changed to just ASHFORD_CONTENT_GRID.

    Cheers and thanks for the help!

Topic Closed

This topic has been closed to new replies.

About this Topic