Hello,
I have a problem with a style switcher using a color picker (front-end) for a wp theme. The new colors picked are apply just to the normal text (what not use cufon).
for instance:
$(‘body’).css(‘color’, $(’#text_color’).val());
I try to use all cufon classes, like .cufon-active, .cufon, .cufon-canvas, .cufon-active etc, with no chance.
I miss something? From theme admin with same body class the cufon text is changing its color, but from frontend demo color switcher…no.
Have some ideas?
thanks
But you’ll have to be sure that new CSS is loaded before calling it:
Cufon.Refresh();
isnt’t working or i am not placing where it should be. the new css styles are apply without to load the page.
$(’#mydemoformsavebutton’).click(function() {
$(‘body’).css(‘color’, $(’#text_color’).val());
});
solved. thanks.
explain please…
