Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Max Bond

    (@max-bond)

    Is there any simple way to allow for this?

    Unfortunately there is no simple way, only hard way:

    First, activate plugin. Apply settings, select widgets to fix. Then open your public page html source code. Find and copy plugin javascript entries (one in the head section and one at the page bottom). You’ll find them fast by searching “q2w3” keyword.
    Second, deactivate plugin, but not delete it. Manually add javascript to target pages.

    Here is init code example:

    <script type="text/javascript">
    jQuery(document).ready(function(){
      var q2w3_sidebar_1_options = { "sidebar" : "sidebar-1", "margin_top" : 10, "margin_bottom" : 130, "screen_max_width" : 0, "widgets" : ['q2w3_inc_manager_widget_31-2'] }
      setInterval(function () { q2w3_sidebar(q2w3_sidebar_1_options); }, 2000);
    });
    </script>

    All options could be easely changed!

    To simplify code insert use Code Insert Manager plugin.

    Thread Starter Daniel McClure

    (@danielmcclure)

    Thanks for such a prompt and detailed response. For anyone else viewing this it’s important to note you don’t deactivate the plugin but rather you deselect any widgets using the checkbox after completing the instructions.

    I added this custom function to the themes functions.php and made it echo to the head to automatically manage the process for all page templates:

    function custom_fixed_widget() {
    	if(is_single()) {
    		?>
    			<!-- Script Version 1 -->
    		<?php } else { ?>
    			<!-- Script Version 2 -->
    		<?
    	}
    }
    Plugin Contributor Max Bond

    (@max-bond)

    For anyone else viewing this it’s important to note you don’t deactivate the plugin but rather you deselect any widgets using the checkbox after completing the instructions.

    Yes, you are right! In this case you need to insert init code only.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Allowing for multiple page layouts?’ is closed to new replies.