Show/hide the primary sidebar. Also removes all core Wonderflux CSS surrounding the sidebar, along with setting the main content area to full width.

Default value


Accepted values

Text string: Y or N


//Example 1
//Simple example in your child theme functions.php file:
add_filter ('wflux_sidebar_1_display','wfx__N');

// Example 2
//Conditional example in your child theme functions.php file:
// Only run filter if view is page
function my_wfx_example_function() {
  if ( is_page() ) :
    add_filter ('wflux_sidebar_1_display','wfx__N');
add_action ('template_redirect','my_wfx_example_function', 1);


This filter will over ride the options set in the Wonderflux ‘Style Lab’ options screen, allowing for ‘per location’ conditional control within any page of your website.

Use the Wonderflux core functions wfx__Y() and wfx__N() to save you creating unnecessary functions to return a value to the filter.

This filter documentation was last modified on: September 20, 2011 by Jonny