{"id":1622337,"date":"2020-05-13T14:16:21","date_gmt":"2020-05-13T14:16:21","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1622337"},"modified":"2021-05-19T06:24:53","modified_gmt":"2021-05-19T06:24:53","slug":"adding-dynamic-content-to-your-homepage","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/fr\/course-lesson\/adding-dynamic-content-to-your-homepage\/","title":{"rendered":"Adding Dynamic Content to Your Homepage"},"content":{"rendered":"\n<p>There are many ways to present your site&#8217;s homepage. There are also countless ways to use Toolset to <a href=\"https:\/\/toolset.com\/fr\/glossary\/wp_query\/\">query your content<\/a> and display custom lists of posts on it.<\/p>\n\n\n\n<p>This page provides one convenient design technique. Of course, you can use any approach you prefer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to add dynamic content to a homepage<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Adjust your theme options for the homepage<\/strong><\/h3>\n\n\n\n<p>For a great looking hero section, you should adjust the following theme options for your homepage:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Stretch your page content to the full width of your screen.<\/li><li>Disable the page title.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Divide the homepage into full-width sections<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Use a separate <strong>Container <\/strong>block for each section.<\/li><li>Click to select the <strong>Container <\/strong>block for a given section.<\/li><li>In the right sidebar, expand the <strong>Background <\/strong>section to add a color or an image to the whole section.<\/li><li>In the right sidebar, expand the <strong>Advanced <\/strong>section and under <strong>Block Alignment<\/strong>, select <strong>Full Width<\/strong>.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Create a View to display a dynamic list of posts<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Edit your homepage and find the section where you want to insert a dynamic list of posts.<\/li><li>Click to insert the <strong>View <\/strong>block inside the <strong>Container <\/strong>for that page section.<\/li><li>Use the WordPress Block Editor to design your View.<\/li><li>Use Toolset blocks to add&nbsp;<a href=\"https:\/\/toolset.com\/glossary\/dynamic-fields\/\">dynamic fields<\/a>&nbsp;to the template.<\/li><\/ol>\n\n\n\n<p>Your View can display content in different ways which we explain in separate lessons:<\/p>\n\n\n\n<div class=\"tb-fields-and-text\" data-toolset-blocks-fields-and-text=\"360284519b991feb492b582c7d84725f\"><\/div>\n\n\n\n<div class=\"tb-fields-and-text\" data-toolset-blocks-fields-and-text=\"360284519b991feb492b582c7d84725f\"><ul>\n  <li><a href=\"https:\/\/toolset.com\/fr\/course-lesson\/styling-views-and-archives\/\">Style a list of posts<\/a><\/li>\n  <li><a href=\"https:\/\/toolset.com\/fr\/course-lesson\/creating-a-view\/\">Display posts in a grid<\/a><\/li>\n  <li><a href=\"https:\/\/toolset.com\/fr\/course-lesson\/creating-sliders-with-dynamic-post-content\/\">Create sliders with dynamic post content<\/a><\/li>\n  <li><a href=\"https:\/\/toolset.com\/fr\/course-lesson\/displaying-a-list-of-posts-on-a-map\/\">Display a list of posts on a map<\/a><\/li>\n  <li><a href=\"https:\/\/toolset.com\/fr\/course-lesson\/creating-a-custom-search\/\">Create a list of posts with a custom search<\/a><\/li>\n<\/ul><\/div>\n\n\n\n<p><\/p>\n","protected":false},"author":4341,"featured_media":1709779,"template":"","related-lesson":[8417,8411],"class_list":["post-1622337","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-designing","related-lesson-view"],"_links":{"self":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1622337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":5,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1622337\/revisions"}],"predecessor-version":[{"id":2060871,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/course-lesson\/1622337\/revisions\/2060871"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/media\/1709779"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/media?parent=1622337"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/fr\/wp-json\/wp\/v2\/related-lesson?post=1622337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}