Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #383409

    Hi, just updated to Enfold 3.0.5 and now see that the ‘Read more’ (more shortcode: <!--more-->) got some extra space.

    For example, see this recent page:
    http://marcbijl.nl/fotografie/ingang-mayersche-buchhandlung-nacht-foto-aken-duitsland-klassiek

    After the excerpt/summary, there’s a lot of space (more than before) till the first paragraph. It seems that it’s caused by the html for the ‘Read more’ that is:

    <p>
    <span id="more-3972"></span>
    <br>
    </p>

    There’s a break in it, probably shouldn’t be there.

    However, I’m not sure if this is caused by the Enfold theme update, or by some code I added to function.php lately to get a nice excerpt and Read more link (see my post here: https://kriesi.at/support/topic/sequel-cut-excerpt-off-at-more-tag-instead-of-using-wordcharacter-count/)

    #383685

    Hey Marc!

    Thank you for using Enfold.

    I checked the site but the read more link for the blog posts are missing. Did you remove it?

    Best regards,
    Ismael

    #383686

    Hey!

    Alright. I can see the blog page now. You can adjust the top margin of the more link with this:

    #top .template-blog .more-link {
    margin-top: 20px;
    }

    Cheers!
    Ismael

    #383694

    Hi Ismael, thnx for the reply mate!
    I guess I haven’t been very clear in my question…

    The more link on the blog page (the list of blog posts) is just perfect, as you can see here:
    http://marcbijl.nl/fotoblog

    It’s on the post page where there’s some extra white space, just above the horizontal line, as you can see here:
    http://marcbijl.nl/fotografie/etalage-aachener-optikhaus-nacht-foto-aken-duitsland-klassiek

    When I look in the code with Firebug, I see the white space is caused by this code:

    <p>
    <span id="more-3972"></span>
    <br>
    </p>

    Not sure, but I guess it’s the break-tag that causes the white space…

    To complete the info: I’m using some extra code in my function.php to get a nice excerpt, that ends at the more tag instead of after a certain number of characters/words. I got the code from your colleague @Dude as suggested here: https://kriesi.at/support/topic/length-of-description-in-preview/#post-322259 I’m not sure if this code (in combination with the latest theme update) might cause the extra white space in the post.

    #384305

    Hey!

    Alright. Add this on Quick CSS to remove the link on single post view:

    .single p.excerpt + p {
    display: none !important;
    }

    Cheers!
    Ismael

    #384727

    Hi Ismael,
    thnx very much!

    That did the trick, very neat! :-D

    Cheers,
    Marc

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Did the more shortcode get extra vertical space since enfold 3.0.5’ is closed to new replies.