WordPress.org

Ready to get started?Download WordPress

Forums

Custom CSS Manager
[resolved] Bug Saving Unicode Escape Sequences (2 posts)

  1. CrouchingBruin
    Member
    Posted 7 months ago #

    I tried adding the following CSS in an attempt to add the unicode character for a double right arrow at the end of certain menu links:

    .sub-menu .has-sub-menu a:after {
      	content: "\00BB";
      	display: inline-block;
      	float: right;
    }

    Unfortunately, the plugin doesn't store the \0 properly, which causes the rest of the CSS that follows to not be read. I know this is valid CSS because I stuck it into one of my theme's CSS files and it worked correctly.

    http://wordpress.org/plugins/custom-css-manager-plugin/

  2. CrouchingBruin
    Member
    Posted 7 months ago #

    OK, I found a work-around, and it actually came to me as I tried to post my example CSS above. The forum software wouldn't save the slash 0 (\0) even when it was enclosed by tick marks; what I had to do to get it to display was put two backslashes and two zeros to get one slash zero. So that led me to try adding an extra backslash at the beginning of my escape sequence, and now this works:

    .sub-menu .has-sub-menu a:after {
      	content: "\\00BB";
      	display: inline-block;
      	float: right;
    }

Reply

You must log in to post.

About this Plugin

About this Topic