• Resolved CoconutJROTC

    (@coconutjrotc)


    Hello.
    I am trying to hide the Category Archives:_____ text. Is there a specific place to go or code to place anywhere that will do this? Thank you for your time and help.

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

    (@mikeill)

    Freezing updates is a cool idea. It probably makes sense that any WordPress installation will require some maintenance, which someone needs to be accountable for, or security is seriously at risk.

    Possible options are including it in developers maintenance or hosting fee, letting the client manage it.

    If a client doesn’t want to maintain the site, maybe a static html site would make more sense, in which case, “

    You should be able to use any web site mirroring tool to do it, even from using ‘wget’ from a UNIX box with..

    wget -nc -r https://yoursite.com” (https://www.ads-software.com/support/topic/export-to-static-html)

    The proper way to hide the header text, “Category Archives:” for the Customizr theme is to duplicate the class-content-headings.php page within your child theme. So if you haven’t already created one, add a folder within your child theme called “parts” and copy the class-content-headings.php file from the customizr/parts folder.
    Then remove whatever parts of apply_filters( 'tc_category_archive_title' , __( 'Category Archives :' , 'customizr' ) ), you don’t want displayed. This part: __() is actually a function that enables translations.

    No that’s the wrong way. You don’t need to do that at all.

    The proper way is using filters the right way.
    So for example
    adding in your child-theme functions.php

    add_filter('tc_category_archive_title',function(){ return ''; });

    Hope this helps.

    Ah yes. You’re right. Thank you for that correction.

    @ acub: Thanks for the line. Your solution to add header.archive-header {display: none;} to the CSS is slim and easy to add/remove.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Hiding "Category Archives"’ is closed to new replies.