• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Portfolio Pro – remove 'portfolio' from URL's

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Portfolio Pro – remove 'portfolio' from URL's

This topic is: not resolved

Tagged: portfolio pro

  • This topic has 6 replies, 2 voices, and was last updated 8 years ago by NicB.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • January 30, 2018 at 5:19 pm #215883
    NicB
    Participant

    A quick question about Genesis Portfolio Pro.

    I'm using the Studio Pro theme with Genesis Portfolio Pro and really want to remove/rename the 'portfolio' that appears in all the URL's.

    eg: http://www.thenantwichcomputerconsultant.co.uk/portfolio/

    eg: http://www.thenantwichcomputerconsultant.co.uk/portfolio/gaming-computers-nantwich/

    I can't find any option to change this though.

    Can anyone help?

    January 31, 2018 at 12:16 am #215889
    Brad Dalton
    Participant

    There is a filter in the plugin which enables you to change this slug.

    You will need a filter function to do this via your child themes functions file.


    Tutorials for StudioPress Themes.

    January 31, 2018 at 1:38 am #215893
    NicB
    Participant

    So I need to add some code to the functions.php file?

    Something like this?

    ////* Rename Portfolio Slug
    add_action( 'init', 'rename_portfolio_custom_post_type_slug', 5 );
    
    function rename_portfolio_custom_post_type_slug() {
    
    	$args                  = get_post_type_object( 'portfolio' );
    
    	$args->rewrite['slug'] = 'nantwich-computer-services';
    
    	register_post_type( $args->name, $args );
    
    }
    ////* End of Rename Portfolio Slug.
    

    I lifted that from a Google search...

    January 31, 2018 at 2:22 am #215894
    Brad Dalton
    Participant

    No. Look for add_filter in the plugin files.


    Tutorials for StudioPress Themes.

    January 31, 2018 at 3:41 am #215895
    NicB
    Participant

    Looked at the code for the Portfolio Pro plugin and there's this bit...

    genesis_add_option_filter(
    		'absint',
    		GENESIS_CPT_ARCHIVE_SETTINGS_FIELD_PREFIX . 'portfolio',
    		array(
    			'posts_per_page',
    		)

    Is that the one?
    I guess I can change the 'portfolio' in that to something else.

    January 31, 2018 at 3:59 am #215896
    Brad Dalton
    Participant

    Sorry, yes, you can use that code.


    Tutorials for StudioPress Themes.

    January 31, 2018 at 4:38 am #215897
    NicB
    Participant

    The code from Anita changes the 'portfolio' for individual pages perfectly.

    🙂

    Shame there's still the portfolio on this one though... http://www.thenantwichcomputerconsultant.co.uk/portfolio/

    Any ideas for that?

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble