Viewing 9 posts - 1 through 9 (of 9 total)
  • #80892
    ginhim
    Member
    Post count: 40

    Hey there,

    I’d like to show only three articles in the blog carousel on the homepage. How can I make them larger to fill the width?

    #80893
    ginhim
    Member
    Post count: 40
    This reply has been marked as private.
    #81038
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    I see you have managed this?

    – Kyle

    #83925
    DepartmentM
    Member
    Post count: 33

    Hello

    Excuse me that i am adding my question to this post, but i think my question is exactly the same.

    I want to show the three last blog posts in a blog-carousel on my landing page. In the carousel-options of the item, i set the number of items to display to three. But on the page, the columns there are four columns shown with only three filled by my post.

    When i take a look at the item via Firebug, i can see that there are three post items with the class “span3” (no fourth item existing), but the class “span3” has the wrong width (width = 262px) to fill the whole row. The items should have a width of around 360px to fill the whole row.

    Can i fix this in the options of the blog-carousel item or do i have to make changes in the css of the page?

    – Sebastian

    #83948
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    What you need to do is open up recent-posts.php in includes/swift-framework/page-builder/shortcodes and edit line 104:

    $items .= '<li itemscope class="recent-post span3 clearfix">';

    Change the span3 to span4

    – Kyle

    #84104
    DepartmentM
    Member
    Post count: 33

    Maybe there is a misunderstanding. I want to put the three latest posts in the carousel, not four. So why should i change the class to “span4” when i want to have only three posts? The problem is that the width of the span3 class is not correct. The value has the wrong size (to small) for three posts, the width of the class span3 has the value for four posts in a row (262px). But inthe options i set 3 posts to be displayed.

    – Sebastian

    #84123
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Span3 does not mean 3 posts, it is the column size. The theme has 12 columns, so 4 posts of span3 would = 12 columns. You want to only show 3 posts, so you need to increase the width of the posts to span4 so that 3 x span4 = span12

    Do you understand?

    – Kyle

    #84392
    DepartmentM
    Member
    Post count: 33

    Thank you Kyle! I should know it better…

    #84477
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

    – Kyle

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register