WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Change number of columns using filter not working

[Resolved] Change number of columns using filter not working

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author James Koster
    Participant

    @jameskoster

    Just tested this and can confirm it works. What them are you using? Can I see a URL?

    digitalisfun
    Member

    @digitalisfun

    Thanks for checking it out James. I am using the latest version of Canvas with a child theme. The URL is private as the site is under development. I just tried removing all code from my functions.php except the above snippet with no luck. Bit stumped 🙂

    digitalisfun
    Member

    @digitalisfun

    Had another look at this and this code worked for me:

    add_filter( 'projects_loop_columns', 'gw_woo_custom_projects_loop_columns', 99 );
    function gw_woo_custom_projects_loop_columns( $columns ) {
        $columns = 3;
        return $columns;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Change number of columns using filter not working’ is closed to new replies.