• Hi All,

    Simple question; I want to change the permalink from /events/ to /agenda/. In the dutch version it is translated as /activiteiten/ which means the same as ‘activitys’. Problem is that I don’t have any activity’s but only a agenda.

    Does anyone know how to change that? I can’t find the word in the translation file…

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @madglaz,

    Please try the following solution:

    /* 
            Please paste it to your WordPress theme functions.php
            
            DON'T FORGET TO SAVE PERMALINKS SETTINGS.
    */
    
    function __ai1ec_custom_slug_name( $translations, $text, $domain ) {
            if ( 
                    AI1EC_PLUGIN_NAME !== $domain ||
                    'event' !== $text 
            ) {     
                    return $translations;
            }       
            return 'ai1ec-event';
    }       
    
    add_filter( 'gettext', '__ai1ec_custom_slug_name', 10, 3 );

    Take care,
    Ben

    • This reply was modified 7 years, 1 month ago by Benjamin.
    Thread Starter MaDGLaZ

    (@madglaz)

    Hi Ben,

    Thank you very much for your reply! The snippet does change the permalink but then I got a double breadcrumb:

    Image – Double breadcrumb screenshot

    It would be so great if you have any advice for that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change the /event/ permalink?’ is closed to new replies.