Call to Action buttons to display only on homepage header and not all pages

Hi there Roman and friends

is it possible to only display the call to action buttons on the homepage rather than all pages?

many thanks

Bibs

Hello Bibs,

Add the below CSS code to Appearance > Customize > Additional CSS from dashboard.

    body:not(.home) .button-slider {
      display: none;
    } 

Regards,
Kharis

Hi Kharis

Many thanks for your quick response.

This didn’t work for me, I tried adding !important but still no good.

Could you advise please?

Many thanks

Lesley

Hello Lesley,

If site caching has been enabled, you should flush it whenever new code added. To help me get the correct code, please share a link to your site.

Regards,
Kharis

Hi Kharis, apologies for the delay in responding. The site is now live https://pro-visionfootball.com/ however the client would prefer not to have any buttons at all, not even on the homepage! However, if they change their mind I will retry your code and see if it works that time.

Many thanks as always

Bibs

Okay. You’re welcome!

Regards,
Kharis