{"id":54819,"date":"2015-09-22T05:55:47","date_gmt":"2015-09-22T09:55:47","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=54819"},"modified":"2016-02-24T02:34:44","modified_gmt":"2016-02-24T07:34:44","slug":"drupal-7-x-how-to-add-custom-read-more-link-to-home-page-blocks","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/drupal-7-x-how-to-add-custom-read-more-link-to-home-page-blocks.html","title":{"rendered":"Drupal 7.x. How to add custom &#8220;Read More&#8221; link to Home page blocks"},"content":{"rendered":"<p>\r\n<p>This tutorial shows how to change <strong>Read More link<\/strong> to custom one in <strong>Drupal 7.x.<\/strong>.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=8oCGhJFJP-E?width=1280&amp;height=720\" rel=\"prettyPhoto\">Drupal 7.x. How to add custom &#8220;Read More&#8221; link to Home page blocks<\/a><\/p>\r\n<ol>\r\n<li>\r\n<p>First, log into <strong>Drupal back-end<\/strong> and check what content is assigned to block: rollover block and click the <strong>Edit View<\/strong> link. Find content type under the <strong>Filter criteria <\/strong>heading.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Next, navigate to <strong>Structure -> Content types -> {your content type} -> Manage fields<\/strong> tab:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-1-300x210.png\" alt=\"Drupal 7.x. How to add custom Read More link to Home page blocks-1\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-54820\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-1-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-1-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-1.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Fill out two fields: <strong>Add new field<\/strong> and <strong>Select a field type<\/strong>. Set the last one to Link. <strong>The Form element to edit the data<\/strong> field will change to Link automatically, click the <strong>Save<\/strong> button:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-2-300x210.png\" alt=\"Drupal 7.x. How to add custom Read More link to Home page blocks-2\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-54821\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-2-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-2-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-2.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>On the next screen click the <strong>Save field settings<\/strong> button.<\/p>\r\n<\/li>\r\n<li>\r\n<p>On next screen configure new link field: edit field Label, set field as Required, select link type, set default values as link target, css classes and title.  Save field configuration.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Now you should add new field to block: navigate to <strong>Home page &#8211; Block<\/strong>, rollover block, click the <strong>Edit View<\/strong> link. Under the <strong>Fields<\/strong> heading click the <strong>Add<\/strong> button:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-3-300x210.png\" alt=\"Drupal 7.x. How to add custom Read More link to Home page blocks-3\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-54822\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-3-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-3-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-3.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>In the <strong>Add fields<\/strong> popup window, insert your new field name into the <strong>Search<\/strong>, check new field name in the search results and click the <strong>Apply (all displays)<\/strong> button:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-4-300x210.png\" alt=\"Drupal 7.x. How to add custom Read More link to Home page blocks-4\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-54823\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-4-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-4-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-4.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n<li>\r\n<p>With that done, you&#8217;ll be redirected to <strong>Configure field screen<\/strong>, click the <strong>Style Settings<\/strong> tab. Check the <strong>Customize field HTML<\/strong> option, select <strong>DIV<\/strong> in the <strong>HTML element<\/strong> menu. Check the <strong>Create a CSS class<\/strong> option and insert your class into the <strong>CSS class<\/strong> field:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-5.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-5-300x210.png\" alt=\"Drupal 7.x. How to add custom Read More link to Home page blocks-5\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-54824\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-5-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-5-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-5.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Next, disable default Read More link that was set up with the Home page block.<\/p>\r\n<\/li>\r\n<li>\r\n<p>In the block, click the <strong>Content:Link<\/strong> option. In the popup option, check the  <strong>Exclude from display<\/strong> field. Next, open the <strong>Style settings<\/strong> tab in the same popup window and copy its <strong>CSS Class<\/strong>. Click the <strong>Apply<\/strong> button.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Now open the new field you&#8217;ve added to the block and paste <strong>CSS class<\/strong> into it.<\/p>\r\n<\/li>\r\n<li>\r\n<p>The last step is to add new field into the content. Navigate to <strong>Content<\/strong>, filter Content by <strong>Type<\/strong> using the corresponding field and click <strong>Edit<\/strong> link:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-6.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-6-300x210.png\" alt=\"Drupal 7.x. How to add custom Read More link to Home page blocks-6\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-54825\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-6-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-6-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-6.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>Scroll the Node editor page down to find new field you&#8217;ve created, fill out the <strong>Title and URL<\/strong> fields. Click the Save changes button and check new button link at the front-end:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-7.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-7-300x210.png\" alt=\"Drupal 7.x. How to add custom Read More link to Home page blocks-7\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-54826\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-7-300x210.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-7-150x105.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/09\/Drupal-7.x.-How-to-add-custom-Read-More-link-to-Home-page-blocks-7.png 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=8oCGhJFJP-E?width=1280&amp;height=720\" rel=\"prettyPhoto\">Drupal 7.x. How to add custom &#8220;Read More&#8221; link to Home page blocks<\/a><\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to change <strong>Read More link<\/strong> to custom one in <strong>Drupal 7.x.<\/strong>.<\/p>\n","protected":false},"author":65,"featured_media":54831,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[723],"tags":[618,593,933,572,1009],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/54819"}],"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=54819"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/54819\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/54831"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=54819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=54819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=54819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}