Can't upload custom header image properly
I loved this amazing theme and start to improve enad edit for my site. I had a need to change the height of my custom header image. I edited it in style.css and tried to upload through my WP dashboard in Graphene’s Header section. Each time whenever I try to upload my new header image, it doesn’t allow me to upload with exactly the same height size of new image. It forces me to crop and publish in default height size.
The strange thing on this, after I edited completly theme display dimensions, all went OK. My new weight size became 1165 as I wished. But when try to upload my custom header image which I prepared in 1165×99,I have to upload it as 1165×198 px. This height size is theme’s default size and anyhow I can’y change it ! I try to figure it out since morning but somehow I can’t find it solution in forum.
my site is : http://merryandhealthy.com
Can anyone help me with this issue,please ?
PS: At the moment, because of bad apperance the particular change, I had to upload an image as 1165×198 that is allowed me by theme.
Thanks in advance.
AnonymousFebruary 14, 2012 at 3:14 pm #24163
So, I’m repeating this (But, with different values) – https://forum.graphene-theme.com/graphene-support/header-image-1#post-16102
Add this to your child theme’s
And this to your child theme’s style sheet or in Graphene Options –> Display –> Custom CSS
AnonymousFebruary 14, 2012 at 7:25 pm #24164
Thanks for help. I followed instructions to create firstly a child theme and then complete the changes as I wanted. But being a newbie and unexperienced in .php and .css, I couldn’t see any .php files in child theme files. So I try to switch back to parent thems’s function.php and add there the codes you present here. So…I got syntax error.. I tried to fix it but no hope…
Could you tell me in another word, how I can have a complete child theme firstly than edit my issue,please ? Shall I copy all .php templates from paren theme into child theme and then edit what I want there or how ?
Soo sorry, but as I mentioned I’m newbie in all !
Thanks in advance.Mod
I couldn’t see any .php files in child theme files.
There won’t be any there. The child theme folder is one that you create. The only thing you would initially have there is your styles.css file.
So I try to switch back to parent thems’s function.php and add there the codes you present here
Do not do this. (Lots of reasons, the primary one is that you can crash your blog.) Just open a text editor, open a new file, copy the code Prasanna gave you and paste it into the file. Save the file into your child theme folder with the name
functions.phpand then FTP it to your child theme folder on your server. Should take care of your problem.
Shall I copy all .php templates from paren theme into child theme
For all those listening, you NEVER want to do this. It will cause all sorts of problems. The only files you want in your child theme folder are files that you create.
AnonymousFebruary 14, 2012 at 11:30 pm #24166
Thank you so much Kenneth, you made me clear all what I couldn’t understand.
I did as you told.now I have child theme, but somehow .css does not work. Site is siply in white background and all the items layout toward down. I think, something simple is still missing at all !
How can I fix this matter ?
Thanks in advance.
AnonymousFebruary 14, 2012 at 11:54 pm #24167
” Warning: Cannot modify header information – headers already sent by (output started at /home/galerist/public_html/wp-content/themes/graphene-child/functions.php:3) in /home/galerist/public_html/wp-includes/pluggable.php on line 866 “
I got this notification.. Ijust wanted to fix the height size of my custom header image and now I have a lot of problems to solve.
Child theme created, re-edited but now I have contents, widget, all others on a white sheet !
Is it really such difficult to change just a header image in this beautiful theme ?Mod
Cannot modify header information – headers already sent by
This is the infamous “whitespace” problem. You have spaces or even returns at the end of your functions.php file. (Some text-editors add these–I have no idea why.) Edit your functions file to get rid of these, reupload it, and everything should be fine.
I like notepad++ for windoze (macpad++ is the Mac alternative, TexEdit is another good one for Mac), because it has a function that will strip all trailing spaces in order to prevent this problem.
AnonymousFebruary 15, 2012 at 5:52 am #24169
Thank you soo much Kenneth, it helped me. I just was smiling at that… It seems a very big problem and solution was only delate first free line in function.php and all is OK !
Anyway…resolved…thaks a lot once again…
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.