New Landing How can we help? Themeforest Theme Support Neighborhood Portfolio URL Parameter

Viewing 10 posts - 1 through 10 (of 10 total)
  • #19506
    ovrld
    Member
    Post count: 20

    When viewing a portfolio item, the URL has a ‘?portfolio=’ parameter. What is the best way to change the name of this ‘slug’ in the URL when using a child theme?

    Thanks.

    #19836
    Melanie – SUPPORT
    Member
    Post count: 11032

    In portfolio-type.php change

    'rewrite' => false,

    in line 48 to

    'rewrite' => array('slug'=>'your-slug','with_front'=>false),

    Let me know if that worked!

    #19870
    ovrld
    Member
    Post count: 20

    Nah, didn’t seem to work. Replaced the line and copied over to Child theme folder so not sure if that makes a difference…

    #20055
    Melanie – SUPPORT
    Member
    Post count: 11032

    Try it in the main theme first please, so we know if it works in general.

    #20062
    ovrld
    Member
    Post count: 20
    This reply has been marked as private.
    #20271
    Melanie – SUPPORT
    Member
    Post count: 11032

    Without seeing your site it’s hard to say what went wrong. I will attach the full file, let me know if it worked!

    http://pastebin.com/pyinpH4d

    #20464
    ovrld
    Member
    Post count: 20
    This reply has been marked as private.
    #20704
    Melanie – SUPPORT
    Member
    Post count: 11032
    This reply has been marked as private.
    #21044
    ovrld
    Member
    Post count: 20
    This reply has been marked as private.
    #21179
    Melanie – SUPPORT
    Member
    Post count: 11032
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register