-
AuthorPosts
-
January 21, 2015 at 11:15 pm #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-klassiekAfter 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/)
January 22, 2015 at 2:32 pm #383685Hey 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,
IsmaelJanuary 22, 2015 at 2:33 pm #383686Hey!
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!
IsmaelJanuary 22, 2015 at 2:57 pm #383694Hi 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/fotoblogIt’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-klassiekWhen 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.
January 23, 2015 at 12:27 pm #384305Hey!
Alright. Add this on Quick CSS to remove the link on single post view:
.single p.excerpt + p { display: none !important; }
Cheers!
IsmaelJanuary 24, 2015 at 12:54 am #384727Hi Ismael,
thnx very much!That did the trick, very neat! :-D
Cheers,
Marc -
AuthorPosts
- The topic ‘Did the more shortcode get extra vertical space since enfold 3.0.5’ is closed to new replies.