Home › Forums › Calendar Products › Events Calendar PRO › change the order of previous/next links
- This topic has 5 replies, 2 voices, and was last updated 8 years, 1 month ago by Nico.
-
AuthorPosts
-
February 2, 2016 at 6:37 pm #1066668Birgit BauerParticipant
Hello,
How can I change the order of the links for the previous and next events?
I would love to have them above the headline because some people told me it was confusing to have the links between the headline and the content.Screenshot:
http://screencast.com/t/xvxkFdTj5Thank you for your help!
February 3, 2016 at 11:24 am #1067180NicoMemberHey Birgit,
Glad to help you on this as well π
To move the navigation links you’ll need to create a override of the single event template. The steps to do so are described in our themer’s guide, and the template is located at wp-content/plugins/the-events-calendar/src/views/single-event.php. Once you have the copy of the template in place, you’ll need to cut the following code block:
>
- « %title%' ) ?>
- »' ) ?>
and paste it just above this line (33):
', '' ); ?>
That should make the trick, please let me know if you need further assistance on this,
Best,
NicoFebruary 8, 2016 at 4:46 am #1069262Birgit BauerParticipanthello Nico,
thank you for your help.
I tried the code and it displayed the links above as I wanted to have them displayed but I also wanted to remove the old position.
Now they are displayed above AND under the headline. And I want to have them only above the headline. π
Could you help me with this too?
Thank you!
February 8, 2016 at 9:26 am #1069603NicoMemberHey Birgit,
Thanks for following up π
It’s easy, just delete the mentioned code block from the ‘old position’ and leave it just in the new one. Makes sense?
Please let me know if I’m getting you wrong,
Best,
NicoFebruary 8, 2016 at 3:32 pm #1069829Birgit BauerParticipanthello Nico,
I’d have better take a look down in that file and I would have seen it π
Worked .. Thank you!
February 8, 2016 at 3:34 pm #1069831NicoMemberYour are welcome Birgit, glad to be of service π
Iβll go ahead and close out this thread, but if you need help with anything else please donβt hesitate to create a new one and we will be happy to assist you.
Best,
Nico -
AuthorPosts
- The topic ‘change the order of previous/next links’ is closed to new replies.