Title: Issue: Custom CSS styles
Last modified: September 16, 2020

---

# Issue: Custom CSS styles

 *  Resolved [armarius](https://wordpress.org/support/users/armarius/)
 * (@armarius)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/issue-custom-css-styles/)
 * With “Custom CSS styles” I mean the option “Adv. Gutenberg” => “Custom CSS styles”
   for example “Blue message” or “Left Block”.
 * When I add a style attribute with quotation marks like >"< or >'< for example
   as ‘content: "Phone";’ or “background-image: url(“[https://example.com/yourimage.png&quot](https://example.com/yourimage.png&quot););”
   it will be html 4.1 encoded like “\&quot;”. I thnink there is an overdoing safety
   algorithm wich encode all data with “htmlentities([…], ENT_HTML401) or something
   like that.
 * I think there are two solutions.
 * 1st. Don’t do any encoding and only warn the user if some special chars are inside
   like “<” or “>”.
    2nd. Implement an option wich control encoding yes or no for
   all or each style.
 * One additional suggestion for future releases, add a placholder like “/*[class-
   name]*/” wich is replaced by the class name of the style. So I can write:
 *     ```
       /*[class-name]*/ {
           margin-left: 1em;
       }
   
       /*[class-name]*/::before {
           content: "phone:";
       }
       ```
   
 * The special form is to solve errors with typos like “/*[clas-name]*/” or “/*[
   classname]*/”. It will be only CSS-commands and ignored so for example “/*[clas-
   name]*/.strong” is parsed as “.strong”.
 * Hope you understand the issue and suggestion.
    -  This topic was modified 5 years, 8 months ago by [armarius](https://wordpress.org/support/users/armarius/).
    -  This topic was modified 5 years, 8 months ago by [armarius](https://wordpress.org/support/users/armarius/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [htmgarcia](https://wordpress.org/support/users/htmgarcia/)
 * (@htmgarcia)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/issue-custom-css-styles/#post-13416499)
 * Hi [@armarius](https://wordpress.org/support/users/armarius/),
    may you share
   the style you’re having problems with? Also an screenshot to see how it looks
   in your end may clarify your concern. ___ Regards
 *  Plugin Author [htmgarcia](https://wordpress.org/support/users/htmgarcia/)
 * (@htmgarcia)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/issue-custom-css-styles/#post-13495982)
 * Note: custom styles are designed to support classnames as selectors.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Issue: Custom CSS styles’ is closed to new replies.

 * ![](https://ps.w.org/advanced-gutenberg/assets/icon-256x256.png?rev=3393761)
 * [PublishPress Blocks - Block Controls, Block Visibility, Block Permissions](https://wordpress.org/plugins/advanced-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-gutenberg/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [htmgarcia](https://wordpress.org/support/users/htmgarcia/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/issue-custom-css-styles/#post-13495982)
 * Status: resolved