432 posts
  • Has been a member for 4-5 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Bought between 50 and 99 items
  • Referred between 1000 and 1999 users
  • Europe
  • Sold between 10 000 and 50 000 dollars
  • Envato Studio (Microlancer) Beta Tester
readactor says

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

814 posts
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Serbia
  • Has been a member for 5-6 years
rvision_ says

But you’ll have to be sure that new CSS is loaded before calling it:

Cufon.Refresh();

432 posts
  • Has been a member for 4-5 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Bought between 50 and 99 items
  • Referred between 1000 and 1999 users
  • Europe
  • Sold between 10 000 and 50 000 dollars
  • Envato Studio (Microlancer) Beta Tester
readactor says

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());

});

432 posts
  • Has been a member for 4-5 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Bought between 50 and 99 items
  • Referred between 1000 and 1999 users
  • Europe
  • Sold between 10 000 and 50 000 dollars
  • Envato Studio (Microlancer) Beta Tester
readactor says

solved. thanks.

56 posts
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
  • Exclusive Author
  • Europe
ThemeManiac says

explain please…

by
by
by
by
by
by