Get 20% Off On All Our Premium WordPress Themes Bundle. Use GRACEBFCM Coupon Code For Discount Deal Upto Dec 15 Buy Now

Latest news customisation

Home Support Endanger WordPress Theme Latest news customisation

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7955
    Christopher
    Participant

    Hello,

    In the “Latest News” section of the home page I’d like to display the full text of the posts instead of excerpts of the posts. They’re not long posts so I’m not worried about them over extending the content blocks, I just want a bit more text to be displayed. How would I go about doing that?

    Regards,
    Chris

    #7959
    Grace Themes
    Member

    Hi Christopher,

    This will require to change some code to display full text in “Latest News” section.

    Please send your website URL and WordPress admin login details for temporary at support@gracethemes.com so we can implement this changes on your website quickly.

    Regards
    Grace Themes

    #7964
    Christopher
    Participant

    Hello,

    Thank you for the reply 🙂

    I’m not comfortable giving out the login details for the website.

    I don’t know how to code php myself but I can read it and I know my way around the WordPress editor very well so if you could inform me what code I need to change I’d appreciate that.

    Regards,
    Chris

    #7969
    Grace Themes
    Member

    Hi

    You need to make some small changes in custom-functions.php file

    Go to Appearance -> Editor -> inc/custom-functions.php
    at line no. 804 you will find the below code

    <div class="news">
        <h5>'.get_the_title().'</h5>
        <p>'.wp_trim_words( get_the_content(), of_get_option('newscontentlength'), '...' ).'</p>
        <div class="view-all-btn"><a href="'.get_permalink().'">'.of_get_option('readmoretext').'</a></div>
    </div>

    Now just replace this with below modified code

    <div class="news">
        <h5>'.get_the_title().'</h5>
        <p>'.get_the_content().'</p>
    </div>

    This will display complete text without Read More button.

    Regards
    Grace Themes

    #7973
    Christopher
    Participant

    Hello 🙂

    That worked perfectly, thank you so much for your help!

    Regards,
    Chris

    #7977
    Grace Themes
    Member

    You are most Welcome.!

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