coresocial_floating_show
This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!
Description
Filters the visibility of the Floating bar. Use this filter to hide the floating bar on selected pages, by returning false.
Definition
Arguments
Example
Disable Floating Bar on the home page
add_filter('coresocial_floating_show', 'dev4press_example__coresocial_floating_show'); function dev4press_example__coresocial_floating_show($visibility) { if (is_home() || is_front_page()) { $visibility = false; } return $visibility; }