Viewing 13 replies - 1 through 13 (of 13 total)
  • You will probably need to start customising the theme’s template files via a child theme.

    Thread Starter imranf255

    (@imranf255)

    Thanks for the reply. How can I customize the theme. What and where to change?

    Do not edit the Twenty Fourteen theme itself. It is the current default WordPress theme and having access to an original, unedited, copy of the theme is vital in many situations. First create a child theme for your changes.

    Thread Starter imranf255

    (@imranf255)

    Is there any code I need to change in Child Theme? I am not very technical guy, your help will be highly appreciated.

    I have just checked your site and your child theme is not active yet.

    edit a copy of category.php in your child teme;

    change this line:
    <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentyfourteen' ), single_cat_title( '', false ) ); ?></h1>

    for example to:
    <h1 class="archive-title"><?php single_cat_title( '' ); ?></h1>

    Thread Starter imranf255

    (@imranf255)

    Thanks for the help friends, I’ll update you soon.

    Thread Starter imranf255

    (@imranf255)

    I have created a child theme, now where to add this code. Should I create a file in child theme namely “category.php” or I can add something in style.css??

    Thanks in advance

    copy the full file category.php from the parent theme into the child theme, and edit it there….

    Thread Starter imranf255

    (@imranf255)

    Thanks friends especially alchymyth and esmi.

    I have created the category.php file and removed header completely.

    It worked ??

    The only problem I have is that there blank space before my post, is there way to move post & content side bar a bit up?

    Does anyone know why my posts are showing up as archives? This is just stupid! My old template did not have this issue… Also th text would not center and after an adjustment the consumer view centered and the back editor is locked in short left mode. Really love this template but WordPress has some work to do to fix these bugs and problems!

    I wanted to remove the archive header only for certain categories, so I made the following change in category.php in my child theme.

    I wrapped the header in an if statement like so:

    <?php
        $cat_title = single_cat_title( '', false);
        if ($cat_title != 'Category without Header') : ?>
            <header class="archive-header">
                <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentyfourteen' ), $cat_title ); ?></h1>
    
                <?php
                    // Show an optional term description.
                   $term_description = term_description();
                   if ( ! empty( $term_description ) ) :
                       printf( '<div class="taxonomy-description">%s</div>', $term_description );
                    endif;
                ?>
            </header><!-- .archive-header -->
     <?php
         endif;
    ?>

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Removing "Category Archives:" on top of header’ is closed to new replies.