Home Forums Pro Themes Construction Base Pro Project page appears as "Archives: Projects"

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #74484
    Heather McGregor
    Participant

    I’m not sure how or why, but my project page in Construction Base Pro appears with “Archives:” in front of the page header – how can I remove this?

    #74508
    wensolutions
    Keymaster

    Hello @heather23,

    To remove the “Archives:” in archive page, you have to activate the child theme.

    Please refer to below-given link on how you can create and activate the child theme.

    http://wptravel.io/how-to-create-a-child-theme/

    Now add below-given code in your child themes functions.php file.

    function construction_base_pro_child_custom_cat_title_removal ($title) {
    
        if ( is_category() ) {
    
                $title = single_cat_title( '', false );
    
            } elseif ( is_tag() ) {
    
                $title = single_tag_title( '', false );
    
            } elseif ( is_author() ) {
    
                $title = '<span class="vcard">' . get_the_author() . '</span>' ;
    
            } elseif ( is_archive() ) {
    
            	$title = preg_replace('/^\w+: /', '', $title);
    
            }
    
        return $title;
    
    }
    
    add_filter( 'get_the_archive_title', 'construction_base_pro_child_custom_cat_title_removal

    Hope this helps.

    If you have any issue further please let us know.

    Thank you.

    Regards!!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.