brooklyndesignstudio

Open Toggles From Any Page With Anchor Links

Jun 23rd, 2020
1,175
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- Open Toggles From Any Page With Anchor Links -->
  2. <script type="text/javascript">
  3. (function($){
  4. $(window).load(function(){
  5. var et_hash = window.location.hash;
  6. if(window.location.hash) {
  7. $( '.et_pb_toggle' + et_hash )
  8. .removeClass('et_pb_toggle_close')
  9. .addClass('et_pb_toggle_open')
  10. }
  11. });
  12. })(jQuery)
  13. </script>
RAW Paste Data