Skip to content

Instantly share code, notes, and snippets.

@LaxusCroco
Created March 11, 2024 09:45
Show Gist options
  • Save LaxusCroco/446b34b19044a0f47fdd53259653dc9d to your computer and use it in GitHub Desktop.
Save LaxusCroco/446b34b19044a0f47fdd53259653dc9d to your computer and use it in GitHub Desktop.
Smart Posts List widget for JetBlog - increase the Featured Post Title Max Length, Title Max Length, and Rows Number
<?php
add_action( 'elementor/element/jet-blog-smart-listing/section_general/before_section_end', 'update_smart_post_list_settings', 10, 2 );
function update_smart_post_list_settings( $widget = null, $args = array() ) {
$widget->update_control(
'featured_title_length',
array(
'max' => 50,
)
);
$widget->update_control(
'title_length',
array(
'max' => 50,
)
);
$widget->update_control(
'posts_rows',
array(
'options' => jet_blog_tools()->get_select_range( 12 ),
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment