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*

The excerpt text increase

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48169
    onlinedirections
    Participant

    Hi,
    The main page of my site has the business template. There the service widget with 3 columns is used.
    How can I increase the excerpt text in these 3 columns?
    What php file must I modify?

    #48192

    Hi onlinedirections,
    To increase the excerpt length its a premium features but it will only display upto 130 character. We have designed our theme this way. If you like code customization then, go to theme folder -> inc -> structure -> ambition_widgets.php on line no 433 you will find below code

    <p><?php if(strlen($excerpt) >130){
    $excerpt_length = substr($excerpt, 0 , 130);	
    echo $excerpt_length . '...'; ?>
    </p>

    replace with
    <?php echo esc_attr($excerpt); ?>

    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

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