Support

Home Forums Community Forum Page Visits

Page Visits

Posted: January 26, 2024 at 9:19 am

Viewing 3 reply threads


Grow Socially

January 26, 2024 at 9:19 am

Good morning,

I just noticed that “visits” are showing on event espresso pages. It is not showing on any other page. I looked through the EE Settings and did not see a function to turn it off and since it is baked into a paragraph code on CSS, I cannot decide to display:none. How do I deactivate this. Maybe I am just missing a setting.


Tony

  • Support Staff

January 26, 2024 at 11:11 am

Hi there,

That’s not something from within EE itself, we don’t have a ‘visits’ count anywhere within our code, at a guess I’d say its some custom code hooking into AHEE_event_details_after_the_content.

Check for any custom functions plugins that may be using that hook, or within your themes functions.php file.

Becuase its the last P tag added to the content, it is possible to target that using CSS, for example:

.type-espresso_events .event-content p:last-of-type {
    display: none;
}

However, I recommend finding the code that is adding it and removing that rather than just hiding it afterwards.


Grow Socially

January 26, 2024 at 11:17 am

Thank you. The code worked. I will search for where this is located and remove.


Tony

  • Support Staff

January 26, 2024 at 11:23 am

You’re most welcome 🙂

Any further questions just let us know.

Viewing 3 reply threads

The support post ‘Page Visits’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso