Home › Forums › Calendar Products › Events Calendar PRO › Custom URL
- This topic has 3 replies, 2 voices, and was last updated 12 years ago by
Brook.
-
AuthorPosts
-
April 27, 2014 at 10:49 am #143841
localsocial
ParticipantInstead of “events”, we’d like to position this under an existing menu, such as “/area/calendar-of-events/”. For this actual event, we’d like it to be “/area/calendar-of-events/event/name/”.
Also, instead of “/organizer/”, we’d like it to be “/area/calendar-of-events/organizer/”
If this type of customization possible?
Basically, we’re trying to have the plugin appear so it “fits” our site’s structure.
Thanks
April 28, 2014 at 10:22 am #144557Brook
ParticipantHowdy localsocial,
Absolutely that is possible. If you go to WP Admin > Events > Settings, right there on the general tab you will see the box “Events URL slug”. You can change this to any other URL so that it fits your site structure. You might also change the box underneath. Once you are happy click Save Changes. Did that do what you wanted? Please let me know. Cheers!
– Brook
April 28, 2014 at 11:16 am #144624localsocial
ParticipantI tried that. Tells me it can’t have a slash in the URL.
April 29, 2014 at 8:04 am #145442Brook
ParticipantHello again. I am sorry I did not test that out, you are right we do filter out slashes from that particular slug. Looking at our rewrite code it becomes quite apparent that we depend on the slug to not contain slashes.
This customization is still possible, it just won’t be easy like I initially said. 🙁 If you have a knowledge of PHP or Apache mod rewrite, you should be able to do what you need. Using mod rewrite you could replicate the rewrite rules (found here). Obviously you would want these rules to have precedence over the WordPress ones. I believe you would need to add the [L] condition and put them above the WP rules to get it working properly.
Or, you could add or override Tribe rewrites in a plugin of your own, or your theme’s functions.php file. You could essentially copy our rules above but change them around to include your custom directory.
I wish it was easier or required less programming knowledge. But, if you are the programmer sort then the above should be relatively easy. Please let me know if that helps, or if you have further questions. Thanks!
– Brook
-
AuthorPosts
- The topic ‘Custom URL’ is closed to new replies.
