Support » Plugin: Floating Contact Button » Remove on some Pages

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author cmsgeek

    (@cmsgeek)

    Hi @mauri01 ,

    in the newer plugin version the line may not be correct anymore, because the source code has been reduced a bit.

    The code if ( is_page( '789' )) { must be inserted in line 168 between
    $fcb_shortcode = get_option( 'fcb_options' )['fcb_field_shortcode']; and echo ' <a href="#fcb-modal" class="fcb-link-button"><i class="fcb-icons"><span class="dashicons dashicons-format-chat"></span></i></a>';

    Another } must be inserted before the final } in line 177.

    You are welcome to ask another question in this topic.

    Best regards,
    Chris

    Thread Starter mauri01

    (@mauri01)

    Thanks for your reply!

    But it works the exact opposite now, only page 789 shows the floating button and all others non. 🙂

    Plugin Author cmsgeek

    (@cmsgeek)

    Hi @mauri01 ,

    there are two ways to fix the problem. With the following solution, the button will not be output on the pages whose ID is specified:

    if ( ! is_page( array( '801', '789' ))){

    If you remove the ! the logic is directly reversed.

    Best regards,
    Chris

    Thread Starter mauri01

    (@mauri01)

    Yeah, this works very well.

    Thank YOU!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.