Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1104925
    ekunited
    Participant

    I have a recent posts section on my homepage with excerpts on (I installed the child theme) However I would like to fix the way the image is displayed above my excerpt. http://bptnews.org

    it leaves a large area to hover above

    #1105082
    Christopher
    Moderator

    Hi there,

    Please add following code in Customize -> Custom -> CSS :

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

    Hope that helps.

    #1105171
    ekunited
    Participant

    Perfect – Thank you

    #1105184
    ekunited
    Participant
    This reply has been marked as private.
    #1105262
    Joao
    Moderator

    Hi There,

    Please add the following coden to Appereance > Customizer > Custom > CSS

    
    .x-recent-posts a {
    font-size: 13px;
    }
    

    Hope that helps

    Joao

    #1105685
    ekunited
    Participant

    That worked perfectly, Thank you for all of your help thus far,

    How do I keep paragraphs in excerpts?

    http://bptnews.org

    #1105692
    Rahul
    Moderator

    The screenshot didn’t go through in your last reply. Would you mind reuploading it after compressing the size under 512kb?

    Thanks

    #1105764
    ekunited
    Participant

    Here is another screenshot

    #1106037
    Jade
    Moderator

    Hi there,

    Would you mind clarifying what do you mean by keeping paragraphs in excerpts?

    The post items in the blog section that contains excerpts seem to look the same as the recent post except but only left aligned.

    #1106121
    ekunited
    Participant

    Sure, to clarify lets look at the recent post on the homepage “Kerry: As big a threat….”
    in the recent post – the excerpt is all one paragraph, no spacing between paragraphs. In the actual post there are paragraphs with space between paragraphs. I attached screen shots of both.

    #1106591
    Paul R
    Moderator

    Hi,

    Can you share to us the code in your child theme functions.php file.

    Thanks

    #1106977
    ekunited
    Participant
    This reply has been marked as private.
    #1107311
    ekunited
    Participant
    This reply has been marked as private.
    #1107630
    Rad
    Moderator

    Hi there,

    Yes, because excerpts are plain text with no formatting, that’s how WordPress generate it. https://codex.wordpress.org/Excerpt

    Plus, formatting shouldn’t be added within recent posts element or it will break. It’s not designed to be the same as standard blog entries.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1104925 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>