Categories

Featured templates

Featured templates

Featured templates

Featured templates

Featured templates

Featured templates

Featured templates

Featured templates

Featured templates

Featured templates

Featured templates

Featured templates

Featured templates

Featured templates

CherryFramework 3. How to edit Category/Archives page layout

Rating: 5.0/5. From 2 votes.
Please wait...

This tutorial shows how to edit content on Category & Archives pages in CherryFramework 3.x.

CherryFramework 3. How to edit Category/Archives page layout
  1. Category page title is called out from wp-content/themes/CherryFramework/title.php file:

    Cherry Framework 3. How to edit CategoryArchives page layout-1
  2. Connect to server via FTP or open cPanel File manager. Copy the title.php file from the wp-content/themes/CherryFramework folder into child theme, i.e. into wp-content/themes/themeXXXXX directory.

  3. Open the copied file in the wp-content/themes/themeXXXXX directory on server, find and edit the following line:

    <?php printf( theme_locals("category_archives").": %s", '<small>' . single_cat_title( '', false ) . '</small>' ); ?>

    Change it to:

    <?php printf('<small>' . single_cat_title( '', false ) . '</small>' ); ?>

    Save changes in the title.php file and check the Category page layout after that.

  4. To edit Archives page layout, copy the wp-content/themes/CherryFramework/loop/loop-archives.php file into the wp-content/themes/themeXXXXX/loop folder on server. Please note in case loop folder is missing in child theme, you will need to create the folder.

  5. Open copied loop-archives.php file, find and delete the archive_lists code:

      <div class="archive_lists"> 
       <div class="row-fluid">
       <div class="span4">
       <h3 class="archive_h"><?php echo theme_locals("last_posts"); ?></h3>
       <div class="list styled check-list">
       <ul>
       <?php $archive_30 = get_posts('numberposts=30');
       foreach($archive_30 as $post) : ?>
       <li><a href="<?php the_permalink(); ?>"><?php the_title();?></a></li>
       <?php endforeach; ?>
       </ul>
       </div>
       </div>
       <div class="span4">
       <h3 class="archive_h"><?php echo theme_locals("archives_month"); ?></h3>
       <div class="list styled check-list">
       <ul>
       <?php wp_get_archives('type=monthly'); ?>
       </ul>
       </div>
       </div>
       <div class="span4">
       <h3 class="archive_h"><?php echo theme_locals("archives_subject"); ?></h3>
       <div class="list styled check-list">
       <ul>
       <?php wp_list_categories( 'title_li=' ); ?>
       </ul>
       </div><!-- .archive_lists -->  
      

    Removal of the code will delete the following lists on Archives page:

    Cherry Framework 3. How to edit CategoryArchives page layout-2
  6. Save changes in the loop-archives.php file. Refresh front-end with Ctrl/Cmd+F5 hotkeys.

Feel free to check the detailed video tutorial below:

CherryFramework 3. How to edit Category/Archives page layout
This entry was posted in WordPress Tutorials and tagged archives, category, CherryFramework3, layout, page, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket