Home › Forums › Pro Themes › Education Hub Pro › How to increase the amount of text in the featured slider caption?
Tagged: slider content
- This topic has 9 replies, 2 voices, and was last updated 8 years, 4 months ago by wensolutions.
-
AuthorPosts
-
July 15, 2016 at 3:51 am #12780pingbaraParticipant
Hi I have a question. How to increase the amount of text in the featured slider caption?
I have noticed that the amount of text in the caption is too limited, it seems the texts i have written in the excerpt are cut shorter. Please advise me on how to increase amount of texts.
– Select Slider Type: Featured Pages
– Website: http://www.chinaprovisa.com
Thank you very much
Methee S.
July 15, 2016 at 5:28 am #12795wensolutionsKeymasterHello pingbara,
To increase the length of text in the caption area of featured slider, we need to make changes and customizations to the theme’s code files.
Please consider Hiring a Customizer for your custom task.
Hope you would understand.
Best Regards.July 21, 2016 at 9:02 am #13334pingbaraParticipantHi Thank you very much for your reply
I have tried to find the customizer but it seems I could not find the one to help me on this.
I saw in the Education Hub Pro demo, it shows the very long beautiful caption text. So I thought I would get that too. But finally I cannot and now to text shows very short caption which is very strange when it comes to Thai language.
Can you give me some hint on where can I try to edit it.
I know a bit on how to edit the css, however I have very little knowledge on the php side.
If it is related to php, please guide me. On Css side I think i can edit it later myself.July 22, 2016 at 1:33 am #13385wensolutionsKeymasterHello @pingbara
As far as we have checked locally and tested with excerpt field it is working fine.
The slider content word is as much as you put text on the excerpt field.
Please try adding some more text in excerpt field.Hope this will help you.
Let us know how it goes.Regards!!!
July 22, 2016 at 3:12 am #13386pingbaraParticipantHi I have tried to put the long excerpt but the texts shown on the homepage slider caption content still not in full at all.
On the slider shown in the hompage it seems to automatically be cut shorter and replace the cut part with “…….”
For more understanding, I have attached the image as below
Link for the actual full excerpt I have in the page which contains slider
https://drive.google.com/file/d/0B5RN4I8uE74TYXo5VjU5OVNRTmM/view?usp=sharingLink for the slider on the homepage which is shown to be cut shorter
https://drive.google.com/file/d/0B5RN4I8uE74TQ2Y2WDVpNUhTMUk/view?usp=sharingThanks alot
July 22, 2016 at 7:07 am #13434wensolutionsKeymasterHello @pingbara
Since this is all working fine on our local machines we are unable to replicate your issue.
So the he first thing you should do is disable all your plugins, clear your cache and re-load your site to check if everything is working how it should be.
If it is, then now you can activate your plugins back 1 by 1 and as soon as it breaks you’ll know that last plugin was the one causing issues (make note of this plugin, deactivate then keep doing the same).
Once you know the plugins causing the issues you can either search for another plugin that does the same functionality but is compatible
If the issue still exists then please let us know we will further debug the issue.Hope this will help you.
Regards!!!
July 23, 2016 at 9:33 am #13516pingbaraParticipantHi i have deactivated one plugin by one until all the plugins are deactivated. Finally I still get the same result.
I have some question. Normally the title of the caption is obtained from the page title that contains the featured image. The caption description will also automatically obtained from the first paragraph of that page.
For me I want to have my own customized caption description so I use the plugin called “Excerpts for Pages” to insert my customized slider caption. Is this the right way to do?
Anyway now I have deactivated all the plugin and even delete the “Excerpts for Pages” plugin. But the result still be the same. The caption description shown on the homepage slider still get cut short.
Please advise me pleaseeee
Methee S.
July 23, 2016 at 10:55 am #13519wensolutionsKeymasterHello @pingbara,
The variance in excerpt length for Thai vs English language could be because of Unicode difference. Therefore, you need to change the word count length directly from code in a file.
Follow these steps :
Note : Backup the file before you make the changes above. Editing code directly on parent theme is not recommended.
1. Create a Child Theme. Or, you can simply download WP Child Theme Generator plugin to create a child theme easily.
2. Open the file from /inc/hooks/slider.php.
3. Copy the entire line of code from line no. 27 to line no. 256 and paste it on your child theme’s functions.php .
4. Search the code below
$slides[ $cnt ]['excerpt'] = education_hub_the_excerpt( apply_filters( 'education_hub_filter_slider_caption_length', 30 ), $post );
and adjust the numeric value from default30
to60
or above upon your choice.5. Finally Save and see the changes in the caption .
Hope this helps!
July 29, 2016 at 5:06 am #14014pingbaraParticipantHi
So apologise for my late reply. Thank you very much for your recommendation. Now my problems are solved.
Thank you very much !!
Thank for the great support !!
July 29, 2016 at 6:31 am #14018wensolutionsKeymasterHello,
Nice to know that the problem has been solved.
If there are any further query, then, please feel free to post them.
We will really appreciate if you could help us too by rating our theme in WordPress repo here:-
https://wordpress.org/support/view/theme-reviews/education-hubThank you for the appreciation.
Best regards. -
AuthorPosts
- You must be logged in to reply to this topic.