Home Forums Theone WordPress Theme Changing the directory name of /team/ to another subdirectory name

Tagged: , ,

This topic contains 5 replies, has 2 voices, and was last updated by  BWSM 1 year, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7166

    icespicol
    Participant

    Hello. 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

    #7169

    BWSM
    Keymaster

    Hello,

    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

    #7180

    icespicol
    Participant

    Hello, 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.

    #7181

    BWSM
    Keymaster

    Hi,

    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

    #7190

    icespicol
    Participant

    I 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 Categories

    #7191

    BWSM
    Keymaster

    Please 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 Categories

    The 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'
    		
    		),
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.