Created
March 11, 2024 09:45
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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