BLACK FRIDAY BIGGEST SALE EVER!! Use coupon code BF33 to get 33% discount on all our products. Enjoy!

How do I remove 'category: … '

Home Forums Masonic Free How do I remove 'category: … '

This topic contains 6 replies, has 4 voices, and was last updated by  leehoothe19 2 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1305636

    jurrien
    Participant

    Link

    How do I remove the black block of ‘category:England’? I would like to have the ‘white part’ directly after the top menu bar.

    Thank you!

    #1305812

    ashishsthanp
    Moderator

    Hello, @jurrien

    You can add following code inside Appearance > Customize > Additional CSS :

    
    .archive .page-header .page-title {
      display: none;
    }
    

    Also, post your queries on the relative forum.

    Regards,
    ThemeGrill Support Team.

    • This reply was modified 6 months, 3 weeks ago by  ashishsthanp.
    #1321933

    voyage.scolaire
    Participant

    Hello

    I just want remove the text “Category :” before the name category in the black box.
    How can I do it

    Thank you

    #1322017

    ashishsthanp
    Moderator

    Hello, @voyage.scolaire

    Since this feature is not available on our theme and needs lots of code customization, we cannot help you out on this issue from this forum.

    If you really want this feature, you can contact our customization team.
    https://themegrill.com/customization/

    Regards,
    ThemeGrill Support Team.

    • This reply was modified 2 months, 4 weeks ago by  ashishsthanp.
    #1322028

    voyage.scolaire
    Participant

    Hello @ashishsthanp.

    The Url Of my web site is http://www.clairsapin.org

    Thank you

    #1322385

    ashishsthanp
    Moderator

    @voyage.scolaire
    Please follow these steps:
    1. Create a child theme for Masonic as instructed in the following link:

    Tutorial on Creating WordPress Child Theme

    Or you can directly download the child theme from here or from the list.

    2. On the functions.php the file inside the child theme’s root folder, add the following code:

    if ( ! function_exists('masonic_header_title') ) :
    
       /**
        * Show the title in header
        */
       function masonic_header_title() {
          if (is_archive()) {
             if (is_category()) :
                $masonic_header_title = single_cat_title('', FALSE);
    
             elseif (is_tag()) :
                $masonic_header_title = single_tag_title('', FALSE);
    
             elseif (is_author()) :
                /* Queue the first post, that way we know
                 * what author we're dealing with (if that is the case).
                 */
                the_post();
                $masonic_header_title = sprintf(__('Author: %s', 'masonic'), '<span class="vcard">' . get_the_author() . '</span>');
                /* Since we called the_post() above, we need to
                 * rewind the loop back to the beginning that way
                 * we can run the loop properly, in full.
                 */
                rewind_posts();
    
             elseif (is_day()) :
                $masonic_header_title = sprintf(__('Day: %s', 'masonic'), '<span>' . get_the_date() . '</span>');
    
             elseif (is_month()) :
                $masonic_header_title = sprintf(__('Month: %s', 'masonic'), '<span>' . get_the_date('F Y') . '</span>');
    
             elseif (is_year()) :
                $masonic_header_title = sprintf(__('Year: %s', 'masonic'), '<span>' . get_the_date('Y') . '</span>');
    
             else :
                $masonic_header_title = __('Archives', 'masonic');
    
             endif;
          }
          elseif (is_404()) {
             $masonic_header_title = __('404: Page Not Found', 'masonic');
          } elseif (is_search()) {
             $masonic_header_title = sprintf( __( 'Search Results For: %s', 'masonic' ), get_search_query() );
          } elseif (is_page()) {
             $masonic_header_title = get_the_title();
          } elseif (is_single()) {
             $masonic_header_title = get_the_title();
          } else {
             $masonic_header_title = '';
          }
    
          return $masonic_header_title;
       }
    
    endif;

    Thanks.

    #1325862

    leehoothe19
    Participant

    thanks for your sharing, i will apply for my blog and if i get trouble i will comebank for solve,

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.