New Landing How can we help? Themeforest Theme Support Dante Blog Masonry – 4 Column

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Dante
  • #35281
    jovo
    Member
    Post count: 63

    Hello. I asked this question in a different thread, but still searching for a solution.

    http://support.swiftideas.net/forums/topic/masonry-blog-layout/

    I’m trying to use the Masonry Layout with AUX, but with 4 columns, instead of 3. I see the code in the php file, but still can’t get it to work. Thanks in advance.

    #35418
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @jovo,

    Have you changed the line I posted to col-sm-3?

    That will make it 4 column, confirmed it here.

    – Ed

    #35495
    jovo
    Member
    Post count: 63

    Thanks Ed. It’s working great now. I should have looked closer. ๐Ÿ™‚

    By the way, I hope this can be added as a configurable option. I’m currently not using a child theme.

    #35595
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    We may do in the future, but haven’t got plans for it as of yet. It is a small change though. Can you send me a link so that I can see how it looks?

    – Ed

    #282505
    Joanna
    Member
    Post count: 185

    Hi there,

    Would you mind posting the solution? I would like to achieve the same thing for the blog to be in 4 columns.

    Thanks,

    Joanna

    #282886
    David Martin – Support
    Moderator
    Post count: 20834

    Joanna – what is the link to your blog page?

    The file is in /wp-content/themes/dante/includes/sf-blog.php

    You need to edit the PHP function called: sf_blog_items(). This entire PHP function needs to be copied into your child theme file called functions.php once you have installed and activated it.

    Within the sf_blog_items() function you can change the column settings:

    				if ($blog_type == "mini") {
    					$item_class = "col-sm-12";
    				} else if ($blog_type == "masonry") {
    					if ($sidebar_config == "both-sidebars") {
    					$item_class = "col-sm-3";
    					} else {
    					$item_class = "col-sm-4";
    					}
    				} else if ($blog_type == "masonry-fw") { 
    					$item_class = "col-sm-3";
    				} else {
    					$item_class = $width;
    				}
    #282941
    Joanna
    Member
    Post count: 185

    Hi there,

    That sounds super complicated ๐Ÿ™‚ I am very confused how to do this.

    My blog page: http://www.varrojoanna.com/thoughts/

    So will I be looking for sf-blog.php, sf_blog_items or functions.php file?

    I do not think I have a child theme. Or do I?

    Thanks,

    Joanna

    #283024
    David Martin – Support
    Moderator
    Post count: 20834

    1) Download, install and activate the child theme we supply in the main zip file from ThemeForest.

    2) You need to open the file is in /wp-content/themes/dante/includes/sf-blog.php.

    3) Inside the file sf-blog.php you must locate the function sf_blog_items().

    4) Copy and paste this into your child theme file called functions.php.

    5) Amend the column classes as needed.

    Thanks.

    #283037
    Joanna
    Member
    Post count: 185

    Hi there,

    Thank you for your help but I am lost on the point 1 and the instruction seems too complex for me to mess with.
    Is it possible to add it to the feature request?

    Thank you,

    Joanna

    #283040
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    We can guide you through this, it’s not complex if you work with us.

    Thanks.

    #283151
    Joanna
    Member
    Post count: 185

    Hi there,

    Thank you but I would like to avoid opening any code files as much as possible. I have found another solution for now.

    Thanks,

    Jo

    #283161
    David Martin – Support
    Moderator
    Post count: 20834

    Ok, no problem.

    Thanks,
    David.

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