[resolved] White background won´t go away (8 posts)

  1. marcusgrip
    Posted 6 years ago #

    Hi! I have tried hard to figure this out by myself but i can´t but i am sure this is an easy problem to solve.

    Checkout http://www.astoff.se and you will se a white background where the text and stuff is, i am trying to make it transparent or at least find where it is in the code so i can change it to an image or change color. Let me know if you want to see my style.css code or some other code.


  2. esmi
    Forum Moderator
    Posted 6 years ago #

    Your post content area is currently black - not white. Do you still have a problem finding the correct place to make changes?

  3. marcusgrip
    Posted 6 years ago #

    Oh sorry if i was explaining wrong, i meant(i think) the page, the white background behind the one you are talking about. The other places, like the one you meant is no problem, just the white area.

  4. Funkphenomenon
    Posted 6 years ago #

    You are using a non-transparent repeating white image with the text 'astoff' as background for #page. If you want that to be transparent, use an image with a transparent background color instead of white.

  5. marcusgrip
    Posted 6 years ago #

    that is the header and is set to no-repeat. i tested now to take it away in the code and replace with black color and it´s just black on the header and the white background is still there so it is something else but really thanks for giving me feedback on what i should try.

    what you may refer to is the image called like background_ltr or something that is found if you rightclick on the website and click "show source"(or something like that) but when i look(i have looked everywhere) for that piece of code, i can´t find it! i will try to replace that image and see if that´s the issue but since i can´t find the code i can´t change name to the file and therefore it has to be jpeg wich does not support transparency, wich is making that another problem.

    thanks! the search continues...

  6. marcusgrip
    Posted 6 years ago #

    yes, i can change the image now but can´t find the code.

    i click show source in the website and it shows this piece of code some lines from the top:

    <style type="text/css" media="screen">

    #page { background: url("http://www.astoff.se/wp-content/themes/default/images/kubrickbg-ltr.jpg") repeat-y top; border: none; }


    the "kubrickbg-ltr.jpg" image i do find ofcourse and can change it to a color but since i can´t find the code i can´t change the name or the repeat option so i can´t make a transparent GIF image to replace it. Anyone can help me? I have seriously checked every .php or .css file that the theme is containing!

  7. esmi
    Forum Moderator
    Posted 6 years ago #

    It's in header.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 } ?>
  8. marcusgrip
    Posted 6 years ago #

    thanks alot man! now i see why i didn´t find it. the "-ltr" end of the image name was not included in the code, now it is fixed and i thank you alot!

Topic Closed

This topic has been closed to new replies.

About this Topic