Home › Forums › Calendar Products › Events Calendar PRO › Changing arrow characters on footer/header nav
- This topic has 3 replies, 2 voices, and was last updated 11 years ago by
George.
-
AuthorPosts
-
June 23, 2015 at 12:48 am #972067
Ryan
ParticipantHi,
I want to change the HTML arrow characters being used by the tribe-events-nav-next and tribe-events-nav-previous classes. I want to use different HTML characters instead.
I understand that I can customize this on a view-by-view basis by creating my own templates, but that’s a big hammer for a small nail. It’d be much simpler to write a filter to functions.php that handles this globally.
Is there a filter available that I can hook into for this purpose? I can’t seem to find one but I’m hoping I’m just overlooking an obvious solution.
Thanks!
June 23, 2015 at 5:47 am #972119George
ParticipantHey Ryan,
The simplest alternative I could think of would be to write custom CSS at the bottom of your theme’s style.css file to achieve this.
First, hide the default elements with CSS like this:
.tribe-events-nav-previous span, .tribe-events-nav-next span { display: none !important; }Then, use the :before and :after CSS3 pseudo-selectors and the content rule to, well, add content before or after those elements. This will replace the originals pretty adequately.
As an example, after hiding the default arrows with the code above, code like this would a different type of left-facing arrow before the Previous button:
.tribe-events-nav-previous:before { content: 'β'; }I’m pasting in a left-arrow character there that I grabbed from http://copypastecharacter.com.
Here’s how that looks:
Doing this for the “Next” events link is just as simple, but you use “after” instead of “before:
.tribe-events-nav-previous:after { content: 'β'; }You can apply width/cover/hover/font/image styles from here, but this should give you a good basis for beginning these customizations. Best of luck with them βΒ and be sure to keep good backups of any custom code! (and your site and database in general, of course π )
Cheers,
GeorgeJune 23, 2015 at 10:11 pm #972454Ryan
ParticipantGreat solution to use psuedo-selectors, thanks. I’ve implemented this with no issue.
June 24, 2015 at 6:35 am #972538George
ParticipantGreat! Keep backups of all custom code like this to minimize the risk of losing it in an update.
Best of luck with your site,
George -
AuthorPosts
- The topic ‘Changing arrow characters on footer/header nav’ is closed to new replies.

