Can no longer manually remove borders
-
I used to be able to remove the hideous, automatically generated, thin gray borders around images by adding style=”border:0 currentColor;” to the HTML. Now that generates the error message, “This block contains unexpected or invalid content,” as does any other command.
I cannot afford to purchase the rights to edit the CSS and would simply like to continue removing these obscene automatically generated borders (and why would that ever be the default?) manually. Thank you. -
Hey there!
No worries, the “This block contains unexpected or invalid content” error is common when a faulty code is added. After reviewing the code you provided, it seems that inheriting a color for a border set to zero isn’t necessary. So, you can safely remove the “currentColor” code.
If you’re still facing the issue, there’s a support topic available with additional solutions you can try.
Feel free to reach out if you need further assistance. Have a fantastic day!
-
“After reviewing the code you provided, it seems that inheriting a color for a border set to zero isn’t necessary. So, you can safely remove the “currentColor” code.”
I’m not sure what this means and the provided link doesn’t address removing borders. I don’t know anything about coding but the prior solution was at least simple enough for me to apply. The image HTML reads:
<figure class=”wp-block-image size-large”><a href=”https://blogname.files.wordpress.com/2023/06/img_9975-1.jpg”><img src=”https://blogname.files.wordpress.com/2023/06/img_9975-1.jpg?w=1024″ alt=”” class=”wp-image-7100″/></a></figure>
Is there no longer a simple command I can insert to remove the border?
-
So found the most patchwork workaround imaginable by hijacking an old draft I never published, copying it over with my new blog post, and manually changing the images to my new image sources. style=”border:0 currentColor;” still works there. So guess my question as I now understand it is: Is there a way to insert images in new posts without them being formatted as blocks? As I can’t find any way to change the HTML of a block to omit borders, nor can I find instruction on this anywhere … including in the above answer.
I am not going to pay over $100 to edit the CSS when this is the only aspect of the design I want changed. But nor am I going to endure those hideous borders, and I will soon run out of old drafts to hijack. I am already paying for a domain name to avoid offensive ads, and it took three days to be told that’s not enough to get a direct answer to a question. I can only post here and get a non-answer. So in sum, seems what I’m being told is: Go to Substack. -
Since you haven’t shared your website link, we don’t know what theme you are using, so this is a bit of a stab in the dark.
If you are using the block editor when writing a post, did you try the HTML block? Alternatively, you might try the Classic Block? (Both those blocks were sort of mentioned in the support guide that the other forum volunteer linked to.) As a last ditch option, you might consider writing using the Classic Editor while it’s still available via WP Admin.
FWIW, if you have a Personal plan you are also eligible for direct support via email. Any other annual paid upgrade plan includes Live Chat. You can access your support options by clicking the Contact Support button and filling out the form at https://wordpress.com/help/
Hope that also helps. Best wishes.
-
- The topic ‘Can no longer manually remove borders’ is closed to new replies.