New Landing How can we help? Themeforest Theme Support Uplift Social Grid: Change column count

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Uplift
  • #323638
    Taffy
    Member
    Post count: 261

    We would like to change the Social Grid columns to an even number, i.e. “4”.

    Currently only able to do 3 or 5 column width.

    Can you please helpe to make this possible.

    #323865
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Taffy,

    This is possible. I’ll need to submit a patch to enable you to fully do this via a child theme and without modifying the switch framework.

    1) Please install and activate the supplied child theme, inside the child theme functions.php file please paste this:

    `function uplift_spb_social_grid_item_count() {
    $item_count = array(
    __( “3”, ‘uplift’ ) => “3”,
    __( “4”, ‘uplift’ ) => “4”,
    __( “5”, ‘uplift’ ) => “5”,
    __( “6”, ‘uplift’ ) => “6”
    );
    return $item_count;
    }
    add_filter(‘sf_blog_grid_standard_item_columns’, ‘uplift_spb_social_grid_item_count’);`

    2) Please open the file /wp-content/plugins/swift-framework/includes/page-builder/shortcodes/blog-grid.php. Replace the contents with this: https://gist.github.com/webadelic/0e9ae47a8904c11e2c23d3d04f47a796.

    Please test that and see how that works out for you and I will submit this for a future update.

    #328311
    Taffy
    Member
    Post count: 261

    I could not get this to work.

    Wordpress page went white.

    #328336
    David Martin – Support
    Moderator
    Post count: 20834

    If you could add a FTP credential, I’d like to take a closer look.

    Cheers

    #328559
    Taffy
    Member
    Post count: 261
    This reply has been marked as private.
    #328961
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi Taffy,

    I made those changes for you – please can you take a look now?

    – Ed

    #328962
    Taffy
    Member
    Post count: 261
    This reply has been marked as private.
    #329158
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Great.

    Simply copy across the function from the functions.php file in the child theme, and then copy this file across too: /wp-content/plugins/swift-framework/includes/page-builder/shortcodes/blog-grid.php

    Hope that helps.

    – Ed

Viewing 8 posts - 1 through 8 (of 8 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