Last active
February 28, 2019 23:47
-
-
Save carmoreira/5e047882dfb3a9fcb267f23a83140a6d to your computer and use it in GitHub Desktop.
change position of custom field in team showcase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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