- This topic has 1 reply, 2 voices, and was last updated 6 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Business Field Pro › Slider Caption – Secondary Words
Hi,
The slider feature on Featured Pages takes the title of the page and then some secondary text below, currently 29 words. Can I control how many words?
Thanks
James
Hello @jamest,
you can add the filter to control the length ( no.of words ) in the featured slider via child theme approach.
For reference on using child themes, please check the reference here :
https://codex.wordpress.org/Child_Themes
You can also automate the child theme generation by using the CHild theme generator plugin.
After creating and activating your child theme, please paste the following code to your child theme’s functions.php file :
/**
* Control Slider caption length.
*/
function business_field_pro_child_slider_excerpt_length(){
return 50;
}
add_filter( 'business_field_filter_slider_caption_length', 'business_field_pro_child_slider_excerpt_length');
You can change the no of words value ( 50 ) as per your requirements.
Hope this Helps,
Best Regards !!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |