queue  5
support
Results 1 to 6 of 6

Thread: change the permalink url "project"

  1. #1

    change the permalink url "project"

    Dear Brandspace team

    I need to change the automatic permalink "project" to a custom text
    for example

    www.riccardozerbinati.com/project/projectname/ - to - www.riccardozerbinati.com/custom/projectname/

    thanks for the support

    best
    riccardo

  2. #2
    Administrator Donagh's Avatar
    Join Date
    Aug 2011
    Posts
    1,918
    Hi, Please check the first couple of posts in this thread for the solution: http://support.pixelentity.com/threa...ight=permalink

  3. #3
    Quote Originally Posted by Donagh View Post
    Hi, Please check the first couple of posts in this thread for the solution: http://support.pixelentity.com/threa...ight=permalink
    thank you; I already saw that post, but in the PeThemeProject.php
    this line
    "supports" => array("title","editor","thumbnail","post-formats","custom-fields"),

    is
    supports" => array("title","editor","thumbnail","post-formats"),

    it's the same?
    can I apport changes anyway?

    best

  4. #4
    Administrator Donagh's Avatar
    Join Date
    Aug 2011
    Posts
    1,918
    Hi, Just continue with the rest of the changes as per the thread. Keep an backup of the original file (before you change it) just in case you need to reinstate it later.

  5. #5
    unfortunately I'm not able to change the permalink.
    I looked for this line of code ("supports" => array("title","editor","thumbnail","post-formats","custom-fields"), )
    and below that I wrote 'rewrite' => array('slug' => 'myslug' ),

    but it doesn't work;
    what is the 'slug' that I have to change? Title? Project? (is it key sensitive?)

    thanks
    r

  6. #6
    Probably I solved

    I followed theese instructions: (http://support.pixelentity.com/threa...roject+rewrite)

    Open <theme folder>/framework/php/PeTheme/PeThemeProject.php , find the following code

    PHP Code:
    "taxonomies" => array("post_format")
    after that line add the code given below

    PHP Code:
    ,'rewrite' => array('slug' => 'products'),
    You'll also need to change all the instances of "Project" to "Product" in the following block

    PHP Code:
    'name' => __("Projects",'Pixelentity Theme/Plugin'),
    'singular_name' => __("Project",'Pixelentity Theme/Plugin'),
    'add_new_item' => __("Add New Project",'Pixelentity Theme/Plugin'),
    'search_items' => __('Search Projects','Pixelentity Theme/Plugin'),
    'popular_items' => __('Popular Projects','Pixelentity Theme/Plugin'),
    'all_items' => __('All Projects','Pixelentity Theme/Plugin'),
    'parent_item' => __('Parent Project','Pixelentity Theme/Plugin'),
    'parent_item_colon' => __('Parent Project:','Pixelentity Theme/Plugin'),
    'edit_item' => __('Edit Project','Pixelentity Theme/Plugin'),
    'update_item' => __('Update Project','Pixelentity Theme/Plugin'),
    'add_new_item' => __('Add New Project','Pixelentity Theme/Plugin'),
    'new_item_name' => __('New Project Name','Pixelentity Theme/Plugin')
    Update your permalinks by navigating to Settings -> Permalinks and click "Save Changes" . That should do it.