Author
Reply
-
johno413
MemberSeptember 13, 2016 at 7:47 am #3246I used your suggestion, but I am still “breaking” the plugin instead of modifying the action on one page. I added the following to my footer.php file. The page I want to “hide” the drawer on is post=2286, but when I add this code the drawer disappears on all pages.
<?php if(is_page( 2286 ): ?> <script>jQuery(document).ready(function($) {jQuery("#sss-sidebar-source-div-1").smartTabDrawer("hide");});</script> <?php endif ?>I added it both immediately before the wp_footer call and immediately after it. In both cases, it stops the entire loading of the footer which includes your script which runs just before closing BODY. And there is no </body> when adding this code. If you have any more insight into how to specify the hide action, I appreciate it. I have used the is_page before on this theme, so I expect it to work again. Thanks, John
