Causing SSS to load "open" only one page

Author
Topic
#3248

I am creating a new topic in case my question under the previous topic “Using jQuery for specific page action” is missed.

As mentioned, I am able to hide the drawer on one page once I used correct syntax for is_page. I now want to cause the drawer to open on load only on the home/front page. So I am testing the use of the same is_page method, and the script I have created does show up. But it doesn’t reverse the action, meaning the drawer remains closed on load. Is there a correct script to use?

Page = http://www.rosssolargroup.com If you look at the bottom you see the script is added.

Test code:

 <?php if(is_page( 429 )): ?>
		<script type="text/javascript">jQuery(document).ready(function($) {jQuery("#sss-sidebar-source-div-1").openOnLoad("true");});</script>
			
		<?php endif; ?> 

Thanks, John

Viewing 2 replies - 1 through 2 (of 2 total)
Author
Replies
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Causing SSS to load "open" only one page’ is closed to new replies.