Change the text "Category archive for"

pending (11 posts) (6 voices)

  1. i've config a category en my menu.
    bodas > últimos reportajes
    i would like change the title text. is it possible?

    Posted 7 years ago #
  2. Uniq

    Hi mierteran,

    Open and edit the archive.php file located in the theme's folder.

    Look for the following 2 lines, and change them accordingly:

    Line 20: <h1>Archives</h1>
    Change "Archives" to what you wish. This is the title.

    Line 25: Category Archive for: &lsquo;<?php single_cat_title(); ?>&rsquo;
    This is the teaser. &lsquo; and &rsquo; stand for the quotes.

    Let me know if you have any further questions.

    Best Regards,

    Posted 7 years ago #
  3. Thank!!
    I love this theme! Perfect support!

    Posted 7 years ago #
  4. Hi

    I'm probably missing something but my archive.php is below.

     * Archive Template
     * @package Mysitemyway
     * @subpackage Template
    get_header(); ?>
    	<?php mysite_archive(); ?>
    	<?php mysite_after_page_content(); ?>
    			<div class="clearboth"></div>
    		</div><!-- #main_inner -->
    	</div><!-- #main -->
    <?php get_footer(); ?>

    Am I looking at the wrong file?


    EDIT: Sorry I thought this post was newer than it is. I've found a more recent post with the information about editing theme.php. Please ignore this.

    Posted 6 years ago #
  5. hmm, the archive.php for Echelon is only this:

    get_header(); ?>

    <?php mysite_archive(); ?>

    <?php mysite_after_page_content(); ?>

    <div class="clearboth"></div>
    </div><!-- #main_inner -->
    </div><!-- #main -->

    <?php get_footer(); ?>

    So where can I get to edit the verbiage of archive page like the blog which comes out like this:

    Category Archive for: ‘Blog’

    When I really just wanted it to say Blog

    Any pointers would be much appreciated.

    Posted 5 years ago #
  6. Elliott

    Open up /wp-content/themes/[your_theme]/lib/functions/theme.php and you can find that on line 1077,

    $text = sprintf( __('Category Archive for: %1$s', MYSITE_TEXTDOMAIN ), '‘' . single_cat_title('',false) . '’');

    Switch it to this,

    $text = single_cat_title('',false);

    Posted 5 years ago #
  7. sounded like the right thing to do but it had no results:

    Posted 5 years ago #
  8. Elliott

    Do the same thing on line 1261.

    Posted 5 years ago #
  9. hmm that made it disappear altogether, but I can live that, its better than the old cumbersome text.

    However an edit I made to the other lines nearby worked nicely so thanks for showing me the place.

    Posted 5 years ago #
  10. omg

    I just did this and my entire site went down! Attached is my code.


    1. Website.jpg (59.5 KB, 1 downloads) 3 years old
    Posted 3 years ago #
  11. omg

    I got the old files restored via my hosting company, but if anyone has any idea why my site crashed i would appreciate it. I would like to follow the instructions again but am afraid the site will crash again.

    Posted 3 years ago #


You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme