Using WordPress, I have two links in my Footer Widget.
One is a dofollow link and other is a nofollow link.
I need to display the dofollow on the homepage only, while the nofollow needs to be displayed on every subpage.
I’m wondering if this is possible with CSS, or if I need to use JQuery.
I’ve tried using the below code but have achieved nothing:
.footer-dofollow:is(.page-id-123) { display: none; }
.footer-nofollow:not(.page-id-123) { display: none; }
Any advice or feedback would be greatly appreciated.