Cannot Change Font Color

lai Member
edited November 2023 in General support

Sorry if this has been asked before. Have really searched but couldn't find any info on it.

How can we change the font color in the Gallery Description or in ZenPage for that matter?

Have tried with the style=color red tag within a paragraph.
Well it works in the preview (can see font as red), but whenever trying to save it always results in:
"403 Forbidden Access to this resource on the server is denied!"

Tried using TinyMCE 4.x. All the editing options are there - just no font color changing option.
Editing in source code results in the same error.
Weirdly, my old installation with TinyMCE 1.3.1 has this option and works fine.

Any ideas how to do it correctly?
Does it have to do with modifying the custom.css? If so how? 🙇🏻

Comments

  • acrylian Administrator, Developer
    edited November 2023

    Have tried with the style=color red tag within a paragraph.

    You did add this correctly like this?

    <p style="color:red">…</p>

    That should actually work with or without TinyMCE. But besides that indeed even the full configuration does not include the color option. We'll add it there with the next update. It was probably not added because usually the theme controls the general colors via CSS.

    But you can create your own TinyMCE configuration file: https://www.zenphoto.org/news/how-to-create-custom-tinymce-configurations/

  • Yes, added the code exactly like that. Will result in the 403 error.
    And it's the same no matter what theme I use.

    Trying to look into the TinyMCE config file, but doubt it will work because doing it in TinyMCE's 'source code' option gives the same error.

  • acrylian Administrator, Developer
    edited November 2023

    but doubt it will work because doing it in TinyMCE's 'source code' option gives the same error.

    Well, you have to do it in the source code view in any case. Otherwise TinyMCE treats it as text. I just tried it on our own site and had no problems with inline CSS. If you get errors on saving there is something else really wrong on your install. Review the debuglog.

    And anyways, next version will have font color in the full config file variant.

  • Many thanks acrylian.
    Realized the problem was with my hosting's Modsecurity. Disabled it and the error is gone. Color works now.

    Looking forward to the next version.

  • acrylian Administrator, Developer

    Ah, yes, modsecurity and its config especifially is notorious for causing unwanted/unnecessary trouble. Glad it worked out!

Sign In or Register to comment.