{"id":5457396,"date":"2014-11-06T18:03:21","date_gmt":"2014-11-06T18:03:21","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/header-in-static-pages\/"},"modified":"2016-08-22T04:11:42","modified_gmt":"2016-08-22T04:11:42","slug":"header-in-static-pages","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/header-in-static-pages\/","title":{"rendered":"Header in Static Pages"},"content":{"rendered":"<p>Hi, I recently started using WordPress and I am starting to understand it yet. I am creating an ecommerce site and need some advice.<\/p>\n<p>The index is an static page, I managed to put the header image on static pages using this code. <\/p>\n<pre><code>&lt;?php if ( $woo_options[ &#039;woo_homepage_banner&#039; ] == &quot;true&quot; ) { ?&gt;\n\n    \t&lt;div class=&quot;homepage-banner&quot;&gt;\n    \t\t&lt;?php\n\t\t\t\tif ( $woo_options[ &#039;woo_homepage_banner&#039; ] == &quot;true&quot; ) { $banner = $woo_options[&#039;woo_homepage_banner_path&#039;]; }\n\t\t\t\tif ( $woo_options[ &#039;woo_homepage_banner&#039; ] == &quot;true&quot; &amp;&amp; is_ssl() ) { $banner = preg_replace(&quot;\/^http:\/&quot;, &quot;https:&quot;, $woo_options[&#039;woo_homepage_banner_path&#039;]); }\n\t\t\t?&gt;\n\t\t\t    &lt;img src=&quot;&lt;?php echo $banner; ?&gt;&quot; alt=&quot;&quot; \/&gt;\n    \t\t&lt;h1&gt;&lt;span&gt;&lt;?php echo $woo_options[&#039;woo_homepage_banner_headline&#039;]; ?&gt;&lt;\/span&gt;&lt;\/h1&gt;\n    \t\t&lt;div class=&quot;description&quot;&gt;&lt;?php echo wpautop($woo_options[&#039;woo_homepage_banner_standfirst&#039;]); ?&gt;&lt;\/div&gt;\n    \t&lt;\/div&gt;\n\n    &lt;?php } ?&gt;<\/code><\/pre>\n<p>However I would like to remove this header in other static pages. How could I do this without removing it on the index page, which is an static page? <\/p>\n<p>Thanks in advance!<\/p>\n","protected":false},"template":"","class_list":["post-5457396","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5457396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5457396\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5457396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}