• Hello,

    We use a skin “motoblog” on our website. In the homepage, some posts don’t show correctly in CSS cause of the “Read More” if it is not show.

    I have 2 solutions :
    Put the “More” tag on every post OR set the more tag on “visibility:hidden” but I can’t find where the more tag is set in wordpress code…

    Can you help me ?

    The website is : [ redundant link removed, use the link field ].(First 6 posts).

    Thank you for your help.

    • This topic was modified 4 years, 8 months ago by snktre59.
    • This topic was modified 4 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    As you are likely aware, placing a more tag on posts where there is no further content would not make for a good user experience. I’m unsure of your intention with visibility: hidden. Why would you hide the continuer la lecture link? That doesn’t sound like a good user experience either. What is it you are trying accomplish that is not showing correctly?

    To answer your question literally, the more tag is set manually when writing the post. I think your question is intended to be more like where in WP code is the more tag handled? This is done in get_the_content() function. There’s little to be done to effect change there though. To effect change use “the_content” filter. Whatever is returned becomes what is displayed as post content.

    Thread Starter snktre59

    (@snktre59)

    @bcworkz

    Thanks for your response !

    The problem I have is a CSS problem, because of the read more tag I think. If you go to my website, you can see the 6 first posts are not aligned.

    Have you an idea about that ?

    Moderator bcworkz

    (@bcworkz)

    It looks like the misalignment is due to the image used for the featured image thumbnail, not the more tag. The misaligned posts have landscape oriented images instead of square. You can set a fixed thumbnail width in CSS to get consistent alignment, but those landscape images get pretty small. It’d be better for images of that size be cropped to square instead of just being scaled. Thumbnail image handling is a theme issue. You can either ask your theme’s dedicated support channel how to fix this, or you could add you own custom thumbnail size that crops to square and use that size instead of what the theme uses now. You’ll need a child theme in order to do so.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set more tag to each post on homepage’ is closed to new replies.