“recent posts” styling/CSS
-
First: I really appreciate the logical fashion in which you have written the div/class tags. It makes finding the right selector very simple! Thanks very much.
Configuration: Recent Posts block, list layout, h3 title, thumbnail images, 25-word excerpt, meta (date only), newest first, all categories, 4 items total.
(easy to configure in Gutenberg).Desired outcome: display on the front page of a site, styled neatly with subtle borders around each post.
Situation: it works as designed, and looks attractive, save for one minor issue.
The .wp-block-getwid-recent-posts__content-wrapper selector has an odd setting in getwid/assets/css/blocks.style.css that is causing me a problem.
Beginning at line 11, character 2636, I have the following configuration:
.wp-block-getwid-recent-posts__post-thumbnail+.wp-block-getwid-recent-posts__content-wrapper{margin-left:5%;margin-top:0;max-width:55%;width:100%}My problem: the max-width setting is causing my post excerpt to display within a shorter horizontal space. The visual effect of the “max-width:55%” setting is like I’ve applied 40 px of padding on the right hand side.
I have not been able to overcome this via the customizer.
However, using the “inspector” feature of Firefox, I found that by highlighting the ‘content-wrapper’ selector, and un-checking the max-width 55% setting, my problem went away.I was able to solve my issue by going in to the blocks.style.css file and commenting out
max-width:55%;However, I realize this is probably not ideal.1. Is there a simple way to address this in the customizer, so that the max-width setting is overridden?
2. If not, will it harm any other recent-posts functions if I comment out or delete this particular max-width setting?Thanks,
Ron JonesThe page I need help with: [log in to see the link]
The topic ‘“recent posts” styling/CSS’ is closed to new replies.