• Resolved sexyplus

    (@sexyplus)


    I’m hoping someone can tell me how to fix a problem I caused. I am using Pink Beauty theme and all was great. Then I messed around in the WP-Admin and changed header image and color. My header image completely disappeared and I have spent 2 days trying to get it back with no luck. I have compared the site header.php, index.php, and css files with the original downloaded ones from the theme and I can’t find any differences. My blog is https://www.plus-size-blog.com.

    Any help you can give me will be appreciated!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi SexyPlus,

    I think I’ve got it.

    Try getting rid of this embedded style in the <head> . . .</head> block on the page and your background image returns:

    <style type='text/css'>
    <!--#header { background: url('https://plus-size-blog.com/wp-content/themes/pink-beauty-10/pink-beauty/images/header-img.php?upper=FF7FFF&lower=4180b6') no-repeat bottom center; }
    #headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: white; }
    --></style>

    You have conflicting definitions for your background image. The one in your CSS file is correct, but the embedded style on the page ‘wins out’ in a CSS priority, so you can’t see the background image.

    You’d think it’s commented out, but to comment it out correctly try surrounding it with /* . . . */instead of <!-- -->, which is for (x)HTML, not CSS. ??

    Make sense?

    Thread Starter sexyplus

    (@sexyplus)

    Hi sewmyheadon!

    Thanks so much for your reply! I understood what you said to do, just not where to do it! I could see viewing the source code from the browser exactly what you were talking about, but couldn’t edit it using ff web developer edit html. Then I tried editing it, copying it into a txt file in notepad, and then publishing it through Blue Voda, my host. The eye was back, however, everything else was messed up. I have even uninstalled the Pink Beauty theme and reinstalled it twice and it still is not fixed.

    If there is something that I am missing, please let me know. I am new to this (couldn’t tell, could you? ?? So, although none of what you said made any sense to me, I tried to do it, and it would work if I knew more, I think.

    Thanks again.

    Hello,
    When you say you uninstalled the theme, do you mean you deleted the folder, or did you just deactivate it?

    Thread Starter sexyplus

    (@sexyplus)

    I deleted the folder from the server and then reinstalled it from the computer to the server. Then I activated it again.

    Yo sexyplus,

    I downloaded the theme and installed it on a test blog and it worked fine – I don’t see that extra poorly commented out reference in the head block.

    So, I’m guessing that it’s caused by a plugin, or something else that you have installed on your theme, or WordPress.

    Try disabling all plugins and see if it’s still there. If not, re-enable them one-by-one and see which one causes it to re-appear.

    I’d be especially suspicious of any that are intended to change the presentation of the site.

    You might check the URL listed in the ‘commented’ code above to see if it exists and what’s there.

    Let me know what you find out.

    Thread Starter sexyplus

    (@sexyplus)

    Thanks sewmyheadon. I will try disabling all the plugins. I too, just downloaded the design again and reinstalled and it still is missing. Something about changing the header image and color did it. If I ever figure it out, I will let you know. Thanks for your help.

    Thread Starter sexyplus

    (@sexyplus)

    Thanks sewmyheadon and selfmade,

    The problem is resolved. Not sure what did it, but I finally could go into theme editor and under edit header image and color was able to undo the color changes and my image appeared again!

    Thank you both for your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘header img disappears when change colors’ is closed to new replies.