How to change WordPress Archive Page Title

I would like to change the text (illustrated on the image below) from ‘Portfolio Archives’ to ‘Shop’.

I have archive.php and portfolio.php files, none of which has any obvious indication of how/where to change the text.

Read More

screen shot http://damtech.it/screen.png

Related posts

Leave a Reply

3 comments

  1. I also come across this problem previous week.I was using a theme.This may help you or may not.But I face same problem ,so I am answering.

    If you are using some theme.Then there should be your Theme Setting.
    Go to theme setting and there will be Header and footer options.You may change this text from there.My problem was solved from there.

  2. For anyone else who wasted time trying the approved answer, reading the function reference at https://codex.wordpress.org/Function_Reference/get_header and paying attention to this section:

    Multiple Headers

    Different header for different pages.

    <?php
    if ( is_home() ) :
        get_header( 'home' );
    elseif ( is_404() ) :
        get_header( '404' );
    else :
        get_header();
    endif;
    ?>
    

    The file names for the home and 404 headers should be header-home.php and header-404.php respectively.

    leads to the following successful approach.

    1. Copy your (yourthemename)/header.php file to (yourthemename)/header-customname.php

    2. Change the get_header() call in the file you are targeting to get_header('customname')

    Job done.