zebra-stripe
プラグインをwordpress
ページに追加しようとしています。Wordpress Tablesorter初心者向けのZebraストライププラグイン
ゼブラストライピングを行うには、次のコードをどこに配置するかわかりません。
誰でも正しい方向に向けることができますか?ありがとうございました!
$(function() {
// call the tablesorter plugin
$("table").tablesorter({
theme: 'blue',
// initialize zebra striping of the table
widgets: ["zebra"],
// change the default striping class names
// updated in v2.1 to use widgetOptions.zebra = ["even", "odd"]
// widgetZebra: { css: [ "normal-row", "alt-row" ] } still works
widgetOptions : {
zebra : [ "normal-row", "alt-row" ]
}
});
});