Viewing 15 replies - 1 through 15 (of 22 total)
  • You need a child-theme for that. And in it’s functions.php add this:

    add_filter( 'tc_category_archive_title' , '__return_empty_string');

    This will remove the “Category archives” in all category pages.
    Hope this helps.

    Thread Starter shaneco

    (@shaneco)

    Sorry, that did not work. Any other ideas?

    Hi shaneco,
    that code works, so.. where did you place it?
    I see on your site you’re not using a child theme.

    Thread Starter shaneco

    (@shaneco)

    I placed it at the bottom of functions.php

    Of the customizr functions.php? I told you to use a child-theme because if you put something in the parent functions.php you’ll lose the changes once you update the theme.
    But.. anyway it should still work.
    Could you paste the content of this functions.php in pastebin.com and then write the link here?

    Thread Starter shaneco

    (@shaneco)

    Where’s the code I gave you?
    As you can see isn’t there.

    Thread Starter shaneco

    (@shaneco)

    I removed it. It doesn’t work.

    ok

    i added

    .archive h1.format-icon{
    visibility: hidden;
    }

    in custom css and it works ??

    This way you hide the whole title right?
    You can do

    .archive h1.format-icon {
        visibility: hidden;
    }
    
    .archive h1.format-icon span {
        visibility: visible;
    }

    This way you’ll show just the title of the category but not “Category Archives”, the problem is that you’ll have the space before the title.
    You can also add:
    display:block to the second css rule, this way the title will go on a new line, but you’ll have a “big” space above..
    Another way is this:

    .archive h1.format-icon {
        visibility: hidden;
        position: relative;
    }
    
    .archive h1.format-icon span {
        visibility: visible;
        display: block;
        position: absolute;
        top: 0;
    }

    But again, the best way is to use that filter in the child-theme which for some weird reason doesn’t work for shane

    Thread Starter shaneco

    (@shaneco)

    Entered all of this code into the custom CSS section of the advanced options and they both made no changes.

    And you deleted them clearly…
    ’cause I cannot see any custom css in your page

    Could you please re enter them?

    Anyway in your case you don’t have to use .format-icon, ’cause you don’t display an icon before the title. So:

    .archive-header {
        visibility: hidden;
        position: relative;
    }
    
    .archive-header span {
        visibility: visible;
        display: block;
        position: absolute;
        top: 0;
    }

    this is your blog page when the css above applied live:
    https://i61.tinypic.com/o8uipf.jpg

    Hope this helps.

    LOL

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Remove "category archives" in page title’ is closed to new replies.