WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
recent posts as 3 columns on home (7 posts)

  1. tiki16
    Member
    Posted 4 months ago #

    HI I am trying to create the recent posts on the home page into 3 cols. The only problem is when you click on the story the story page is the same width as column on the home page which is 210px wide. I'd like the post page to be full width but it looks like it is using the same style classes on the home page.Here is my css:
    .article-container li{
    width:280px;
    display:inline;
    padding:0px 5px 20px 5px;
    float:left;
    border-top:none!important;
    }

  2. tiki16
    Member
    Posted 4 months ago #

  3. d4z_c0nf
    Member
    Posted 4 months ago #

    use
    .home .article-container li
    instead of simple
    .article-container li

    This way you'll limit that custom width just in home.

  4. tiki16
    Member
    Posted 4 months ago #

    Thanks for that. Is there a way I can get the image above the title with the same width as the column?

  5. d4z_c0nf
    Member
    Posted 4 months ago #

    Yep but what about the height?
    anyway:

    add_filter( 'tc_post_list_layout', 'my_post_list_layout');
    function my_post_list_layout($layout) {
        if ( ! tc__f('__is_home') )
            return($layout);
    
        return array(
            'content'           => 'span12',
            'thumb'             => 'span12',
            'show_thumb_first'  => true,
            'alternate'         => false
         );
    }

    reference: http://www.themesandco.com/snippet/movehide-post-images/

  6. tiki16
    Member
    Posted 4 months ago #

    Great. How can I adjust the amount of excerpt, make the titles link to the story and also adjust the height of the article box and image? Can't any of this be adjusted through css or is it all within the php? cheers!

  7. d4z_c0nf
    Member
    Posted 4 months ago #

Reply

You must log in to post.

About this Theme

About this Topic

Tags