WordPress.org

Ready to get started?Download WordPress

Forums

Q2W3 Fixed Widget (Sticky Widget)
Exclude from HOME PAGE! (5 posts)

  1. andrilio
    Member
    Posted 3 months ago #

    Hey guys! Love your widget! I have a problem though.

    How can I exclude the sticky option from the home page?

    https://wordpress.org/plugins/q2w3-fixed-widget/

  2. Max Bond
    Member
    Plugin Author

    Posted 3 months ago #

    Hello!

    Try this solution:

    Open home page template file.
    Add function
    <?php remove_action( 'wp_footer', array( 'q2w3_fixed_widget', 'action_script' ) ); ?>
    right before
    <?php wp_footer(); ?>

    If there is no separate home page file use is_home() function:
    <?php if ( is_home() ) remove_action( 'wp_footer', array( 'q2w3_fixed_widget', 'action_script' ) ); ?>

  3. mackaaij
    Member
    Posted 2 months ago #

    I use WooThemes Canvas with a slider on the homepage. Q2W3 somehow doesn't play nice together with it so my slider was gone.

    I tried to exclude Q2W3 from my homepage as a workaround using this code in a child theme functions.php but it didn't work.

    Any idea?

  4. Max Bond
    Member
    Plugin Author

    Posted 2 months ago #

    mackaaij!

    First try to enable "Use jQuery(window).load() hook" option.
    If no change use method described above.
    But, it will not work from functions.php file, because of it's early initialization. User frontpage or homepage template file if it present. If not use index.php

  5. Bike
    Member
    Posted 1 month ago #

    Use the http://wordpress.org/plugins/plugin-organizer/ plugin and disable it anywhere you want :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.