A link to the website will go a lot so I can see the code or a link to the theme would be good.
Thanks. Forgot that. It’s http://www.bqcreative.com/blog for now.
Looks like my friend who I let in to try to play with it did something else in the code and now my sidebar is … below… the rest of the content. I think I can fix that myself though.
I know that going into the CSS, I can define the height and width I want the header to be, but in the “header” page of my wordpress admin site, it still says that the banner has to be 940×198 to work. If I just size it to the size I want in the CSS, it distorts the image and won’t let me upload the regular 800×150 px header.
I was able to fix the layout problem on the columns, so they display correctly side by side now, but still can’t fix the header issue.
If I put in the height and width in the CSS under header or give it a specific background image, it still doesn’t work… any help? Thanks đ
It’s gonna be set in functions.php, as a filter I believe
// The height and width of your custom header. You can hook into the theme's own filters to change these values.
// Add a filter to twentyten_header_image_width and twentyten_header_image_height to change these values.
define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940 ) );
define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198 ) );
Awesome! That worked perfectly! Just never thought to look in the functions section. Thanks so much!
Does anyone know why changing just the height from 198 to 100 in functions.php would break another plugin.
The site works but I’m getting that in the admin pages.
http://blog.patyuen.com
I’m getting this:
Warning: Cannot modify header information – headers already sent by (output started at /wp-content/themes/twentyten/functions.php:1) in /wp-content/plugins/faq-tastic/faq-tastic.php on line 197
Warning: Cannot modify header information – headers already sent by (output started at /wp-content/themes/twentyten/functions.php:1) in /wp-content/plugins/faq-tastic/faq-tastic.php on line 198
Line 197 and 198 is:
header(“Cache-Control: no-cache, must-revalidate”); // HTTP/1.1
header(“Expires: Mon, 26 Jul 1997 05:00:00 GMT”); // Date in the past
in this section:
function init ()
{
if (is_admin ())
{
session_cache_limiter ('nocache');
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
}
}
Another error:
Warning: Cannot modify header information – headers already sent by (output started at /wp-content/themes/twentyten/functions.php:1) in /wp-admin/theme-editor.php on line 89
which is:
header("Location: $location");
RVoodoo, thanks for that info. I was wondering how to do that, too.
Ignore the above. It’s fixed. It was caused by some odd behavior when I used Filezilla’s remote editor.When I made the change locally and uploaded the file, it works perfectly.
Where is “functions.php?”
yay =) this worked and really helps thank you thank you.
Thanks, Rev. Voodoo.
For those who compare and contrast, I think this is probably the best way to do it because it also affects the upload admin page.
It still gives me the Crop screen, but it correctly bases the max size on the function value, such that I don’t actually have to crop anything and get my full image.
[following up]
Although, actually it still gives a black background going through the Crop screen rather than my GIF transparency.
Hmmmmm.
I will force it by setting white background rather than transparent.
But does anyone know how to make it not go to the Crop screen after changing the header size in functions.php, per this post?
That is, if we make the size something other than 940×198 in functions.php, can we also make it use the new value in choosing to go to the Crop screen or not?
[–following up again–]
Sorry for cluttering the thread up with lots of posts….
I was incorrect saying it took me to the Crop screen despite the size change in functions.php.
I had changed my image size accidentally.
When the image size exactly matches the changed size in functions.php, it does automatically skip the Crop screen.
Thanks again Rev. Voodoo
I was going to start my own topic but found this; Rev. Voodoo’s solution works perfectly, furthermore he is a gentleman and a scholar.