does anybody know which css file or php file uses kubrickbg-ltr.jpg ? If u do, please let me know I have been searching forever now.
does anybody know which css file or php file uses kubrickbg-ltr.jpg ? If u do, please let me know I have been searching forever now.
I've just run a full search on all files in the current default theme and I couldn't find any mention of that image anywhere. Could it be left over from an earlier version?
Yes...from what I can gather (just using logic -- no other insight here) that was used when Kubrick had a gray background behind the sidebar. I talk about it a little in the following tutorials.
[link moderated]
Oh I see. Thanks guys
Hi,
Any joy on this question? I too have been searching for the file that calls kubrickbg-ltr.jpg but to no avail.
I know how to change the image to what I want from the video tutorials posted above but I want to get rid of it altogether.
Does anyone know what file it is called from?
Cheers,
B
You can't get rid of it since it actually makes the background of your content. You could do a couple of things.
1. Make a copy of kubrickbgwide.jpg and rename it kubrickbg-ltr.jpg and replace the original kubrickbg-ltr.jpg with it. That will remove the gray background and make the background of the sidebar white like the body, or
2. Open header.php in the theme and find the following code that calls the sidebar background image based on the text direction.
<style type="text/css" media="screen">
<?php
// Checks to see whether it needs a sidebar or not
if ( empty($withcomments) && !is_single() ) {
?>
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
<?php } ?>
</style>
Change the first line after the IF statement to the same as the second line like below -- essentially it will always call kubrickbgwide.jpg.
<?php
// Checks to see whether it needs a sidebar or not
if ( empty($withcomments) && !is_single() ) {
?>
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
<?php } ?>
</style>
Remember, rename this theme if you edit it...if you don't, then if you do an auto-upgrade in the future, it will be overwritten and you will lose your changes.
Hey figaro,
Thanks for the above - I managed to make a work around for what I needed.
Might use the Header version of what you proposed instead of my work around.
I needed to leave the header anmd post sections totally transparent as I have a large bg image I wanted to use - i found out how to place it where i wanted it but always had the kubrick background image over the top, therefore obscuring the background image in the header section.
My workaround was to rename the offending image to something totally irrelevant and therefore it doesn't show - enabling us to see the BG image through the header secion.
Thanks.
B
Hi Figaro!
is it possible to change the kubrickbg-ltr.jpg into a transparent .png?
I´ve tried to change the kubrickbgwide.jpg into a transparent .png and used it with:
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
<?php } ?>
But no luck so far.
Is it possible to make the background transparent?
Best
Eivind
Yea, you can make it anything you want. Just open it in and editor like Photoshop and make the gray area transparent...I don't think you will like the results, but you can give it a try.
@figaro
It workt just as I wanted it:-)
thanx
"does anybody know which css file or php file uses kubrickbg-ltr.jpg ? "
I was also having the same problem but I think I have found the solution.
Look for this line in header.php :
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg")
Pay attention on this part (still on the same line):
/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg
That is what you're looking for. I am using a wider background image (a .png) but I kept the naming convention and did not remove the -ltr part. I only changed .jpg to .png
You can see it here - http://sleepingbabyphotos.com/
Good answer godfly - exactly what I needed :)
Surprised to see this hard-coded into a php file though! ;)
You must log in to post.