Archived topic
How to color parts of sentences with different color?
5 replies · Started by Daniel on September 16, 2020
I'm trying to make parts of my text in accordions in eg. red color but as soon as I enter the code editing and write a simple html it breaks the element and requires block recovery which just rolls back the progress.
There's no basic text editing in the gui menu. I'd also like to add bullets in the accordion - which is a plugin element, but there's no options for that either.
https://pasteboard.co/JrkP0wW.png
How can I make that work?
Hi there,
i can help with some CSS to color the accordion if you wish - which text do you want to change ? The title or the content?
Adding HTML inside the accordion - you would need to check with the plugin author as there isn't anything we can do to change its behaviour.
Hi, I'd like to change text in the brackets from the image I posted above to be to red. I tried <"div"> and custom class with CSS to color that part only but every code editing resulted in block "corruption".
Unfortunately that would also require you to be able to add HTML to the Accordion block.
Maybe this plugin would be better:
https://wordpress.org/plugins/accordion-blocks/
It looks like it supports any type of block after the Accordion title.
Then its just a case of adding CSS to style it.
I have no problem adding custom code to the block myself. By why is it so hard to make minor custom code edits with Generatepress, even with original element. Most of the time the element just results in corruption when trying to view it visually again not as raw code and it doesn't work on front end either?
I'm used to Visual Bakery plugin where these things are really easy to do with custom code.
Is this kind of stability still a work in progress for the future versions?
GeneratePress has nothing to do with this issue or the styles / limitations that plugin provides. That is the responsibility of the Plugin author.
For building pages in the Block Editor we recommend our own Block Plugin: GenerateBlocks
https://wordpress.org/plugins/generateblocks/
It provides 4 basic blocks for creating layouts and customizing Typography and Buttons. And works with the Accordion block plugin i mentioned.