Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #130394
    dadoonan
    Participant

    The following menu item displays all posts (currently only one) assigned to the category In The News:
    http://www.bearformaine.com/category/in-the-news

    Two questions:

    How do I remove the phrase “Category:”

    There is no option to display http://www.bearformaine.com/category/in-the-news as “No Sidebar ( Full Width )”. What is the work-around to accomplish this?

    #130430
    tikaram
    Participant

    @dadoonan : To remove the phrase category. You will need to download and activate the child theme from the this link and add the following code in the functions.php file of child theme.

    add_filter( 'get_the_archive_title', function ( $title ) {
    
        if( is_category() ) {
    
            $title = single_cat_title( '', false );
    
        }
    
        return $title;
    
    });

    To make category full width. Add the following additional css

    .category .sidebar-primary {
    	display: none;
    }
    #main {
    	width: 100%;
    }

    Let me know if this resolves your issue.

    Regards,
    Tikaram

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘editing how a category is displayed’ is closed to new replies.