In the Wordpress theme Hemma we purchased, there are items in the Menu like 'Rooms'. It is possible to change this name? We are aimed at Dutch speaking people and would like to change the name to a Dutch one. For instance, if you click on " And if you then click on http://www.camperglamp.nl/leven/ and the "Bekijk leefruimte" you get this url: "http://www.camperglamp.nl/room/kungsorn/". Also with other items on this page, it leads to a "Rooms" url.
You can change the "room" slug editing the hemma-custom-post-types that comes with the theme but you should consider that you can lose changes on each plugin update (luckily we never had to update the plugin since the first theme launch). As an alternative, you can activate the child theme and write a small function into functions.php to rewrite CPT slugs as showed here: https://www.ait-themes.club/knowledge-base/how-can-i-change-items-slug-and-slug-of-other-custom-post-types/
-----------
Here's another answer from a previous ticket that you may find useful:
Unfortunately any custom post type has its own name and slug, so that's not really easy to do. Btw here are a couple of tricks:
1) You can change the "Events" name and slug editing the hemma-custom-post-types that comes with the theme but you should consider that you can lose changes on each plugin update (luckily we never had to update the plugin since the first theme launch).
2) You can alternatively clone and edit the Hemma Custom Post Types Plugin that comes with the theme. In order to do that, duplicate the folder hemma-custom-post-type and give it a new name (e.g. hemma-custom-post-type-new).
Then open the file hemma-custom-post-types.php and change the Plugin Name on line 4 (e.g. Hemma Custom Post TypesNew) and the Text Domain on line 12 (e.g. hemma-custom-post-types-new).
Now open the file hemma-custom-post-types/admin/class-hemma-custom-post-types-admin.php and replace "event/events" with "activity/activities" (function name: hemma_event_cpt).
Finally, you need to update all text domains names in the plugin files, in other words replace all "hemma-custom-post-types" occurrencies with the new text domain you chose.
Dear Mr. Mrs.,
In the Wordpress theme Hemma we purchased, there are items in the Menu like 'Rooms'. It is possible to change this name? We are aimed at Dutch speaking people and would like to change the name to a Dutch one. For instance, if you click on " And if you then click on http://www.camperglamp.nl/leven/ and the "Bekijk leefruimte" you get this url: "http://www.camperglamp.nl/room/kungsorn/". Also with other items on this page, it leads to a "Rooms" url.
Thank you for your help.
kind regards,
Ronald Kajuiter
Hi,
You can change the "room" slug editing the hemma-custom-post-types that comes with the theme but you should consider that you can lose changes on each plugin update (luckily we never had to update the plugin since the first theme launch). As an alternative, you can activate the child theme and write a small function into functions.php to rewrite CPT slugs as showed here: https://www.ait-themes.club/knowledge-base/how-can-i-change-items-slug-and-slug-of-other-custom-post-types/
-----------
Here's another answer from a previous ticket that you may find useful:
Unfortunately any custom post type has its own name and slug, so that's not really easy to do. Btw here are a couple of tricks:
1) You can change the "Events" name and slug editing the hemma-custom-post-types that comes with the theme but you should consider that you can lose changes on each plugin update (luckily we never had to update the plugin since the first theme launch).
2) You can alternatively clone and edit the Hemma Custom Post Types Plugin that comes with the theme. In order to do that, duplicate the folder hemma-custom-post-type and give it a new name (e.g. hemma-custom-post-type-new).
Then open the file hemma-custom-post-types.php and change the Plugin Name on line 4 (e.g. Hemma Custom Post TypesNew) and the Text Domain on line 12 (e.g. hemma-custom-post-types-new).
Now open the file hemma-custom-post-types/admin/class-hemma-custom-post-types-admin.php and replace "event/events" with "activity/activities" (function name: hemma_event_cpt).
Finally, you need to update all text domains names in the plugin files, in other words replace all "hemma-custom-post-types" occurrencies with the new text domain you chose.
Hope that helps!
Hello again,
We have just updated our Knowledge base, here you can find some useful How can I change a Custom Post Type name? chapter:
https://opendept.ticksy.com/article/9776#hemma-cpt