Advertisement
Aurangajeb

Make the WPUF Social Link position top

Feb 22nd, 2021 (edited)
1,044
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.50 KB | None | 0 0
  1. /*
  2. * Make the WPUF Social Link position top. Before the login form.
  3. * http://prntscr.com/103zcrt
  4. */
  5.  
  6. /*CSS Method*/
  7. #wpuf_social_link {
  8.     position: absolute;
  9.     top: 0;
  10.     right: 0;
  11. }
  12.  
  13. /*JS Method*/
  14. /**
  15. * Know more about JS prepend and append function
  16. * https://www.w3schools.com/jquery/html_append.asp
  17. * https://www.w3schools.com/jquery/html_prepend.asp
  18. **/
  19. jQuery(document).ready(function( $ ) {
  20.     $("#wpuf_social_link").each(function() {
  21.         $(this).parent().prepend(this);
  22.     });
  23. });
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement