XF 2.0 Adding custom style property issue

Sean James

Well-known member
Hey all!
Ive created a custom style property called 'bpskins-headercolor2'

Then in my extra.less template I added this:

Code:
.p-header {
    background-color: @bpskins_headercolor2;
}

But I keep getting this yellow error message on my forum.

Errors occurred when rednering CSS:
* public:extra.less: variable @bpskins_headercolor2 is undefined in file anonymous-file-739.less in anonymous-file-739.less

Thank you!
 
You'd use this if it was a custom property color picker:

Code:
.p-header { background-color: @xf-bpskins_headercolor2; }

If it's a CSS style property and you'd want to pull JUST the background color out of it:

Code:
.p-header {  background-color: @xf-bpskins_headercolor2--background-color; }

Or if you want to pull an entire property...

Code:
.p-header
{
    .xf-bpskins_header();
}
 
Top Bottom