In case you want to display the floating menu only on certain pages you can use filter cfm_show_menu that can hide the menu when users view pages where you don’t want to display it.

Filter cfm_show_menu callback function should return true if the menu is to be displayed or false to hide the menu.

Code below should be placed into WordPress theme functions.php file. As a note, we advise that you create a child theme when doing customizations on a WordPress theme.

Show the menu on certain pages

To show the menu only on certain given pages we will use WordPress function is_page().

/**
 * Show CodeFlavors menu for page ID 2
 * @param boolean $show - show (true) or hide (false) the menu
 * @return boolean
 */
function show_on_page( $show ){
    if( !is_page( 2 ) ){
        return false;
    }
    
    return $show;
}
add_filter( 'cfm_show_menu', 'show_on_page' );

The code above will show the menu only when page having ID 2 is displayed in front-end. If you want to show the menu on more than one page, use is_page() with an array parameter:

/**
 * Show CodeFlavors menu on different WP pages
 * @param boolean $show - show (true) or hide (false) the menu
 * @return boolean
 */
function show_on_pages( $show ){
    $allowed_pages = array( 2, 'about-me', 'Contact' );
    if( !is_page( $allowed_pages ) ){
        return false;
    }
    
    return $show;
}
add_filter( 'cfm_show_menu', 'show_on_pages' );