• Hi there!

    I’ve tried to get the page title at the top of the portfolio archive page, but i can’t figure out how to do this. I tried to put this piece of code under line 10 (‘get_header(); ?>’) in ‘archive-jetpack-portfolio.php’:

    <header class="entry-header">
    	<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
    	<div class="entry-meta">
    		<?php sketch_post_format(); ?>
    		<?php sketch_posted_on(); ?>
    		<?php edit_post_link( __( 'Edit', 'sketch' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
    	</div><!-- .entry-meta -->
    </header><!-- .entry-header -->

    This gives me the title of the last portfolio element and not the page. Can anyone help me out?

    Thanks in advance!

    Martijn

Viewing 12 replies - 1 through 12 (of 12 total)
  • 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.

    Thread Starter martijn6

    (@martijn6)

    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:

    Screen Shot 2016 08 31 at 10 23 30

    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.

    Thread Starter martijn6

    (@martijn6)

    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?

    Error Console

    Moderator Kathryn Presner

    (@zoonini)

    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.

    Thread Starter martijn6

    (@martijn6)

    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!

    Thread Starter martijn6

    (@martijn6)

    Thank you for all the help @siobhyb! Here are two screenshots:

    Customizer tabs
    Customizer ? Theme tab

    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.

    Thread Starter martijn6

    (@martijn6)

    I have the same problem in Firefox and Chrome! See these screenshots:
    Firefox Screenshot
    Chrome Screenshot

    Thank you so much for extra screenshots! I’ve passed them along to the team and we’ll continue to look into this.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Page Title at the Portfolio Archive Page’ is closed to new replies.