Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion functions/theme-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,36 @@
'step' => '1',
),
) );
// Blog: Excerpt Length
Kirki::add_field( 'clearer_theme', array(
'type' => 'slider',
'settings' => 'excerpt-length',
'label' => esc_html__( 'Excerpt Length', 'clearer' ),
'description' => esc_html__( 'Max number of words. Set it to 0 to disable.', 'clearer' ),
'section' => 'blog',
'default' => '20',
'choices' => array(
'min' => '0',
'max' => '100',
'step' => '1',
),
) );

// Blog: Number of Suggested Posts in Search Results
Kirki::add_field( 'clearer_theme', array(
'type' => 'slider',
'settings' => 'suggested-posts-count',
'label' => esc_html__( 'Number of Suggested Posts in Search Results', 'clearer' ),
'description' => esc_html__( 'Max number of suggested posts to display. Set to 0 to disable suggestions.', 'clearer' ),
'section' => 'blog',
'default' => 5,
'choices' => array(
'min' => 0,
'max' => 10,
'step' => 1,
),
) );

// Blog: Comment Count
Kirki::add_field( 'clearer_theme', array(
'type' => 'switch',
Expand Down Expand Up @@ -744,4 +774,4 @@ function clearer_kirki_sidebars_select() {
'label' => esc_html__( 'Background Color', 'clearer' ),
'section' => 'styling',
'default' => '#fbfbfc',
) );
) );