Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Last active February 28, 2019 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carmoreira/5e047882dfb3a9fcb267f23a83140a6d to your computer and use it in GitHub Desktop.
Save carmoreira/5e047882dfb3a9fcb267f23a83140a6d to your computer and use it in GitHub Desktop.
change position of custom field in team showcase
jQuery(document)
.ready(function() {
ts_move_cell(".tshowcase-box-info");
ts_move_cell(".tscontent");
})
.ajaxSuccess(function() {
ts_move_cell(".tshowcase-box-info");
ts_move_cell(".tscontent");
});
function ts_move_cell(selector) {
jQuery(selector).each(function() {
var cell = jQuery(this).find(".ts-cell");
var tel = jQuery(this).find(".tshowcase-single-telephone");
if(cell.length > 0){
cell.insertAfter(tel);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment