EduardET

Untitled

Jun 15th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. (function ($) {
  3.     $(document).ready(function () {
  4.         function settitlelink(module, link) {
  5.             var module_link = module.find('.module-head h1 a');
  6.             console.log(module_link);
  7.             module_link.attr('href', link);
  8.         }
  9.         /*Set the link to be https://elegnatthemes.com for the module with the CSS class of wpc-projects-module*/
  10.         settitlelink($('.wpc-projects-module'), 'https://elegantthemes.com');
  11.  
  12.         /*Set the link to be https://facebook.com for the module with the CSS class of wpc-other-module*/
  13.         settitlelink($('.wpc-other-module'), 'https://facebook.com');
  14.     });
  15. })(jQuery);
  16. </script>
Advertisement
Add Comment
Please, Sign In to add comment