Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- ( function( $ ) {
- $( document ).ready( function() {
- $.fn.swapWith = function( that ) {
- var $this = this;
- var $that = $( that );
- // create temporary placeholder
- var $temp = $( "<div>" );
- // 3-step swap
- $this.before( $temp );
- $that.before( $this );
- $temp.after( $that ).remove();
- return $this;
- }
- var project = $( ".wpc-portfolio .et_pb_portfolio_item" );
- project.each( function() {
- var title = $( this ).find( ".et_pb_module_header" ),
- meta = $( this ).find( ".post-meta" );
- $( title ).swapWith( meta );
- } )
- } );
- } )( jQuery );
- </script>
Advertisement
Add Comment
Please, Sign In to add comment