Wordpress风格选择器?

时间:2013-12-31 11:23:08

标签: php html wordpress wordpress-plugin

我想了解http://theme-fusion.com/avada/样式选择器。

访客可以更改背景,布局。等

有插件吗?或者一些剧本。

如何开发使用wordpress

1 个答案:

答案 0 :(得分:0)

这只是2个CSS样式表,用户可以通过一些JS来切换。

$('select').change(function (){
  var newCSS = $(this).val();
  if(newCSS == "style2"){
     $('link[href="style1.css"]').attr('href','style2.css');
  }
  else {
     $('link[href="style2.css"]').attr('href','style1.css');
  }
});

您不需要WP插件来执行此操作。