How to Style WP Nav Menu

If you’re creating your own theme and use adding a menu using the standard WordPress function wp_nav_menu(), you will have to style it using CSS in order to make it like the usual navigation menu. This function will return a list of menus you defined or added in Appearance -> Menus. This looks fine if […]

How to Make Tables Sortable Using JQuery

Step 1:  Add these two jquery functions. [code] jQuery.fn.sortTable = (function(sortableRows){ table = $jx(this); $rows = ”; for($i in sortableRows) { $rows = $rows + sortableRows[$i]; if (sortableRows[$i+1] != null) { $rows = $rows + ‘, ‘; } } $jx($rows) .wrapInner(‘<span title=”sort this column”/>’) .each(function(){ var th = $jx(this), thIndex = th.index(), inverse = false; […]