Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #174473
    Jennifer Sims
    Participant

    Dear Support,

    I’d like to change the word ‘Category’ in the heading of the archive page. Or if I can not change the word ‘category’ hide. Please advise.

    Regards Jen

    #174489
    tikaram
    Participant

    @jennifersimsdesign-com-au: The word can be changed but you will need to create a child theme and do the customization within the child theme. If you are comfortable to work with child themes let me know I can guide you through the process. Let me know the word you would like to use instead of category.

    Regards,
    Tikaram

    #174516
    Jennifer Sims
    Participant

    thanks Tikaram,

    I’ve created a child theme and ready to add in the CSS details, the word I’d like instead of category is:
    Section

    For example

    Section: Office Notes

    Archive for Section: Office Notes

    Thank you.

    Regards Jen

    #174644
    Skandha
    Participant

    @jennifersimsdesign-com-au: Hello Jen,
    Go to => Child Theme folder => functions.php and add the following Code.

    add_filter( 'get_the_archive_title', function ($title) {
    
        if ( is_category() ) {
    
                $title = single_cat_title( 'Section: ', false );
    
            } elseif ( is_tag() ) {
    
                $title = single_tag_title( '', false );
            }
    
        return $title;
    
    });

    This should remove the Category text.
    Let me know if this works out!
    Kind Regards,
    Skandha

    #174666
    Jennifer Sims
    Participant

    Thank you Skandha,

    Looks perfect!

    Great work and thank you.

    #174669
    Skandha
    Participant

    @jennifersimsdesign-com-au: Hello Jennifer, I hope I was able to resolve your issue. If it’s not too much trouble, I have a quick request: could you please leave an honest review?
    https://wordpress.org/support/theme/solid-construction/reviews/#new-post
    Your review will help others know what to expect when they’re looking for the support I offer. Even a sentence or two would be hugely appreciated. Thanks, and if there’s anything else at all that I can do to help, don’t hesitate to let me know. Have a good day! 🙂

    Kind Regards,
    Skandha

    #174767
    Jennifer Sims
    Participant

    Certainly I can leave a five star!

    One quick question is it possible to have the main menu background deeper in height?

    #174865
    Skandha
    Participant

    @jennifersimsdesign-com-au: Hello Jenifer,
    Do you mean to increase the height of the main menu container? Please post in your site URL as well.

    Kind Regards,
    Skandha

    #175006
    Jennifer Sims
    Participant

    Yes I mean the main menu container

    #175064
    Skandha
    Participant

    @jennifersimsdesign-com-au: Go to => Appearance => Customize => Additional CSS and add the following CSS Code.

    #header-navigation-area .wrapper {
    	height:100px;
    }
    .navigation-classic .layout-two .main-navigation li:first-child a, .menu-toggle {
    	line-height:100px;
    }

    Let me know if this works out!
    Kind Regards,
    Skandha

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Change wording of Category in archive section’ is closed to new replies.