• Resolved rusty.2000

    (@rusty2000)


    HELLO All
    I am trying to remove text from the title. now when i click on pic it is linked to my categories and on that page in title i get “category archives : my category title….ok what i want to do is remove the text “category archives: ” part…. i have tried multiple changes in the code in various php in my theme without success….i am using the sliding doors theme by wayne. so if someone can direct me to the appropriate .php where i need to insert or remove some code it would be great my site is onehundredclicks.co.cc

Viewing 6 replies - 16 through 21 (of 21 total)
  • peredur

    (@peredur)

    Not this time, alchymyth. I downloaded the theme to see if I could find the text, expecting the same as you. But unless I’m getting very old (which might just be true), this theme does not appear to have those templates. That’s what I was referring to in an earlier post.

    Cheers

    PAE

    Michael

    (@alchymyth)

    you are right (i couldn’t be bothered to download the theme, not assuming that is ‘a bit different’)

    found the text in /blogolife/functions/fe/headerdata.php:

    elseif ( is_category() ) {
    	  $content = __('Category Archives:', 'wplook');
    	  $content .= ' ' . single_cat_title("", false);
    	}


    index.php was referring to get_template_part('inc', 'indexloop' )
    which in turn was using the function <?php wplook_doctitle(); ?>
    which was found in the above mentioned template

    (really – what is the point of programming a theme with this kind of sub-folder structure?)

    Hordur Hardarson

    (@hordur-hardarson)

    Thank you both for your help.
    I guess I have to get a FTP client like Filezilla to get into that subfolder and delete the ‘Category Archives’.

    peredur

    (@peredur)

    @alchymyth

    Good catch! I lost the trail somewhere and got stuck in the content*.php templates.

    And I second what you say about using a structure like this. It does seem a bit counter-productive.

    @hordur Hardarson

    I think I’d start off by altering the file headerdata.php. As a start, I think I’d just comment out the two lines quoted by alchymyth and put in their place:

    $content = "";

    Then I’d check to see what things look like.

    And yes, you’ll need an FTP client to do that. Download the file to your local machine, make your alterations and then save them back.

    Cheers

    PAE

    azanmi

    (@azanmi)

    And that’s a wrap. Thanks guys worked perfectly.
    See: https://www.stewkeene.com/category/guests-in-arizona-invited-to-provide-information-regarding-home-purchasing/homeowners-insurance/
    No “Category Archives:” left.

    Hordur Hardarson

    (@hordur-hardarson)

    Same here ??

    If I took both lines out and put the $content = “”; instead, I also lost the category name on the top.

    So I only erased the “Category Archives:” and that worked perfectly.

    Before…..
    elseif ( is_category() ) {
    $content = __(‘Category Archives:’, ‘wplook’);
    $content .= ‘ ‘ . single_cat_title(“”, false);
    }

    After….
    elseif ( is_category() ) {
    $content = __(”, ‘wplook’);
    $content .= ‘ ‘ . single_cat_title(“”, false);
    }

    Thanks again.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘remove "category archives" text from title’ is closed to new replies.