Hi, Most settings are handled very well to show my site styling in the editor. But I have a specific issue that I just cannot find a solution for.
Links are in a specific color (blue), but sometimes I want to make a block with that same blue color background. Links in this block need to be another color of course otherwise you cannot see them. I can handle this in the css so it looks good on the site, but in the editor the color remains the same.
I tried adding it to editor-style.css but no result.
I’m not sure what block you are using. The issue is that the link on that block was created in a way that is incompatible with your website’s color system. You may want to consider using a different block or adjusting the site’s primary color to avoid any conflicts with the color of the link. It is not really an issue on the theme or WordPress, it is related to design and choosing color.
In this case, you must manually adjust the link color using custom CSS or styling options based on your website’s conditions. Or if you have a general custom CSS that affects all links, you need to check them(Without a live URL for that section, it is impossible to determine the source of the styling); in a fresh installation and without any customization, it is working well on my end: https://postimg.cc/Yv2K1BSV.
Thanks for your reply. But I am afraid I don’t make myself and my issue clear. So a new attempt!
I know that the issue is in CSS, therefore I have edited the CSS so it works okay in the frontend (see the 2nd image).
But I want to edit the css of editor style as well so it also works okay in the editor.
It is a normal paragraph block, that I give a background-color from the colors needed in this design. Unfortunately that color is the same as the standard link-color so it is a p with a class .has-blue-background-color
I can change the color of the link in the front-end in the css by telling that a link in a p (or a div etc) that has a blue blackground to not be blue but dark gray.
So far so good.
But: this part of css does not effect the editor, so there the link is still blue and therefore invisible, making it hard to edit.
So my question is: Is there a way I can change the editor-style in my OceanWP child-theme.
This reply was modified 2 years, 6 months ago by omniafausta.