{"id":56267,"date":"2015-10-26T07:25:44","date_gmt":"2015-10-26T11:25:44","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=56267"},"modified":"2017-08-10T06:05:40","modified_gmt":"2017-08-10T10:05:40","slug":"cherryframework-4-how-to-add-read-more-buttons-for-blog-layout-shortcode","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/cherryframework-4-how-to-add-read-more-buttons-for-blog-layout-shortcode.html","title":{"rendered":"CherryFramework 4. How to add &#8220;Read More&#8221; buttons for Blog Layout shortcode"},"content":{"rendered":"<p>This tutorial shows how to add &#8216;Read more&#8217; button to Blog Layout shortcode in CherryFramework 4 templates.<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=7hLOoA1hc5U?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 4. How to add &#8220;Read More&#8221; buttons for Blog Layout shortcode<\/a>\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/service-center\/\">\r\n<img decoding=\"async\" src=\"\/help\/files\/banners\/inline\/Banner-3-(835-x100).jpg\" \/>\r\n<\/a>\r\n<\/div>\r\n<ol>\r\n  <li>\r\n\t<p><strong>Locating the shortcode on your page<\/strong><\/p>\r\n\t<p>The first thing you need to do is to check shortcode parameters to find out what file to edit for adding <strong>Read more<\/strong> button there. Please locate shortcode on the page, it will look similar to the example below: <\/p>\r\n\t[cherry_blog posts_per_page=&quot;4&quot; order=&quot;DESC&quot; orderby=&quot;date&quot; paged=&quot;yes&quot; layout_type=&quot;grid&quot; filter_type=&quot;none&quot; grid_column=&quot;grid-4&quot; columns=&quot;4&quot; columns_gutter=&quot;10&quot; timeline_item_width=&quot;48&quot; use_timeline_breakpoint=&quot;yes&quot; timeline_breakpoint=&quot;month&quot; timeline_breakpoint_date_format=&quot;F j, Y&quot; show_marker_date=&quot;no&quot; timeline_marker_date_format=&quot;F j, Y&quot; pagination_previous_label=&quot;\uf104&quot; pagination_next_label=&quot;\uf105&quot; class=&quot;grid-type-1&quot; template_type=&quot;type-1&quot;] \r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_1-300x66.png\" alt=\"36.Monstroid.Add_Read_more_button_blog_layout_shortcode_1\" width=\"300\" height=\"66\" class=\"aligncenter size-medium wp-image-56268\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_1-300x66.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_1-150x33.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_1-1024x226.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_1.png 1256w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li> \r\n  <li>\r\n    <p><strong>Locating the file to edit<\/strong><\/p>\r\n\t<p>The next step is to locate file based on shortcode parameters. <\/p>\r\n\t<ol> \r\n\t\t<li>\r\n\t\t\t<p>Please check <strong>layout_type<\/strong>, it can be set to  &#8220;grid&#8221;, &#8220;masonry&#8221; or &#8220;timeline&#8221;. In this example it&#8217;s set to &#8216;grid&#8217;.<\/p>\r\n\t\t<\/li> \r\n\t\t<li>\r\n\t\t\t<p>Next, check <strong>template_type<\/strong>, in our case it&#8217;s &#8216;type-1&#8217;.<\/p>\r\n\t\t<\/li> \r\n\t\t<li> \r\n\t\t\t<p>The last part of filename complex is file type, for example, <strong>standard<\/strong>, <strong>image<\/strong>, <strong>gallery <\/strong>, etc. Therefore we need to locate <strong>layout-grid-type-1-video.tmpl<\/strong> file to add Read more button to <strong>video<\/strong> post displayed on the page by using Blog Layout shortcode.<\/p>\r\n\t\t<\/li> \r\n\t\r\n\t\t<li>\r\n\t\t\t<p>Log into your hosting control panel and select <strong>File Manager<\/strong> or connect to FTP.<\/p>\r\n\t\t<\/li> \r\n\t\t<li>\r\n\t\t\t<p>Select <strong>wp-content\/themes\/monstroid\/blog-layouts\/tmpl\/<\/strong> directory to reach shortcode source files:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_2-300x66.png\" alt=\"36.Monstroid.Add_Read_more_button_blog_layout_shortcode_2\" width=\"300\" height=\"66\" class=\"aligncenter size-medium wp-image-56269\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_2-300x66.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_2-150x33.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_2-1024x226.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_2.png 1256w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\t\t<\/li> \r\n\t\t<li>\r\n\t\t\t<p>Open your file, in our case it&#8217;s <strong>layout-grid-type-1-video.tmpl<\/strong> one.<\/p>\r\n\t\t<\/li> \r\n\t<\/ol> \r\n   <\/li>\r\n   <li>\r\n\t<p><strong>Editing file<\/strong><\/p>  \r\n\t<p>Add read mode button code below the <strong>content<\/strong> part by changing code from:<\/p>\r\n\t<pre>\r\n\t\t%%CONTENT%%\r\n\t<\/pre>\r\n\t<p>to<\/p>\r\n\t<pre>\r\n\t\t%%CONTENT%%\r\n\t\t&lt;div class=&quot;read_more&quot;&gt;\r\n\t\t\t%%BUTTON where=&quot;loop&quot;%%\r\n\t\t&lt;\/div&gt;\r\n\t<\/pre>\r\n   <\/li>\r\n   <li>\r\n\t<p>Save changes and check your site, the button appears now. You can also add specific style rules to this button by using <strong>.read_more<\/strong> class name in your CSS code: <\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_3-300x148.png\" alt=\"36.Monstroid.Add_Read_more_button_blog_layout_shortcode_3\" width=\"300\" height=\"148\" class=\"aligncenter size-medium wp-image-56270\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_3-300x148.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_3-150x74.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_3-1024x504.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/36.Monstroid.Add_Read_more_button_blog_layout_shortcode_3.png 1256w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\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=7hLOoA1hc5U?width=1280&amp;height=720\" rel=\"prettyPhoto\">CherryFramework 4. How to add &#8220;Read More&#8221; buttons for Blog Layout shortcode<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to add &#8216;Read more&#8217; button to Blog Layout shortcode in CherryFramework 4 templates.<\/p>\n","protected":false},"author":59,"featured_media":56272,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2017,728],"tags":[788,536,2012,1009,1415],"class_list":["post-56267","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-monstroid-tutorials","category-wordpress-tutorials","tag-blog","tag-button","tag-cherryframework4","tag-read-more","tag-shortcode"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/56267","targetHints":{"allow":["GET"]}}],"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\/59"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=56267"}],"version-history":[{"count":1,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/56267\/revisions"}],"predecessor-version":[{"id":82635,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/56267\/revisions\/82635"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/56272"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=56267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=56267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=56267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}