- This topic has 5 replies, 2 voices, and was last updated 10 years ago by Theme Horse Support Team.
-
AuthorPosts
-
November 3, 2014 at 10:04 pm #18153erinParticipant
How do I make it so that the descriptive copy in the slider (made as post) does not get cut off. Right now one of my sliders has a description that is longer than the allowed area so it is getting cut off and just shows …
November 4, 2014 at 5:00 am #18162Theme Horse Support TeamKeymasterHi erin,
We have designed our theme this way. It needs code customisation. So you need to hire a developer and if you are good at coding then then file is inside theme folder -> inc -> structure -> header-extension.php but We recommended not to change the code because if you change the code then while updating to our new version all your customisation code will be lost. So better make child theme and first unhook the functions and the edit the code.http://codex.wordpress.org/Child_Themes
Thank you!
November 4, 2014 at 7:22 am #18175erinParticipantThank you for the response! I created a child theme and am working from that already. Could you tell me what exact code I would need to change? I have some knowledge of code but not quite to this extent. I would really appreciate any insight you can give me!!!
November 4, 2014 at 9:10 am #18179Theme Horse Support TeamKeymasterHi erin,
Ok go to header-extension.php on line no 520 and can you see this code ?if(strlen($excerpt) >120){ $excerpt_length = substr($excerpt, 0 , 120); $interface_featured_sliders .= '<div class="featured-content">'.$excerpt_length.'...'.'</div><!-- .featured-content -->'; }else{ $interface_featured_sliders .= '<div class="featured-content">'.$excerpt.'</div><!-- .featured-content -->'; }
Here we only display 120 character. You can change this 120 to 500 to display 500 character. Or if you want more than this then you can change it accordingly you want. Before changing anything change everything in the child theme to be save from our updates. Hope this may help you
Thank you!
November 4, 2014 at 2:32 pm #18189erinParticipantThank you! I copied the code exactly and placed it in my child theme editor. Then changed both 120 numbers in the code to be 500 and nothing happened. Was this not what I was suppose to do or am I missing something?
November 5, 2014 at 4:49 am #18200Theme Horse Support TeamKeymasterHi erin,
If you simply copy the child theme and paste the code then it won’t work. First of all you need to unhook the functions and then hook the child theme functions and customise the code. IF you are unable to do this then you may hire a developer to fix it or you may make direct change to the parent theme but each and every time you update to our new version you need to change the value 120 to 500 or as you want.We have already replied in forum how to unhook functions and create a child theme.
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.