{"id":59270,"date":"2016-01-11T05:57:22","date_gmt":"2016-01-11T10:57:22","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=59270"},"modified":"2016-02-15T04:21:16","modified_gmt":"2016-02-15T09:21:16","slug":"cherryframework-3-how-to-edit-categoryarchives-page-layout","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/cherryframework-3-how-to-edit-categoryarchives-page-layout.html","title":{"rendered":"CherryFramework 3. How to edit Category\/Archives page layout"},"content":{"rendered":"<p>This tutorial shows how to edit content on <strong>Category &amp; Archives pages<\/strong> in CherryFramework 3.x.<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=tN4RemcG93Y?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 3. How to edit Category\/Archives page layout<\/a>\r\n<ol>\r\n<li><p>Category page title is called out from <strong>wp-content\/themes\/CherryFramework\/title.php<\/strong> file:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/12\/Cherry-Framework-3.-How-to-edit-CategoryArchives-page-layout-1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/12\/Cherry-Framework-3.-How-to-edit-CategoryArchives-page-layout-1-300x210.png\" alt=\"Cherry Framework 3. How to edit CategoryArchives page layout-1\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-59271\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/Cherry-Framework-3.-How-to-edit-CategoryArchives-page-layout-1-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/Cherry-Framework-3.-How-to-edit-CategoryArchives-page-layout-1-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/Cherry-Framework-3.-How-to-edit-CategoryArchives-page-layout-1.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n   <p>Connect to server via <a target=\"_blank\" href=\"\/help\/how-upload-files-server-2.html\">FTP<\/a> or open <a target=\"_blank\" href=\"\/help\/how-to-manage-filesfolders-permissions-with-total-commander-filezilla-and-cpanel-webhost-manager-whm.html\">cPanel File manager<\/a>. Copy the <strong>title.php<\/strong> file from the <strong>wp-content\/themes\/CherryFramework<\/strong> folder into child theme, i.e. into <strong>wp-content\/themes\/themeXXXXX<\/strong> directory.<\/p><\/li>\r\n  <li>\r\n    <p>Open the copied file in the <strong>wp-content\/themes\/themeXXXXX<\/strong> directory on server, find and edit the following line:<\/p>\r\n    <pre class=\"brush:php\">&lt;?php printf( theme_locals(&quot;category_archives&quot;).&quot;: %s&quot;, '&lt;small&gt;' . single_cat_title( '', false ) . '&lt;\/small&gt;' ); ?&gt;<\/pre>\r\n    <p>Change it to:<\/p>\r\n    <pre class=\"brush:php\">&lt;?php printf('&lt;small&gt;' . single_cat_title( '', false ) . '&lt;\/small&gt;' ); ?&gt;<\/pre>\r\n    <p>Save changes in the <strong>title.php<\/strong> file and check the Category page layout after that.<\/p>\r\n  <\/li>\r\n<li>\r\n    <p>To edit <strong>Archives page<\/strong> layout, copy the <strong>wp-content\/themes\/CherryFramework\/loop\/loop-archives.php<\/strong> file into the <strong>wp-content\/themes\/themeXXXXX\/loop<\/strong> folder on server. Please note in case loop folder is missing in child theme, you will need to create the folder.<\/p>\r\n  <\/li>\r\n<li>\r\n  <p>Open copied <strong>loop-archives.php file<\/strong>, find and delete the archive_lists code:<\/p>\r\n  <pre class=\"brush:php\">\r\n  &lt;div class=&quot;archive_lists&quot;&gt; \r\n   &lt;div class=&quot;row-fluid&quot;&gt;\r\n   &lt;div class=&quot;span4&quot;&gt;\r\n   &lt;h3 class=&quot;archive_h&quot;&gt;&lt;?php echo theme_locals(&quot;last_posts&quot;); ?&gt;&lt;\/h3&gt;\r\n   &lt;div class=&quot;list styled check-list&quot;&gt;\r\n   &lt;ul&gt;\r\n   &lt;?php $archive_30 = get_posts('numberposts=30');\r\n   foreach($archive_30 as $post) : ?&gt;\r\n   &lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot;&gt;&lt;?php the_title();?&gt;&lt;\/a&gt;&lt;\/li&gt;\r\n   &lt;?php endforeach; ?&gt;\r\n   &lt;\/ul&gt;\r\n   &lt;\/div&gt;\r\n   &lt;\/div&gt;\r\n   &lt;div class=&quot;span4&quot;&gt;\r\n   &lt;h3 class=&quot;archive_h&quot;&gt;&lt;?php echo theme_locals(&quot;archives_month&quot;); ?&gt;&lt;\/h3&gt;\r\n   &lt;div class=&quot;list styled check-list&quot;&gt;\r\n   &lt;ul&gt;\r\n   &lt;?php wp_get_archives('type=monthly'); ?&gt;\r\n   &lt;\/ul&gt;\r\n   &lt;\/div&gt;\r\n   &lt;\/div&gt;\r\n   &lt;div class=&quot;span4&quot;&gt;\r\n   &lt;h3 class=&quot;archive_h&quot;&gt;&lt;?php echo theme_locals(&quot;archives_subject&quot;); ?&gt;&lt;\/h3&gt;\r\n   &lt;div class=&quot;list styled check-list&quot;&gt;\r\n   &lt;ul&gt;\r\n   &lt;?php wp_list_categories( 'title_li=' ); ?&gt;\r\n   &lt;\/ul&gt;\r\n   &lt;\/div&gt;&lt;!-- .archive_lists --&gt;  \r\n  <\/pre>\r\n  <p>Removal of the code will delete the following lists on <strong>Archives<\/strong> page:<\/p>\r\n \r\n<a href=\"\/help\/wp-content\/uploads\/2015\/12\/Cherry-Framework-3.-How-to-edit-CategoryArchives-page-layout-2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/12\/Cherry-Framework-3.-How-to-edit-CategoryArchives-page-layout-2-300x210.png\" alt=\"Cherry Framework 3. How to edit CategoryArchives page layout-2\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-59272\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/Cherry-Framework-3.-How-to-edit-CategoryArchives-page-layout-2-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/Cherry-Framework-3.-How-to-edit-CategoryArchives-page-layout-2-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/12\/Cherry-Framework-3.-How-to-edit-CategoryArchives-page-layout-2.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n  <li>\r\n    <p>Save changes in the <strong>loop-archives.php<\/strong> file. Refresh front-end with Ctrl\/Cmd+F5 hotkeys. \r\n   <\/p>\r\n  <\/li>\r\n  <\/ol>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=tN4RemcG93Y?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 3. How to edit Category\/Archives page layout<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to edit content on <strong>Category &amp; Archives pages<\/strong> in CherryFramework 3.x.<\/p>\n","protected":false},"author":65,"featured_media":59273,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[2146,687,2097,482,572,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/59270"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=59270"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/59270\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/59273"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=59270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=59270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=59270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}