Okay
  Public Ticket #2644888
Rename bauman_portfolio
Closed

Comments

  • Miro Hristov started the conversation

    I'd like to remove bauman_portfolio from the URL of the portfolio. I tried to do search and replace of in all .php files for 'bauman_portfolio' (with the quotes) and it kind of works but my posts now have comments disabled appear and the layout is broken. The full-screen featured image is gone.

    https://cagan.design/portfolio/movado_bold/

    Any idea how to go about it?

    Thanks!

  • Miro Hristov replied

    Never mind :)

    I had to rename single-bauman_portfolio.php to just single-portfolio.php for the theme to use the template. 

    Works like charm now. 

    Friendly Advice: use just 'portfolio' for for post type. Most people don't want to have their theme name in the URL.

    Thanks!

  •  1,974
    Support replied

    Hi Miro,

    You can go to customizer -> portfolio settings to change the custom slug. Just enter your own and after saving the changes go to Settings -> Permalinks and press 'Save' to refresh them.

    In order to completely remove it you may want to use a plugin:

    https://wordpress.org/plugins/remove-cpt-base/

    Coming back to your comment - portfolio is a very common name for the custom post types so we want to avoid it for potential conflicts with other plugins.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy