You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For instance adding this at the top of a template should allow disabling of the sidebar for that template, allowing for localized control, so you don't have to dig around to find the filter that controls it for a certain template, or deal with conditionals to specifically target the template your already editing.
Just thought that may be useful in the documentation.
The text was updated successfully, but these errors were encountered:
Would it be considered bad practice to include the filter inline with a template?
add_filter( 'sage/display_sidebar', '__return_false' );
For instance adding this at the top of a template should allow disabling of the sidebar for that template, allowing for localized control, so you don't have to dig around to find the filter that controls it for a certain template, or deal with conditionals to specifically target the template your already editing.
Just thought that may be useful in the documentation.
The text was updated successfully, but these errors were encountered: