Advertisement
hendrajeg

Override login link

Dec 13th, 2022
1,836
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.66 KB | None | 0 0
  1. /* Change Link of Login/Register Button and Comment Login */
  2. (function($) {
  3.     $(document).on('ready', function() {
  4.         var accountLink = $('.jeg_accountlink').find('li')
  5.         accountLink.find('.jeg_popuplink').off()
  6.         $(accountLink[0]).find('a.jeg_popuplink').attr('href', 'https://yoursite.com/login/') /* Login */
  7.         $(accountLink[1]).find('a.jeg_popuplink').attr('href', 'https://yoursite.com/register/') /* Register */
  8.  
  9.         var commentLink = $('.comment-login')
  10.         commentLink.find('.jeg_popuplink').off()
  11.         $(commentLink).find('a.jeg_popuplink').attr('href', 'https://yoursite.com/login/') /* Comment Login */
  12.     })
  13. })(jQuery)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement