Forums

Adjusting "Archive for" text (2 posts)

  1. GreenGirl_NJ
    Member
    Posted 9 months ago #

    I'm trying to remove the "Archive for...category" words that appear in the heading of my category pages. The original code is:

    <h1><?php printf(__('Archive for ‘%s&#8217 category'), single_cat_title('', false)); ?></h1>

    I've been able to edit it to remove "Archive for" and "category" but it still leaves two ' marks (one before and after the category names). So it reads 'PRINT'

    This is the new php code:

    <h1><?php printf(__(' ‘%s&#8217 '), single_cat_title('', false)); ?></h1>

    My question is, how do I make it read PRINT and not 'PRINT' on the page?

    Thank you!!

  2. alchymyth
    The Sweeper & Moderator
    Posted 9 months ago #

    remove those two extra characters;

    <h1><?php printf(__('%s'), single_cat_title('', false)); ?></h1>

    http://php.net/manual/en/function.printf.php
    http://www.fileformat.info/info/unicode/char/2019/index.htm

Reply

You must log in to post.

About this Topic