Home Forums Pro Themes Business Field Pro Slider Caption – Secondary Words

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #66524
    James
    Participant

    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

    #66570
    wensolutions
    Keymaster

    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 !!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.