Home › Forums › Theone WordPress Theme › Changing the directory name of /team/ to another subdirectory name
- This topic has 5 replies, 2 voices, and was last updated 11 years ago by
SeaTheme.
-
AuthorPosts
-
May 5, 2015 at 5:46 pm #7166
icespicol
ParticipantHello. I need to change the name of /team/ to /products/. I don’t need to change the function of the “team member” designation, etc., but only the name of that subdirectory (and I suppose styles or functions associated with it so that I can benefit from the SEO/directory association).
What is the best way to go about this? Thanks.
Note: to view site, enter SITE PIN: notnow2015
May 6, 2015 at 1:33 am #7169Hello,
please find the files and replace them:
https://www.dropbox.com/s/z8piak0yhap3a7m/QQ20150506-2.jpg?dl=0
https://www.dropbox.com/s/umqyypuybu5t5r8/QQ20150506-3.jpg?dl=0
(note: in screenshot the string is “team_item”, in Theone theme, the string is “team”)Best,Bwsm
May 6, 2015 at 2:37 pm #7180icespicol
ParticipantHello, I made the changes to the php files and uploaded them. It seemed to work, but I found that all the pages I had created in the Team section were gone. When I replaced the original php files the pages were back. Do I need to build the pages after changing the Team section to Products? Would it be better to leave the Team section and create a new section called Products? Could I do this by duplicating all the code associated with creating the Team section?
I was also wondering what kind of issues these changes will make when you release theme updates. Is there a way to make these changes in a child theme? Would that benefit us?
Thanks so much for your help.
May 7, 2015 at 3:05 am #7181Hi,
Yes, after replace the string, you need to re-build the product post, you could not see the team posts any more.
Could I do this by duplicating all the code associated with creating the Team section?
No.
I was also wondering what kind of issues these changes will make when you release theme updates. Is there a way to make these changes in a child theme? Would that benefit us?
No, there is not easy way. You need to change the files again after update.
Best, Bwsm
May 8, 2015 at 1:31 am #7190icespicol
ParticipantI made the php changes, uploaded the files, and recreated the pages. The pages only show the page title. No other text, or featured image show up.
There are also other mentions of Team that are still showing up:
Edit Team Member
View Team Member
Team CategoriesMay 8, 2015 at 6:31 am #7191Please double check your code. There are 6 files need to change(marked above 2 screenshots).
There are also other mentions of Team that are still showing up:
Edit Team Member
View Team Member
Team CategoriesThe strings are in theme-register.php
'team' => array( 'name' => __('Team','ux'), 'meta' => true, 'add_new' => __('Add New','ux'), 'add_new_item' => __('Add New Team Member','ux'), 'edit_item' => __('Edit Team Member','ux'), 'new_item' => __('New Team Member','ux'), 'view_item' => __('View Team Member','ux'), 'not_found' => __('No Team Member found.','ux'), 'not_found_in_trash' => __('No Team Member found in Trash.','ux'), 'search_items' => __('Search Team Member','ux'), 'cat_slug' => __('team_cat','ux'), 'cat_menu_name' => __('Team Categories','ux'), 'columns' => array( 'column_category' => __('Categories','ux') ), 'menu_icon' => UX_THEME. '/images/icon/team.png' ), -
AuthorPosts
- You must be logged in to reply to this topic.
