• Resolved menathor

    (@menathor)


    Hi guys

    Is there a way (eg. a code snippet) I can make “Pre-built rows” selected by default in the “Rows” tab of the builder? I’d like my clients to see the pre-built options first and have to manually switch to the layout grids.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ben Carlo

    (@hinampaksh)

    Hey @menathor,

    Apologies for the delayed response here.

    Can you try adding the filter below to your child theme’s functions.php file and see if it works for you? 🙂

    add_filter( 'fl_builder_content_panel_data', function($data) {
    
        if ( isset( $data['tabs']['rows']['views'] ) ) {
            foreach ( $data['tabs']['rows']['views'] as $i => $view ) {
                if ( 'prebuiltrows' == $view['handle'] ) {
                    $data['tabs']['rows']['views'][$i]['isShowing'] = true;
                }
            }
        }
        return $data;
    });
    Thread Starter menathor

    (@menathor)

    Thanks Ben, will give that a shot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Make “Pre-built rows” selected by default in “Rows” tab’ is closed to new replies.