• Resolved bartvj

    (@bartvj)


    Hi,

    There are many tile layouts, but with maximum 4 columns. I would like to have 5 or 6 columns. How to manually add them?
    I know I can adjust amount of columns with grid, but then the images remain the original size, not square and it also is limited to 5.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nK

    (@nko)

    Hi.

    You can only add predefined layouts using custom PHP code. https://visualportfolio.co/documentation/developers/wordpress-filters/

    An advanced layout editor will be added to the PRO plugin.

    Regards, nK.

    Hey,

    Instead of creating a new topic, I wanted to ask it here since my question is related to this one. Would you mind elaborating on using such custom PHP code? Where and how exactly should I be doing what you mentioned?

    edit: oh, alright. Solved! ^^

    • This reply was modified 4 years, 2 months ago by moelih.

    @moelih @nko @bartvj Can someone share a way to use “Extend Tiles” Filter to add columns to Tiles gallery ? I want to create my custom Tiles gallery but as I’m not a PHP specialist I can’t figure out how to use it.

    When I add this function it doesn’t do anything :

    <?php
    
    add_filter( 'vpf_extend_tiles', 'my_filter_vpf_extend_tiles' );
    
    function my_filter_vpf_extend_tiles( $tiles ) {
        return array_merge( $tiles, array(
            array(
                'url' => 'assets/images/tiles-1-1.svg',
                'value' => '1|1,0.5|',
            ),
            array(
                'url' => 'assets/images/tiles-2-1.svg',
                'value' => '2|1,1|',
            ),
        ) );
    }

    Do I have to do something else to make it work ?

    And if I add other functions present in the visual portfolio filter page it’s breaking everything.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add columns to tile’ is closed to new replies.