I have just started creating a new website and have setup theme styling for primary buttons and spacing for sections etc, all was completely fine and all of a sudden i made a change, saved it and the button and spacing is being ignored on the front end but showing correctly in the builder.
Have flushed all cache, regen css, disabled all plugins etc and still won’t add the theme styling but if i add the padding to the element directly it then it shows correctly. Changed the Theme styles: Loading method but no change either.
I am having the same issue described by jdp for a new website build. Some of the theme styles are being ignored, in my case section top and bottom padding and container width and content alignment. Initially all styles were applied in the builder but not on the front-end, as reported by jdp.
So I tried to regenerate the variables and then eliminate and redo my theme settings. Not sure if this redo was the trigger but now all the settings are ignored even within the builder.
If I apply the same settings directly to an element, they are correctly applied.
I am unable to give you the steps to reproduce the issue because the behavior of the builder has changed on the run.
Hi Stefania,
Your complementary variable is not closed correctly (the closing bracket is missing), which will likely cause the subsequent styles to be ignored:
Although this means that bricks may be producing incorrect json code?. I did not edit anything manually, what you got was just a file exported from the theme styles panel. To me this is indeed a bug. I can of course correct the json and reimport it (I hope it solves the issue), but then this would just be a workaround.
Although you exported the settings from the Theme Styles panel, could you please confirm that the variable’s closing parenthesis is present in the builder?
I tried to reproduce the issue on my end. When I select a global variable for the secondary color, the closing parenthesis is included correctly, and the theme works as expected.
Hello Abd, I just checked the color palette variables and indeed the variable mentioned by Stefan was not closed correctly. I have now corrected the variable name without reimporting the json and will test it right away.