- This topic has 4 replies, 3 voices, and was last updated 6 years, 11 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Mediclean Pro › Changing slider caption
Hi
I like your theme very much – is there any way of changing what and how much text appears when the “caption” box is ticked in the slider options?
Thanks in advance
It’s OK I’ve worked it out thanks!
Hello @hlrmac,
Nice to know that you have solved your issue by your self .
If there is any query further, please let us know.
Best Regards!!
I can’t find the setting for changing the caption length? Can you please post where it is? Thnks.
Hello @plasticsurgeon,
As the theme currently does not have the option to control the caption length you can achieve this through the use of child theme .
You can even activate the child theme using the plugin given below .
https://wordpress.org/plugins/wp-child-theme-generator/
After activating the child theme in your child theme functions.php file paste below given code .
https://gist.github.com/anonymous/ddb5386ce5d3255fd23220e0bbfa3b2d
This will display up to 10 word. In case if you want to display more or less then 10 word then you can change the no by yourself from the block of code given below :
$slides[ $cnt ]['excerpt'] = mediclean_the_excerpt( apply_filters( 'mediclean_filter_slider_caption_length', 10 ), $post );
This block of code is in four places altogether where you can change the no as per your requirement .
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. |