Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #869687

    patlordy
    Participant

    Hi.

    I’m trying to add the excerpt under my blog post on my homepage.

    I followed the instrusction given here

    https://community.theme.co/forums/topic/customize-recent-posts-2/

    But can’t get it to work.

    I have added the code into my X-child function.php file.

    It has added a white space inder my image on my homepage, where I suppose the text should be going, althought no text is appearing (see attached image).

    Can you help me with that?

    Thanks!

    #870134

    Darshana
    Moderator

    Hi there,

    Please refer to the following post (https://community.theme.co/forums/topic/excerpt-teasertext-for-recent-blogposts/#post-826733).

    Hope that helps.

    #870196

    patlordy
    Participant

    Hello.

    As I said, I tried this method already but I’m not getting any result. Actually, as I said and have shown with the image, there is now a gap between the image and the title so something has been happening but I don’t see any excerpt anywhere.

    Any other idea?

    #870645

    Lely
    Moderator

    Hello There,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    #871246

    patlordy
    Participant
    This reply has been marked as private.
    #872208

    Lely
    Moderator

    Hi There,

    Thank you for giving us your site URL.
    Please also add this CSS via Appearance > Customize > Custom > CSS:

    .x-recent-posts .x-recent-posts-img {
        padding-bottom: 0;
    }

    I can see that you’re using Cornerstone for your posts. Please make sure that you’ve added manual excerpt and enable_excerpt="true" is set like below:
    [x_recent_posts count="3" enable_excerpt="true"]

    Please note that excerpt requires plain text. WordPress will automatically remove/strip out all html, shortcodes, and other stuff from the content. When your content is wrapped with shortcode, then expect that your content between the shortcode will be removed too. The same reason builders(like Cornerstone) are not active for posts by default.

    And for that, wordpress provided excerpt section where user can manually input plain text. You can find that by enabling excerpt at Screen Options of your current posts. Then scroll down until you find the excerpt input box.

    Hope this helps.

    #874674

    patlordy
    Participant

    Yep! works great!
    Thanks you 🙂

    #875082

    Thai
    Moderator

    You’re most welcome 🙂

    If you need anything else please let us know.