remove header from attachment page
-
Hello,
I have a question about the raidrops theme. I would like to remove the header only from the attachment page. Does anyone know if this is possible. On all the other pages I want to keep it visible.
Gr. ddreamgirl
-
Hi ddreamgirl,
Can you post url of your website, it would be easier to see and try to resolve issue
Thanks
Cheers
TRHi tahoerock
It’s an 18+ site, so I’m not sure I can add it here π
I’m sorry. Maybe you have some suggestions without seeing the site?Ddreamgirl
Click on my name and send it to me. It will stay protected. I cannot help you without seeing the ID of your site. You want to change.
TRHi ddreamgirl
I would like to remove the header only from the attachment page.
Yes you can
1. Create a child theme.
2. Copy image.php , set child theme/image.php
image.php template customize.
line 14
get_header( $raindrops_document_type );change below
get_header( 'attachment' );3. Copy header.php, set child theme/ header-attachment.php
Please delete do not need code
Thank you.
Yes theme author is the best source.
To theme author: please, maybe you should put some link or explantion on how to create child theme for your theme.
Not everyone is skilled enough.
Dream girl will appriciate it. Im pretty sure. π
Thanks
Cheers
TRHow to cleate child theme of Raindrops
please click english tab
Example child theme
http://www.tenman.info/download/child-raindrops.zip
Thank you.
@tahoerock Thanks! I was indeed seaching how to create a child theme π
@nobita Thanks for the suport. I’m gonna try it π
Hi dreamgirl
Im not gonna do anything for now. Theme author gave you better solution than I would so I will wait your action.
Theme author KNOWS the theme the best and what he has done in a minutes it takes to the stranger much longer time. I do not know that theme, but could be helpful to some extend.
It should be OK
LET ME KNOW IF YOU GET TO THE TROUBLES.
Cheers
TRHi Again,
So I made this child theme, which works up until now.
Changed the image.php and made the header-attachment.php, took out all the code (is this right? and now the header doesn’t show anymore but lost the layout of the page. Colors and photo size and that kind of stuff. this happends only on the attachment page, the rest is fine.
Could you please tell me what I done wrong?In order to make the right , need to make sure your site.
Must needs lines below
if ( !defined( 'ABSPATH' ) ) { exit; } global $template, $raindrops_current_theme_slug; $raindrops_link_unique_text = raindrops_link_unique_text(); do_action( 'raindrops_pre_part_' . basename( __FILE__, '.php' ) ); do_action( 'raindrops_pre_part_' . basename( __FILE__, '.php' ) . '_' . basename( $template ) ); ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta http-equiv="content-type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" /> <?php wp_head(); ?> </head><body id="<?php echo $raindrops_current_theme_slug; ?>" <?php body_class( $raindrops_conditionals_body_class );?>><div id="<?php echo esc_attr( raindrops_warehouse( 'raindrops_page_width' ) ); ?>" class="<?php echo esc_attr( 'yui-' . raindrops_warehouse( 'raindrops_col_width' ) ); ?> hfeed">It works perfect now!
Nobita, thank you very much for the suport! You are great! (And so is your theme!)
Great to see, Theme support is always good choice.
Congratulation ddreamgirl
Cheers
TRMany thanks to you also Tahoerock for the help!
The topic ‘remove header from attachment page’ is closed to new replies.
