Change the text "Category archive for"

pending (11 posts) (6 voices)

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

    Posted 7 years ago #
  2. Uniq
    Support

    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,
    Dorian

    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.

    <?php
    /**
     * 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?

    Thanks

    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 5 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
    Support

    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:

    http://gurukul.anandamarga.net/category/blog/

    Posted 5 years ago #
  8. Elliott
    Support

    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
    Member

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

    Attachments

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

    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 2 years ago #

Reply

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