Okay
  Public Ticket #678325
Portfolio, Permanent link
Closed

Comments

  • Jefferson started the conversation

    My site is not displaying porfolios but some services. Because of that, I would like to change and personalize the name on the permanent link for http://domainname/portfolio/pagename to http://domainname/pagename.

    I see this plugin http://wordpress.org/plugins/custom-post-type-permalinks/.
    Will it work with Salient?

    Thanks, Jefferson

  •  8,996
    Tahir replied

    Hey ,

    Yes it should work .

    Best.


    ThemeNectar Support Team 

  • Jefferson replied

    It didn\'t work, Tahir. The mentioned plugin only allows you to change the slug AFTER portfolio.

    When a I publish a new portfolio post it has the portfolio label in my url e.g. http://www.example.com/portfolio/mypost
    I want it to be just http://www.example.com/mypost

    I found this tip on Google:
    just open /wp-content/themes/[your_theme]/lib/functions/theme.php and change it from

    \'rewrite\' => true,
    to
    \'rewrite\' => array(\'slug\' => \'portfolio\',\'with_front\' => false)

    Well, I haven\'t found this file. Could you help me?
    Thanks for your attention,
    Jefferson, Rio de Janeiro, Brazil

  •  8,996
    Tahir replied

    Hey Again,

    Try using this plugin instead : https://wordpress.org/plugins/custom-permalinks/ . The snippet you are referring to makes the portfolio writeable which it already is since you can change the slug in Salient Theme Options Panel .

    Hope this makes sense.

    Best.


    ThemeNectar Support Team 

  • Jefferson replied
    Can I set the custom slug in Salient options panel in order to removing the default /portfolio/ portion of the URL?

    Thank you for your kindness, Tahir.

  •  8,996
    Tahir replied

    Hey Again,

    You can change it here : http://prntscr.com/a6vymf .

    Best.


    ThemeNectar Support Team 

  • Jefferson replied

    Hi Tahir,

    I didn\'t know exactly what I should write in that fiels (\"Custom Slug\" for Portfolio). I tried just \"/\" and worked!

    Now all my portfolio urls don\' have the /portfolio/ part.

    Life can be easy!

    Thanks, man!

    Best,

    Jefferson

  •  8,996
    Tahir replied

    Hey Again,

    Assigning the ticket to the developer so that he may add in a response.

    Best.


    ThemeNectar Support Team 

  • Peter replied

    What was the response from the developer? I'm having the same issue where I want to remove /portfolio/ - this will really help with my 301 redirects too....ie I won't need to redirect many of the pages if I set up the same URL! :)