• my category on my leaf theme are achiving.i mean when i click on any category tab it display Category Archives: Business or news etc.
    how can i stop this achiving

Viewing 5 replies - 1 through 5 (of 5 total)
  • You will need to create a child theme.

    To make changes to the theme you need to download the child theme and then activate it. (Instructions below.) Then you will be able to make your changes in the style.css folder.

    You can download the child theme here by pressing the download Zip button. Then you go to Appearance => Themes => Install Themes Tab.

    At the top of the screen choose the upload button. Browse on your computer for the zip file you just downloaded. Then press the Install Now button. Then activate your child theme.

    To change the heading on the category pages you need to make a copy of the file archive.php in your new leaf-child-master folder. You can find this file in the parent theme folder called leaf.

    Then go to Appearance => Editor and open the archive.php file.

    Find this bit of code:

    single_tag_title( '', false ) . '</span>' );
    					} elseif ( is_category() ) {
    						printf( __( 'Category Archives: %s', 'leaf' ), '<span>' . single_cat_title( '', false ) . '</span>' );

    Change it to:

    single_tag_title( '', false ) . '</span>' );
    					} elseif ( is_category() ) {
    						printf(  '<span>' . single_cat_title( '', false ) . '</span>' );

    by deleting this:

    __( 'Category Archives: %s', 'leaf' ),

    hey Im new to this so bear with me

    I did all the steps you said above. the child theme is activated and I am now using it. however I dont know where to paste the code you entered above.

    on the right side of the editor I have two options. functions.php and style.css

    do i just copy what you put above into one of those?

    thanks for the help

    or on the editor page under “select theme to edit:” do i choose leaf theme, not leaf child?

    would that not just be changing the leaf theme itself though?

    thanks

    Perfect. The style.css is where you put code that “styles” your website such as color changes, font size and borders. Put the CSS code I sent you in style.css and save the file. Refresh your page and see if it works.

    On the editor page choose the leaf-child theme. The reason I suggested you make a child theme is that when the developer of Leaf comes up with a new improved Leaf theme you can download it without loosing your custom changes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to stop category achiving’ is closed to new replies.