{"id":942,"date":"2018-09-21T18:21:04","date_gmt":"2018-09-21T18:21:04","guid":{"rendered":"https:\/\/forum.assemblewp.com\/?p=942"},"modified":"2021-04-29T22:48:47","modified_gmt":"2021-04-29T22:48:47","slug":"hook-elements","status":"publish","type":"post","link":"https:\/\/sites.generatepress.com\/dispatch\/hook-elements\/","title":{"rendered":"Hooks &#8211; Custom Theme Elements"},"content":{"rendered":"<p>Dispatch uses a few Hook Elements and Block Elements to create some Custom Elements in the site.<br \/>All of them provide dynamic output and should not require any changes to their content.<\/p>\n<p>For more info on the Hook Element read here:<\/p>\n<p><blockquote class=\"wp-embedded-content\" data-secret=\"MmPl8acv17\"><a href=\"https:\/\/docs.generatepress.com\/article\/hooks-element-overview\/\">Hooks Element Overview<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Hooks Element Overview&#8221; &#8212; Documentation\" src=\"https:\/\/docs.generatepress.com\/article\/hooks-element-overview\/embed\/#?secret=MmPl8acv17\" data-secret=\"MmPl8acv17\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2>Secondary Navigation<\/h2>\n<p>This hook calls the Secondary Navigation and displays below the header \/ header element. It also uses Display Rules so it is excluded from All Posts.<br \/>Please note: the Secondary Navigation Location in the Customizer is set to No Navigation.<\/p>\n<h2>WPSP Open Wrapper &amp; WPSP Close Wrapper<\/h2>\n<p>These two hooks create a Div wrap around the Enter Header, Summary and Entry Footer of the WP Show Posts. This is used to create the custom styling you see here.<\/p>\n\n\n<h2 class=\"wp-block-heading\">Post Navigation Block<\/h2>\n\n\n\n<h5 class=\"wp-block-heading\">For more information see this document:<\/h5>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-documentation wp-block-embed-documentation\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"tidL0FL0ak\"><a href=\"https:\/\/docs.generatepress.com\/article\/block-element-post-navigation\/\">Block Element &#8211; Post Navigation<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Block Element &#8211; Post Navigation&#8221; &#8212; Documentation\" src=\"https:\/\/docs.generatepress.com\/article\/block-element-post-navigation\/embed\/#?secret=tidL0FL0ak\" data-secret=\"tidL0FL0ak\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Dispatch uses a few Hook Elements and Block Elements to create some Custom Elements in the site.All of them provide dynamic output and should not &#8230; <a title=\"Hooks &#8211; Custom Theme Elements\" class=\"read-more\" href=\"https:\/\/sites.generatepress.com\/dispatch\/hook-elements\/\" aria-label=\"Read more about Hooks &#8211; Custom Theme Elements\">Read more<\/a><\/p>\n","protected":false},"author":19,"featured_media":1628,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,2],"tags":[],"class_list":["post-942","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-styling","category-time-saving","infinite-scroll-item","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"_links":{"self":[{"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/posts\/942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/comments?post=942"}],"version-history":[{"count":0,"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/posts\/942\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/media\/1628"}],"wp:attachment":[{"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/media?parent=942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/categories?post=942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/tags?post=942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}