Support Forums for LiveMesh Themes & Plugins › Forums › FitPro Theme Support › Where can I change the TRAINER word that appears in the URL ?
Tagged: custom-post, slug, trainer
- This topic has 7 replies, 3 voices, and was last updated 10 years, 5 months ago by
Raghavendra.
-
AuthorPosts
-
August 8, 2014 at 6:30 pm #8408
argos
MemberHi, I get this:
mydomain.com/TRAINER/name-of-the-trainer
but I NEED to use: ENTRENADOR instead of trainer on the URL
where or how can I change it to display it in my own language ?August 9, 2014 at 7:40 am #8419Nexus
ModeratorYou will have to translate the strings in the theme using poedit. You just have to create appropriate .po and .mo files and place them in the languages directory inside the theme directory. Here is how to translate the theme
http://help.pixelpress.co/help/kb/wordpress-training/how-to-translate-a-wordpress-theme-po-file-using-poeditAugust 9, 2014 at 12:17 pm #8424argos
MemberSorry to tell you, but I search all .po files and I couldn´t get where to translate the WORD: trainer that appears at the URL of the site when you go to VIEW the TRAINER BIO.
August 9, 2014 at 12:37 pm #8429argos
MemberJust FYI, I also need for SEO purposes on my language to HIDE or change the name of the URL when it is set to: mydomain.com/page-section/maps
because I need to use, as: mydomain.com/maps
simple.Without the text at the url: “page-section” for it.
ThanksAugust 9, 2014 at 2:13 pm #8434argos
MemberHi, I ALSO need to change the “feature” word at the URL, for another word in my own language.
Please let me know how to do it.it actually appears as:
http://mydomain.com/?feature=MyPageNamethanks in advance
August 9, 2014 at 2:31 pm #8436argos
MemberHi, there is also a:
/fitness-class/ text on another URL, that I also need to modify just to “clases” on my own language or anything else, as taekwondo or another martial art, is NOT a “fitness-class” I am a little obsessed with SEO and people reading the URLs of my site.
Thanks.August 11, 2014 at 5:18 am #8453Nexus
ModeratorThis is the plugin that you should be using http://wordpress.org/plugins/polylang/ . Also you can try WPML as well, but it is a paid plugin.
August 11, 2014 at 5:36 am #8462Raghavendra
ModeratorYou can change the URLs for trainers, features, fitness classes easily in the file framework/presentation/custom-post-types.php file. Look for the ‘rewrite’ parameter passed to the register_post_type() function call this way –
register_post_type('fitness_class', array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'exclude_from_search' => true, 'query_var' => true, 'rewrite' => array('slug' => 'fitness-class'), 'capability_type' => 'post', 'taxonomies' => array('fitness_category'), 'has_archive' => false, 'hierarchical' => false, 'menu_position' => 10, 'menu_icon' => MO_THEME_URL . '/images/admin/balloon-quotation.png', 'supports' => array('title', 'editor', 'thumbnail', 'page-attributes', 'custom-fields') ));
Pls make sure you visit Settings->Permalinks once after you make these changes so that the changes take effect.
-
AuthorPosts
- The forum ‘FitPro Theme Support’ is closed to new topics and replies.