pigallery2 icon indicating copy to clipboard operation
pigallery2 copied to clipboard

Custom HTML Head no longer working to use for custom CSS because of <Script> tags

Open kardo22 opened this issue 2 years ago • 2 comments

Hi,

I was using the "Custom HTML Head" in previous versions of Pigallery2 to apply custom css. This no longer works because in the new version of Pigallery2 because there is a static added to whatever is put inside the "Custom HTML Head" and the browser will not understand

Possible solution would be to add another field called "Custom CSS" to the options page?

kardo22 avatar Feb 16 '23 09:02 kardo22

workaround for now is simply add

kardo22 avatar Feb 16 '23 11:02 kardo22

Hi, I had to wrap it within script tags because of some angular webpack issue (if I recall correctly). I'm sure there is a solution to that. Feel free to play around with it. I did not wanted to spend too much time on it as I feel this is not a heavily used feature.

In #587 I plan to finally work on a dark theme, that will also allow creating custom themes, adding custom css code

bpatrik avatar Feb 24 '23 07:02 bpatrik