Genesis and WordPress Tutorials
by Sridhar Katakam 2 Comments Favorited: 0 times
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
Find my tutorials helpful and wish to donate?
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.
Hi thanks for your tutorial, i’m trying to remove all the sidebar, i tryed with:
add_action(‘template_redirect’, ‘remove_sidebar_on_mobile’);
function remove_sidebar_on_mobile() {
if ( !wp_is_mobile() ) {
remove_action(‘genesis_sidebar’, ‘genesis_do_nav’);
}
}
But i’m not sure if it will work, could you help me please?
Many thanks vincenzo
http://www.sridharkatakam.com/remove-sidebars-mobiles-genesis/