Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Less Plugin
#8
(2014-03-26, 23:54:11)Oleg06 Wrote: I created a field of type image, and the code is generated
Code:
#tekstovyj-blok-39 {
  background-image: url(http);
}

This seems to be a problem/feature of the lessPHP compiler and a ":" in the string. You can work around it by adding quotes around the string field, e.g.
Code:
get_less_css('background.less', array('image'=>'"'.return_custom_field('image', '').'"'), true);
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Less Plugin - by mvlcek - 2014-03-26, 07:04:48
RE: Less Plugin - by Oleg06 - 2014-03-26, 17:42:03
RE: Less Plugin - by mvlcek - 2014-03-26, 18:51:42
RE: Less Plugin - by Oleg06 - 2014-03-26, 20:28:15
RE: Less Plugin - by mvlcek - 2014-03-26, 20:41:40
RE: Less Plugin - by Oleg06 - 2014-03-26, 21:12:55
RE: Less Plugin - by Oleg06 - 2014-03-26, 23:54:11
RE: Less Plugin - by mvlcek - 2014-03-27, 04:20:20
RE: Less Plugin - by morvy - 2014-04-04, 23:14:15
RE: Less Plugin - by mvlcek - 2014-04-05, 01:09:55
RE: Less Plugin - by mvlcek - 2014-07-12, 18:21:11
RE: Less Plugin - by cvrglj - 2015-07-10, 21:42:01
RE: Less Plugin 2022 PHP8.1 - by jofer - 2022-12-19, 03:08:10



Users browsing this thread: 1 Guest(s)