Additional CTA button

hey team,

Kharis helped me add an additional CTA button to my site as shown in this topic.
How can I get it to only display on the first page?

Here is a link to the site if needed.
Thanks

Hello there,

Try adding this code to Appearance > Customize > Additional CSS from dashboard.

    body:not('.home') .sp-floating-cta {
      display: none;
    }

Regards,
Kharis

Hi Kharis,

it’s not working, and it appears with a red exclamation point in the custom css part of the customize page.

Try adding !important declaration to set highest priority execution.

    body:not('.home') .sp-floating-cta {
      display: none !important;
    }

Regards,
Kharis

Hi Kharis,

it’s still not working :frowning:

Hello there,

Try this code:

    .sp-floating-cta {
      display: none !important;
    }

    .home .sp-floating-cta {
      display: table !important;
    }

Regards,
Kharis

that works great! thank you so much!

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis