Hide on Mobile Devices? remove_action code?
-
Hey, this is an awesome plugin, and it does basically what I have been looking for.
I have sort of a unique situation, If I add a Genesis Custom Header to a page, I might not want it to show up on mobile, some times it might not look good, takes up to much real estate on a mobile device, or we want to keep the mobile page simple.
My theme already has the mobile detection worked out but I am having problems removing the Genesis Custom Header. I have tried to remove the GCH in general and I have having some problems. I have tested with the following code:
remove_action( ‘genesis_after_header’ , ‘gch_print_header’,100 );
I have GCH added to the genesis_after_header hook and the priority is set to low.
Any input would be awesome, or if you just want to add an option to hide on mobile that would work as well.
Thanks
Greghttps://www.ads-software.com/plugins/genesis-custom-headers/
- The topic ‘Hide on Mobile Devices? remove_action code?’ is closed to new replies.