waltorious
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Lovecraft] Reduce space between title and body of postsOK, adding the following to individual images on my newer posts fixed the alignment for those:
style="margin-bottom: 1.7em;"
So now all my existing posts look correct, and the global settings are such that new posts should work automatically.
Thanks for your help! I’m marking this as resolved since your answer about adjusting the space between the post header and post content was exactly what I was looking for. Do let me know if there’s a more elegant way to fix image alignments than my hodge-podge solution, though.
Forum: Themes and Templates
In reply to: [Lovecraft] Reduce space between title and body of postsOK, I figured out that there was a margin set in the alignment classes which was causing images to have too much space around them in my old posts. Adding the following in the extra CSS fixed it (this may not be the best way to do it, please tell me if I’m doing something dumb!):
.alignnone, .aligncenter, .alignwide, .alignfull { margin: 0em auto; }
(the margin setting used to be 2.5em for all of those)
This fixes images in my older posts but leaves too little space between images and text in newer posts. But that’s only a few posts so they’ll be easy to fix individually I think. My plan is to try to manually add margins on each image for those posts. Please let me know if there’s an easier way to do it.
By the way, my images all use aligncenter, but the theme had all four of these alignments set with the same margin setting. Perhaps one way to fix images in newer posts is to use a different alignment class for them. Like maybe I can use alignwide but set the width such that it looks just like aligncenter? I’ll mess around some more tomorrow.
- This reply was modified 3 years, 7 months ago by waltorious.
Forum: Themes and Templates
In reply to: [Lovecraft] Reduce space between title and body of postsAnders,
Thanks, that code for adjusting the spacing between the post header and post content worked perfectly!
As for the second question, I wonder if there’s an easier way to fix it than doing a find-replace in the posts themselves. My old theme did not have any space at all between images and text, which is why I put an extra blank line before and after images. The Lovecraft theme, however, seems to add extra space before and after the images, such that my old posts now look weird (here’s an example: https://waltoriouswritesaboutgames.com/2020/10/14/keeping-score-transistor/). Is it possible to set the theme to not add any space around images? A global setting like that would be much easier than having to edit all the individual posts.
Thanks in advance!
Walter
Forum: Themes and Templates
In reply to: [Lovecraft] date and author displayI’m trying to do a similar thing. The code you posted clears the author and date but not the category. I’d like to keep the date, but remove the author and category. How should I modify the code to do that?
Thanks, I’m new to this and appreciate the help.
EDIT: some further searching turned up the following code, which works for me when removing the category:
.post-meta p.post-categories { display:none; }
I decided to keep both author and date in the end, but I wanted the category gone so this works well for me.
- This reply was modified 3 years, 7 months ago by waltorious.
- This reply was modified 3 years, 7 months ago by waltorious.