johno413

johno413

@johno413

Viewing 9 replies - 1 through 9 (of 9 total)
Author
Replies
  • in reply to: Causing SSS to load "open" only one page #3249

    I apologize. I found your jQuery script and it is working fine. It opens only on the home page, and loads closed otherwise.

  • in reply to: Using jQuery for page specific action #3247

    I got my syntax correct and the is_page is now working when I add it AFTER the wp_footer call.

    If I want to make an exception for having the drawer OPEN on load, do I follow the same protocol? I tried using the same is_page for the other page where I want the drawer to open on load, but it stays closed. Looking at the page, the script appears but it doesn’t cause the drawer to open. You can see it on the home page http://www.rosssolargroup.com

    Script I added:

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

    Is there another way to reverse the “false” to “true” on page load?

  • in reply to: Using jQuery for page specific action #3246

    I 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

  • in reply to: Using jQuery for page specific action #3243

    I understand the correct structure. I am leaving it incorrect because is “breaks” the action on the page and causes the sidebar to not appear. Same effect as “hide.”

    Since your plugin loads AFTER the footer and just before </body> </hmtl> I have not been able to set my script to run AFTER your script runs. I tried setting a high priority number but it didn’t run after yours. So, as you said before, the “hide” request is without meaning because the default script to “show” runs last.

    If you have a suggestion how to run last in priority it would be helpful. That was my request.

    Thank you.

  • in reply to: Using jQuery for page specific action #3241

    I am still struggling to get the custom jQuery code to load after your plugin. You load just before </body> </html>

    Even trying to load with the footer doesn’t work. Do you have a tip?

    Is a second approach to set your plugin to “custom” and add the specific script for load/hide/open/close to each page?

    Thanks for the help.
    John

  • in reply to: Using jQuery for page specific action #3220

    Thank you for the correction. I did it deliberately just to stop the sidebar from working.

    Do you have any insight into ways or tricks to make the jQuery script load last? As you can see, I am able to make it load. But your plugin loads later. I tried adding the action (wp_enqueue_script) to functions.php with the action called only for the page ID. Which seems to load it. But at the wrong time.

    Thanks for any further insight.

  • in reply to: Smart Sidebar Slider not adjusting size #3124

    Thanks.

    For what it’s worth, I have spoken to a few other people who do more website development than I do. Their opinion is that the trend in the industry is to not put too much effort into making landscape orientation work for input fields. With most devices running mobile OS, the keyboard takes up so much space that only a little slit is left to view the website on fields on a form. Tablets may be an exception, but they also render closer to what displays on a desktop.

    For now we will simply expect a site visitor to be using portrait mode for any input.

  • in reply to: Smart Sidebar Slider not adjusting size #3122

    As an update, I am able to satisfy my client’s needs with the current settings as I type this with one exception. It never works with two Android phones or an iPhone I am testing with when they are oriented in landscape. I can reload the pages, but the sidebar doesn’t change height. Width is acceptable. I experimented allowing the container to adjust to “full size”, but that did not improve the landscape/mobile results. It currently remains set to allow “full size.”

    Forcing a form scroll is not an issue, so if there is a way to have the sidebar better adjust to a landscape orientation that is what I need.

  • in reply to: Smart Sidebar Slider not adjusting size #3121

    Thanks for that reply. Is there at least a setting to adjust to control how much it changes in size for mobile? It doesn’t seem to adjust as much as the site theme does. I am comparing the size of the tab and container text versus the body text of the pages.

    Right now my only options appear to be to resize the container and the tab so that it will work on both but require people to scroll in all cases. That is, the form will be larger than the container even on a full desktop screen. This is the site. It may be changed by the time you click.

    Thanks,
    John

Viewing 9 replies - 1 through 9 (of 9 total)