• Hey, I figured out how to get rid of “Category Archives;” from the top of a category page but I would still like to have the name of the category.

    From a previous forum thread I put the code into the custom css:
    .archive-header {display: none;}

    which wiped out the entire display. what code do I put in after the “display: ” part of the code instead of “none”

    Thanks for your help in advance

Viewing 8 replies - 1 through 8 (of 8 total)
  • It’s better if you delete that rule from CSS and change that title from the category template file via child theme

    Thread Starter bradzazzara

    (@bradzazzara)

    OK. If its not too much trouble can I ask exactly why that is? would it not produce the same effect?

    If you wanna do it via CSS you have to create a new class and put it in a div and you can exclude with display:none; only the one you want to exclude

    Thread Starter bradzazzara

    (@bradzazzara)

    is there any way you could explain that for a beginner? I am new to this as within the past couple days and although I have learned a lot, I am still not any where close to knowing how to do anything super technical.

    you are saying that I cannot use this

    .archive-header {display: none;}

    and just insert

    display: "default category name"

    if not, could you please help me figure out what to insert. I would very very appreciative

    Thread Starter bradzazzara

    (@bradzazzara)

    i have been able to set the child theme up but after that I have no clue how to precede ??

    Can you post a link to your site?

    What you wrote doesn’t exist at all.
    No, I’m just saying that you have to change it via template.
    1) Download leaf child theme and install it via FTP in /wp-content/themes/
    2) Copy archive.php from original leaf theme on your desktop and then load it in child theme folder
    3) Open the file and search the part with
    printf( __( 'Category Archives: %s', 'leaf' ), '<span>' . single_cat_title( '', false ) . '</span>' );
    and change it in:
    printf( __( '%s', 'leaf' ), '<span>' . single_cat_title( '', false ) . '</span>' );
    4) Do the same thing for the other archives page code line, you can easily see them, “Tag Archives:”, “Yearly Archives:” and so, if you want to.
    5) Now you can remove that CSS rule that you’ve added in Custom CSS area, and you’ll see only the name of the categories, tags, etc.

    Edit: OK, I read now, so jump directly to point 2)

    Thread Starter bradzazzara

    (@bradzazzara)

    https://www.exposedtraveler.com

    if you go to the menu under “my jobs” and click “teaching in thailand”

    the header title reads “category archives: teaching english in thailand”

    Ideally i want it to just say “teaching english in thailand”

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘"Category Archives: Category Name" change to just "Category name’ is closed to new replies.