How do I change the “Portfolio/Galleries” URL slugs?

If you are not pleased with the default lens_portfolio and lens_gallery URL slugs, we are giv­ing out the chance of chang­ing the project or gallery URL slugs, by fol­low­ing the next steps.

Step 1 — Changing the Portfolio Slug

From the Word­Pres Dash­board go to Set­tings→ Pix­Types→ Enable Port­fo­lio (check­box)→ Change Sin­gle Item Slug→ New Sin­gle Item Slug→ Insert your new URL Slug;

Step 2 — Changing the Galleries Slug

From the Word­Pres Dash­board go to Set­tings→ Pix­Types→ Enable Gallery (check­box)→  Change Sin­gle Item Slug→ New Sin­gle Item Slug — Insert your new URL Slug;

You can flush the perma­links (a piece of Word­Press jar­gon) by access­ing Set­tings→ Perma­links and press­ing Save.

NOTE: You can’t remove these slugs, because, by hav­ing this part of the link is the only way Word­Press can “under­stand” the ele­ment it is han­dling, is a project and not a sim­ple page. As you can see, the pages don’t have any­thing between the base link address of the web­site and the title.

Updated on May 8, 2017

Was this article helpful?