Home › Forums › Calendar Products › Community Events › Text above
- This topic has 5 replies, 2 voices, and was last updated 8 years, 11 months ago by Barry.
-
AuthorPosts
-
April 29, 2015 at 8:25 pm #959462Gisela NilssonParticipant
Hello, I am on this page: http://www.guidetovintage.com/wp-admin/edit.php?post_type=tribe_events&page=tribe-events-calendar&tab=display
In this section:
Advanced Template Settings
Add HTML before event contentI added text there and it is displaying above the Events in my “Events” page (where all my events are listed) but it is also showing in my Add events page which has the form for users to submit events.
I didn’t expect it to display in the page with the Add events form and it makes no sense to me to have it there. Can I remove it? If I have to edit or add code in a php file, please be extremely detailed as I have no coding background whatsoever and last time I tried to add code, I got locked out of Admin in WP altogether.
Thank you,
GiselaApril 30, 2015 at 8:05 am #959643BarryMemberHi Gisela,
The intention is for any messages/HTML you add via the before and after event content fields to display on all event related pages – so what you are experiencing is the expected behaviour.
However, it’s fairly easy to stop it from displaying on the submission page only.
The code above could be placed in your theme’s functions.php file – try inserting a few blank lines after the opening <?php tag and paste it in there – but if you have any doubt or problems it may be best to delegate this to a designer/developer you trust 🙂
I hope that helps!
April 30, 2015 at 8:10 am #959650BarryMemberApologies Griselda, the code I referenced isn’t showing, which may be a temporary glitch. Here it is again:
function conditionally_remove_tribe_before_html( $html ) { if ( ! function_exists( 'tribe_is_community_edit_event_page' ) ) return $html; if ( ! tribe_is_community_edit_event_page() ) return $html; return ''; } add_filter( 'tribe_events_before_html', 'conditionally_remove_tribe_before_html' );
April 30, 2015 at 7:40 pm #959788Gisela NilssonParticipantThank you! I removed it for now and will get someone to help me at a later point.
Thank you for the quick response.
Gisela
May 1, 2015 at 6:44 am #959825BarryMemberOur pleasure 🙂
May 18, 2015 at 7:39 am #963241BarryMemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
-
AuthorPosts
- The topic ‘Text above’ is closed to new replies.