Only detecting Chrome correctly
-
Hi,
I have the following code and only chrome is detected correctly. All other browsers are coming up as Firefox (I guess for Firefox it is working too).
I echoed the browser name function – that is how I know Firefox is coming up for all browsers except Chrome.
I have your latest version installed – 3.1.2.
Am I doing something wrong?
Regards,
Angelomy code:
if (is_chrome() or is_opera()) { echo '<a class="hep-page-subscribe-button eModal-3" href="https://www.americaforanimals.org/category/humane-eating-project/feed" target="_blank">Subscribe</a>'; } else { echo '<a class="hep-page-subscribe-button" href="https://www.americaforanimals.org/category/humane-eating-project/feed" target="_blank">Subscribe</a>'; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Only detecting Chrome correctly’ is closed to new replies.