Skip to content

woostify/boostify-elementor-addon

Repository files navigation

boostify-elementor-addon

Post Grid Widget

How to add custom layout post grid

  1. Create function in file function.php. Ex. function boostify_post_grid_add_layout() { $layout = new \Boostify_Elementor\Posts\Layout(); $args = array( 'layout_1' => 'Layout 1',// $setting_layout = 'layout_1'; ); $layout->add_layout_grid( $args ); }
  2. Add action elementor/init Ex. add_action( 'elementor/init', 'boostify_post_grid_add_layout' );
  3. Create function get layout custom. Ex. function boostify_get_content() { }
  4. Add action add_action( 'boostify_post_grid_{$setting_layout}', 'boostify_get_content' );

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published