{"id":2548,"date":"2018-04-18T19:37:58","date_gmt":"2018-04-19T02:37:58","guid":{"rendered":"https:\/\/www.elegantthemes.com\/documentation\/?p=2548"},"modified":"2018-04-27T15:54:59","modified_gmt":"2018-04-27T22:54:59","slug":"divi-template-hooks","status":"publish","type":"post","link":"https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/","title":{"rendered":"Divi Template Hooks"},"content":{"rendered":"<h2>\u00a0footer.php<\/h2>\n<h3>et_after_main_content<\/h3>\n<p>Fires after the main content, before the footer is output.<\/p>\n<p><strong>Type:\u00a0<\/strong>Action<br \/>\n<strong>Since:<\/strong> 3.1<\/p>\n<hr \/>\n<h2>header.php<\/h2>\n<h3>et_head_meta<\/h3>\n<p>Fires in the head, before <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_head\/\" target=\"_blank\" rel=\"noopener\"><code>wp_head()<\/code><\/a> is called. This action can be used to insert elements into the beginning of the head before any styles or scripts.<\/p>\n<p><strong>Type:<\/strong> Action<br \/>\n<strong>Since:<\/strong> 1.0<\/p>\n<h3>et_html_top_header<\/h3>\n<p>Filters the HTML output for the top header.<\/p>\n<p><strong>Type:<\/strong> Filter<br \/>\n<strong>Since:\u00a0<\/strong>3.1<\/p>\n<table class=\"responsiveTable\">\n<thead>\n<tr>\n<th>Param<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>$top_header<\/td>\n<td><code>string<\/code><\/td>\n<td>HTML output for the top header<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>et_html_slide_header<\/h3>\n<p>Filters the HTML output for the slide header.<\/p>\n<p><strong>Type:<\/strong> Filter<br \/>\n<strong>Since:\u00a0<\/strong>3.1<\/p>\n<table class=\"responsiveTable\">\n<thead>\n<tr>\n<th>Param<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>$slide_header<\/td>\n<td><code>string<\/code><\/td>\n<td>HTML output for the slide header<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>et_html_logo_container<\/h3>\n<p>Filters the HTML output for the logo container.<\/p>\n<p><strong>Type:<\/strong> Filter<br \/>\n<strong>Since:\u00a0<\/strong>3.1<\/p>\n<table class=\"responsiveTable\">\n<thead>\n<tr>\n<th>Param<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>$logo_container<\/td>\n<td><code>string<\/code><\/td>\n<td>HTML output for the logo container<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>et_header_top<\/h3>\n<p>Fires at the end of the <em>et-top-navigation<\/em>\u00a0element, just before its closing tag.<\/p>\n<p><strong>Type:<\/strong> Action<br \/>\n<strong>Since: <\/strong>1.0<\/p>\n<h3>et_html_main_header<\/h3>\n<p>Filters the HTML output for the main header.<\/p>\n<p><strong>Type:<\/strong> Filter<br \/>\n<strong>Since:\u00a0<\/strong>3.1<\/p>\n<table class=\"responsiveTable\">\n<thead>\n<tr>\n<th>Param<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>$main_header<\/td>\n<td><code>string<\/code><\/td>\n<td>HTML output for the main header<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>et_before_main_content<\/h3>\n<p>Fires after the header, before the main content is output.<\/p>\n<p><strong>Type:<\/strong> Action<br \/>\n<strong>Since:\u00a0<\/strong>3.1<\/p>\n<hr \/>\n<h2>index.php<\/h2>\n<h3>et_pb_index_blog_image_width<\/h3>\n<p>Filters the width used to retrieve featured images via <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_get_attachment_image_src\" target=\"_blank\" rel=\"noopener\"><code>wp_get_attachment_image_src()<\/code><\/a>.<\/p>\n<p><strong>Type:<\/strong> Filter<br \/>\n<strong>Since:\u00a0<\/strong>1.0<\/p>\n<table class=\"responsiveTable\">\n<thead>\n<tr>\n<th>Param<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>$width<\/td>\n<td><code>string<\/code><\/td>\n<td>Width value as a string<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>et_pb_index_blog_image_height<\/h3>\n<p>Filters the height used to retrieve featured images via <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_get_attachment_image_src\" target=\"_blank\" rel=\"noopener\"><code>wp_get_attachment_image_src()<\/code><\/a>.<\/p>\n<p><strong>Type:<\/strong> Filter<br \/>\n<strong>Since:\u00a0<\/strong>1.0<\/p>\n<table class=\"responsiveTable\">\n<thead>\n<tr>\n<th>Param<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>$height<\/td>\n<td><code>string<\/code><\/td>\n<td>Height value as a string<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>page.php<\/h2>\n<h3>et_pb_index_blog_image_width<\/h3>\n<p>See <a href=\"#index.php\">index.php<\/a> above for definition.<\/p>\n<h3>et_pb_index_blog_image_height<\/h3>\n<p>See <a href=\"#index.php\">index.php<\/a> above for definition.<\/p>\n<hr \/>\n<h2>single.php<\/h2>\n<h3>et_before_content<\/h3>\n<p>Fires right before <code>the_content()<\/code>\u00a0is called.<\/p>\n<p><strong>Type:<\/strong> Action<br \/>\n<strong>Since:\u00a0<\/strong>1.0<\/p>\n<h3>et_pb_index_blog_image_width<\/h3>\n<p>See <a href=\"#index.php\">index.php<\/a> above for definition.<\/p>\n<h3>et_pb_index_blog_image_height<\/h3>\n<p>See <a href=\"#index.php\">index.php<\/a> above for definition.<\/p>\n<hr \/>\n<h2>single-project.php<\/h2>\n<h3>et_pb_portfolio_single_image_width<\/h3>\n<p>Filters the width used to retrieve featured images via <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_get_attachment_image_src\" target=\"_blank\" rel=\"noopener\"><code>wp_get_attachment_image_src()<\/code><\/a>.<\/p>\n<p><strong>Type:<\/strong> Filter<br \/>\n<strong>Since:\u00a0<\/strong>1.0<\/p>\n<table class=\"responsiveTable\">\n<thead>\n<tr>\n<th>Param<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>$width<\/td>\n<td><code>string<\/code><\/td>\n<td>Width value as a string<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>et_pb_portfolio_single_image_height<\/h3>\n<p>Filters the height used to retrieve featured images via <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_get_attachment_image_src\" target=\"_blank\" rel=\"noopener\"><code>wp_get_attachment_image_src()<\/code><\/a>.<\/p>\n<p><strong>Type:<\/strong> Filter<br \/>\n<strong>Since:\u00a0<\/strong>1.0<\/p>\n<table class=\"responsiveTable\">\n<thead>\n<tr>\n<th>Param<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>$height<\/td>\n<td><code>string<\/code><\/td>\n<td>Height value as a string<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Learn about the hooks that are available in Divi&#8217;s template files.<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,25],"tags":[],"class_list":["post-2548","post","type-post","status-publish","format-standard","hentry","category-developers","category-hooks"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Elegant Themes Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Divi Template Hooks - Elegant Themes Documentation\" \/>\n<meta property=\"og:description\" content=\"Learn about the hooks that are available in Divi&#039;s template files.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/\" \/>\n<meta property=\"og:site_name\" content=\"Elegant Themes Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-19T02:37:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-04-27T22:54:59+00:00\" \/>\n<meta name=\"author\" content=\"Dustin Falgout\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dustin Falgout\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/hooks\\\/divi-template-hooks\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/hooks\\\/divi-template-hooks\\\/\"},\"author\":{\"name\":\"Dustin Falgout\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/0e2387f96b40940c4d33e54bac52e79b\"},\"headline\":\"Divi Template Hooks\",\"datePublished\":\"2018-04-19T02:37:58+00:00\",\"dateModified\":\"2018-04-27T22:54:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/hooks\\\/divi-template-hooks\\\/\"},\"wordCount\":371,\"articleSection\":[\"Developer Documentation\",\"Hooks\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/hooks\\\/divi-template-hooks\\\/\",\"url\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/hooks\\\/divi-template-hooks\\\/\",\"name\":\"Divi Template Hooks - Elegant Themes Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#website\"},\"datePublished\":\"2018-04-19T02:37:58+00:00\",\"dateModified\":\"2018-04-27T22:54:59+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/0e2387f96b40940c4d33e54bac52e79b\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/hooks\\\/divi-template-hooks\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/hooks\\\/divi-template-hooks\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/developers\\\/hooks\\\/divi-template-hooks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Divi Template Hooks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#website\",\"url\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/\",\"name\":\"Elegant Themes Documentation\",\"description\":\"Just another WordPress site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.elegantthemes.com\\\/documentation\\\/#\\\/schema\\\/person\\\/0e2387f96b40940c4d33e54bac52e79b\",\"name\":\"Dustin Falgout\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?s=96&d=mm&r=g\",\"caption\":\"Dustin Falgout\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Elegant Themes Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/","og_locale":"en_US","og_type":"article","og_title":"Divi Template Hooks - Elegant Themes Documentation","og_description":"Learn about the hooks that are available in Divi's template files.","og_url":"https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/","og_site_name":"Elegant Themes Documentation","article_published_time":"2018-04-19T02:37:58+00:00","article_modified_time":"2018-04-27T22:54:59+00:00","author":"Dustin Falgout","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Dustin Falgout","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/#article","isPartOf":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/"},"author":{"name":"Dustin Falgout","@id":"https:\/\/www.elegantthemes.com\/documentation\/#\/schema\/person\/0e2387f96b40940c4d33e54bac52e79b"},"headline":"Divi Template Hooks","datePublished":"2018-04-19T02:37:58+00:00","dateModified":"2018-04-27T22:54:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/"},"wordCount":371,"articleSection":["Developer Documentation","Hooks"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/","url":"https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/","name":"Divi Template Hooks - Elegant Themes Documentation","isPartOf":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/#website"},"datePublished":"2018-04-19T02:37:58+00:00","dateModified":"2018-04-27T22:54:59+00:00","author":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/#\/schema\/person\/0e2387f96b40940c4d33e54bac52e79b"},"breadcrumb":{"@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.elegantthemes.com\/documentation\/developers\/hooks\/divi-template-hooks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.elegantthemes.com\/documentation\/"},{"@type":"ListItem","position":2,"name":"Divi Template Hooks"}]},{"@type":"WebSite","@id":"https:\/\/www.elegantthemes.com\/documentation\/#website","url":"https:\/\/www.elegantthemes.com\/documentation\/","name":"Elegant Themes Documentation","description":"Just another WordPress site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.elegantthemes.com\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.elegantthemes.com\/documentation\/#\/schema\/person\/0e2387f96b40940c4d33e54bac52e79b","name":"Dustin Falgout","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4e8ced4a3ccff2b6839ae64b6e01266bb3da7dcbd5d0d391a1886029e7feac13?s=96&d=mm&r=g","caption":"Dustin Falgout"}}]}},"_links":{"self":[{"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/posts\/2548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/comments?post=2548"}],"version-history":[{"count":7,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/posts\/2548\/revisions"}],"predecessor-version":[{"id":3693,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/posts\/2548\/revisions\/3693"}],"wp:attachment":[{"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/media?parent=2548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/categories?post=2548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elegantthemes.com\/documentation\/wp-json\/wp\/v2\/tags?post=2548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}