Hi Martijn,
I’m assuming you’re referring to the page that can be access by adding /portfolio to the end of your site’s URL. Is that right? If so, you have the right file, however, the code you gave won’t work as the page is automatically generated by the theme i.e. there isn’t a corresponding page in your admin area that you’ve created and added a title to.
Instead, to edit the title of that page, head to Appearance > Customize in your admin area and then select Portfolio. You will find a Portfolio Archive Title field there.
Let me know how you get on with that! I’ll be happy to help if any extra questions come up, too.
Thanks @siobhyb for your response! It’s indeed about the /portfolio page and your explanations makes sense. I only can’t find the Portfolio tab in the Theme Customizer to edit the title.. There’s a ‘Portfolio’ tab in the main admin area, but that doesn’t give me the option to add a title to the page. Do you have another idea about this?
Hi Martijn,
As long as you have Jetpack’s Custom Post Types module enabled, the Portfolio option should show as the very last option in the Customizer. Here’s a screenshot of where it appears for me:
If you’re not seeing the Portfolio option, please double check another browser to see if a setting/extension in your default browser is blocking the option from loading.
If you’re not able to see the Portfolio option across multiple browsers, please follow the steps here to get a screenshot of any JavaScript errors in your browser’s console:
https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors#Step_3:_Diagnosis
We can troubleshoot further from there.
Hi Siobhan,
Thank you for the comment. The menu in the customizer shows the same tabs as in your screenshot, except for the last tab. It says ‘theme’ and if I click on this tab I only can adjust the ‘Thumbnail Aspect Ratio’ and hide the text on the front page. My error console gives a error (see screenshot), can’t figure out what causes the problem. Can you or somebody else help me out?
To rule out a plugin conflict, you could try temporarily deactivating all your plugins. Does the problem persist? If the problem is gone, reactivate your plugins one-by-one, look at the site in between each reactivation, to find the conflict.
I only have the three plugins ‘Akismet’, ‘Hallo Dolly’ and ‘Jetpack’ installed, even when I deactivate them all of just one, the ‘Portfolio’ tab doesn’t pop up in the customizer.. Any other ideas?
Hi @martijn6,
This appears to be a bug in Jetpack and I’ve reported it back to the team here for you:
https://github.com/Automattic/jetpack/issues/5143
It may be helpful for the team to see a screenshot of the Theme panel as it appears in your Customizer. Would you be able to add one to your next reply?
I’ll let you know when we hear back, too.
Thanks!
Thank you for all the help @siobhyb! Here are two screenshots:
Thank you! I’ve added the screenshots to the GitHub issue for the team. 🙂
Hi @martijn6,
Can you please confirm whether you’re able to replicate the issue in more than one browser? If it’s only one browser that the option is missing from, then there may be a setting/extension blocking Jetpack from loading all of the options.
I have the same problem in Firefox and Chrome! See these screenshots:
Thank you so much for extra screenshots! I’ve passed them along to the team and we’ll continue to look into this.