sexycullen

theme 221 script part

Dec 23rd, 2020 (edited)
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. ADD THIS JQUERY SCRIPT IF YOU DON'T HAVE IT YET:
  2.  
  3. <!-- for the click and custom icons -->
  4. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  5.  
  6. FOR THE ICONS WORK:
  7.  
  8. <!-- the custom icons -->
  9. <script src="https://unpkg.com/feather-icons"></script>
  10.  
  11.  
  12. THIS PART GOES BETWEEN A <script></script> OR <script type="text/javascript"></script>. if you don't have one, you can create at the top in the <meta> tag or at the end before </html>:
  13.  
  14. // update-toggle
  15. $(document).ready(function() {
  16. $(".toggle-content").hide();
  17. $(".toggle-link").click(function(event) {
  18. event.preventDefault();
  19. $(this).next(".toggle-content").slideToggle(500);
  20. });
  21. });
  22.  
  23. // feather icons (custom icons)
  24. feather.replace();
Advertisement
Add Comment
Please, Sign In to add comment