Trying to get indicators on button

[ad_1]

Hello, I am using listinghive by hivepress. I have very limited knowledge and I’ve tried every possible avenue I can come up with based on google search. I have this code for message indicators in hivepress

if (hivepress()->request->get_context('notice_count')) { // Show notice indicator }

I’m trying to work this with my class messages-button to at least change the color of the button if there are messages.

I’m not sure where to put this. I figured I’d post here if anyone could help.

Thanks

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer