EduardET

change the position of the social icons on single post

Feb 8th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. ( function( $ ) {
  3.     $( document ).ready( function() {
  4.         setTimeout( function() {
  5.             var singlePostIcons = $( '.single .et_social_inline.et_social_mobile_on.et_social_inline_bottom' ),
  6.                 customText = $('#custom-text'),
  7.                 insertAfter = $( '.et_pb_section_0 .et_pb_row_0 .et_pb_column_2_3 > div:last-child' );
  8.             singlePostIcons.detach();
  9.             customText.detach();
  10.             singlePostIcons.insertAfter( insertAfter );
  11.             customText.insertAfter(singlePostIcons);
  12.         }, 100 )
  13.     } );
  14. } )( jQuery );
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment