Title: ID reference prefixed
Last modified: September 6, 2021

---

# ID reference prefixed

 *  [woakley](https://wordpress.org/support/users/woakley/)
 * (@woakley)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/id-reference-prefixed/)
 * Awesome to see an update to this plugin!
 * Entering this in a less file:
    `clip-path: ~"url(#myClip)";`
 * Results in:
 * > clip-path: url([https://example.com/wp-content/themes/theme/assets/css/#myClip](https://example.com/wp-content/themes/theme/assets/css/#myClip));
 * Can this be fixed/changed please?
    -  This topic was modified 4 years, 8 months ago by [woakley](https://wordpress.org/support/users/woakley/).

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

 *  [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * (@pixelbart)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/id-reference-prefixed/#post-14842398)
 * Hi [@woakley](https://wordpress.org/support/users/woakley/)
 * What should myClip contain? Since it is in the URL, the ID is automatically pulled.
   If you want to store certain things in LESS, do you need to use variables or 
   mixins?
 * Greetings Kevin
 *  Thread Starter [woakley](https://wordpress.org/support/users/woakley/)
 * (@woakley)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/id-reference-prefixed/#post-14842457)
 * Basically less shouldn’t process this at all, it should keep the value
    `url(#
   myClip)` and not add anything to it
 * It’s not a file reference it’s just an ID.
 *  [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * (@pixelbart)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/id-reference-prefixed/#post-14843247)
 * [@woakley](https://wordpress.org/support/users/woakley/)
 * I have now looked at the parser from wikimedia that is used for parsing LESS.
 * I think it’s because your ID is matched with the following regex:
 * `/\\G#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/`
 * So the value is parsed differently than it should. Have you tried this with an
   ID longer than 6 characters?
 * WP-Less uses the libraries from wikimedia (since 1.9.0), so this is more a bug
   from there and not from WP-Less.
 * Greetings Kevin
 * Rel: [https://github.com/wikimedia/less.php/blob/main/lib/Less/Parser.php#L1241](https://github.com/wikimedia/less.php/blob/main/lib/Less/Parser.php#L1241)
 *  Thread Starter [woakley](https://wordpress.org/support/users/woakley/)
 * (@woakley)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/id-reference-prefixed/#post-14843571)
 * Thanks Kevin
 * I will try asking them.

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

The topic ‘ID reference prefixed’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-less.svg)
 * [WP-LESS](https://wordpress.org/plugins/wp-less/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-less/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-less/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-less/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-less/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-less/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [woakley](https://wordpress.org/support/users/woakley/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/id-reference-prefixed/#post-14843571)
 * Status: not resolved