how to remove header image from one page only?
-
Hello
i am using twentytwelve – child theme right now
and codes in my functions.php file under child theme looks like the below (because i was trying to set the dimensions of header image)right now, i would like to remove the header image from travelmolecule.com/gallery. this is the only page i want the header image to be removed, other pages should still show the header image
how do i do that?
I tried various solutions from what i found online, insert the code into the functions.php file under child theme but doesnt work ??
please help!
——————————-
CURRENT CODE IN FUNCTIONS.PHP
——————————-<?php /* This function will run after the parents functions.php */ add_action( 'after_setup_theme', 'post_theme_setup' ); if ( !function_exists( 'post_theme_setup' ) ): function post_theme_setup() { /* Code goes here! */ add_filter( 'twentytwelve_header_image_width', 'my_header_width' ); add_filter( 'twentytwelve_header_image_height', 'my_header_height' ); function my_header_width($width) { $width = 1200; return $width; } function my_header_height($height) { $height = 400; return $height; } endif;
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
- The topic ‘how to remove header image from one page only?’ is closed to new replies.