Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to Create a “Sticky” Floating Footer Bar in WordPress

function wpb_floating_bar() {
    wp_enqueue_script( 'wpb-footerbar', get_stylesheet_directory_uri() . '/js/floatingbar.js', array( 'jquery' ) );
}
add_action( 'wp_enqueue_scripts', 'wpb_floating_bar' );
Source by www.wpbeginner.com #
 
PREVIOUS NEXT
Tagged: #How #Create #Floating #Footer #Bar #WordPress
ADD COMMENT
Topic
Name
7+6 =