Home › Forums › Calendar Products › Events Calendar PRO › hide next event link
- This topic has 6 replies, 2 voices, and was last updated 9 years, 10 months ago by Barry.
-
AuthorPosts
-
June 25, 2014 at 1:54 am #249454mcomarketingParticipant
hi, i’ll try hide the link “next & previous event” with CSS like this.
ul.tribe-events-sub-nav a, .tribe-events-back a, .tribe-events-list-widget .tribe-events-widget-link a, .tribe-events-adv-list-widget .tribe-events-widget-link a {
text-decoration: none;
display: none;
}well, this hide all the links (included “all events” link to the calendar) and previous and next months links
is possible hide only the link “previous and next” event at detail of event??
The problem is, this link shows ALL events (in spanish and english), for example, each tournament have two languages if you make link to the detail in english, shows the next event (the same event in spanish translation) this redirect to the page in spanish 🙁
Thanks.
June 25, 2014 at 8:24 am #250200BarryMemberis possible hide only the link “previous and next” event at detail of event??
An alternative approach would be to set up a custom template (month/nav.php) – full details of this process are described in our Themer’s Guide, but in essence you could simply create an empty file located as follows:
wp-content/themes/your_theme/tribe-events/month/nav.php
Since this generates the next/prev month links, if it is left empty none will actually display.
Might that help?
June 26, 2014 at 12:08 am #252090mcomarketingParticipantsorry!! I have not explained well
please, check this link
http://s511456428.mialojamiento.es/aloha-news/event/vii-benefico-autismo-angel-riviere/this is the detail of date 5 july, well
here you can see two links to the previous event “25-6-2014 Mens Day” and the next event “VII BENEFICO AUTISMO ANGEL RIVIERE “.
these are the links that we want to hide.the link on top “All Events” must be also visible .
and, if you look better, the link of the next event its the same! that is because these event are in two languages, for any reason or incompatibility with WPML shows the calendar with the events together.
This is the reason for hide these links only, not the links months in general calendar herehttp://s511456428.mialojamiento.es/aloha-news/event/
thank you so much, i’m very glad with these support.
June 26, 2014 at 10:38 am #253125BarryMemberthis is the detail of date 5 july, well
here you can see two links to the previous event “25-6-2014 Mens Day” and the next event “VII BENEFICO AUTISMO ANGEL RIVIERE “.
these are the links that we want to hide.OK, so a piece of CSS like this (added to a custom tribe-events.css stlyesheet for example) should do the trick:
.tribe-events-sub-nav { display: none }
Does that help?
June 26, 2014 at 11:49 pm #254465mcomarketingParticipantthanks! the line of css is ok here…
http://s511456428.mialojamiento.es/aloha-news/event/25-6-2014-mens-day/but, this code make out of here the “month links” here…
http://s511456428.mialojamiento.es/aloha-news/event/sorry my insistence, but the month links would be visible also.
June 27, 2014 at 2:27 am #254712mcomarketingParticipantwell, i got it with this css, maybe this be useful for someone!
thanks!.single-tribe_events #tribe-events-footer, .tribe-events-day #tribe-events-footer, .events-list #tribe-events-footer, .tribe-events-map #tribe-events-footer, .tribe-events-photo #tribe-events-footer
{display: none;}June 27, 2014 at 1:43 pm #255896BarryMemberAwesome – thanks for sharing 🙂
-
AuthorPosts
- The topic ‘hide next event link’ is closed to new replies.