Flush permalinks to fix 404 errors or after changing URL structures.
Steps
- Go to Settings > Permalinks
- Don't change anything
- Click Save Changes
This regenerates the rewrite rules without changing your permalink structure.
Do this after activating the theme, importing demo content, or changing the portfolio slug.