badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

SLIDER DESCRIPTIVE COPY

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18153
    erin
    Participant

    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 …

    #18162

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

    #18175
    erin
    Participant

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

    #18179

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

    #18189
    erin
    Participant

    Thank 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?

    #18200

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

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