• Resolved incka

    (@incka)


    I’m working with a theme and I’ve really got a problem.

    I’ve modified and worked with this theme on a subdomain, and there it works fine. But when I put it on my “real” blog the background image in the header disappears.

    I’ve tried in both firefox and internet explorer, I’ve deleted cache and so.. I’ve even tried different computers. It wont work on my blog, but in my subdomain.
    http://incka.se/lekplats/ \<— Here’s my subdomain with the theme

Viewing 15 replies - 16 through 30 (of 30 total)
  • Look in the header.php of your theme. You’ll find the code there.

    <!--#header { background: url('http://incka.se/wp-content/themes/Speakr/images/header-img.php?upper=6F6F6F&lower=000000') no-repeat bottom center; }
    #headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: #FF33CC; }
    -->

    Are you editing in notepad? Do ctrl and F to pull up a search box and then copy and paste:

    <!--#header

    to find it.

    Thread Starter incka

    (@incka)

    Nope, it’s not there πŸ™ Not in index.php either

    Can you post the code for the header.php here? Make sure it’s the one you have uploaded to the main domain because the one on the subdomain doesn’t have it.

    PS: Nevermind about the closing style tag if you saw that. I goofed πŸ˜‰

    Thread Starter incka

    (@incka)

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <?php wp_head(); ?>
    </head>
    <body>
    <div id="wrapper">
    <div id="header">
    <a href="<?php echo get_settings('home'); ?>/"><img id="name" src="<?php bloginfo('stylesheet_directory'); ?>/images/name.jpg" alt="incka" title="incka" /></a>
    <?php // bloginfo('description'); ?>
    <ul id="topnav">
    <li><a href="<?php echo get_settings('home'); ?>">Blogg</a></li>
    <li class="page_item"><a href="http://incka.se/?page_id=2" title="Incka">Incka</a></li>
    <li class="page_item"><a href="http://incka.se/?page_id=250" title="Galleri">Galleri</a></li>
    <li class="page_item"><a href="http://incka.se/?page_id=168" title="Www">Www</a></li>
    <li class="page_item"><a href="http://incka.se/?page_id=205" title="Sidan">Sidan</a></li>
    <li class="page_item"><a href="http://incka.se/?page_id=180" title="G&auml;stbok">G&auml;stbok</a></li>
    </ul>
    </div>
    <hr />
    
    <div id="content">

    Thanx for helping me!

    SO weird. Look at this screenshot I took of your source. The highlighted part is what needs to go:

    http://www.edie.me/see.png

    But as you said it’s not in the header. And you’re sure the code you posted is from the header on the main domain and not on the subdomain. Because IT doesn’t contain the code.

    Thanx for helping me!

    You bet. I love figuring this kinda stuff out πŸ™‚

    Thread Starter incka

    (@incka)

    Grr, really wierd, and yes I’m sure :/

    I don’t see this:

    <link rel="stylesheet" href="http://incka.se/wp-content/plugins/lazy-k-gallery/lazy-k-gallery.css" type="text/css" media="screen" />

    in the code you posted either but it’s in the source. VERY weird. I like to blame this kinda thing on computer gremlins, heh.

    Thread Starter incka

    (@incka)

    Hehehe, make them go away πŸ™

    Ohhhh! The <?php wp_head(); ?> is pulling it in I bet! I’m not sure where you’d search for that. Does your theme have a functions.php? Try looking there.

    I don’t understand why it’s doing it on the main but not the sub 😐 Do you have any plugins activated on the main domain that you don’t the sub?

    I’ve gotta go to bed. It’s 3AM and I gotta work tomorrow and there’s a heck of a storm going on and my lights are flickering. I’ll be back tomorrow night though if you haven’t gotten it figured out πŸ™‚

    Thread Starter incka

    (@incka)

    I couldn’t find a wp_head(); but I have a functions.php that I don’t understand what it’s doing there..
    I’ve tried to deactivate all plugins but that didn’t change anything..

    Thanks alot for your help! I’ll try a little bit more tonight and let you know if I fix it.. Or else I’ll maybe find another theme..

    I think it has something to do with one of the core files in your main domain install. See this in your header.php?

    <?php wp_head(); ?>

    That calls data from for one at least, general-template.php in wp-includes. I don’t know how the code would have gotten there but you might try looking there.

    Or else I’ll maybe find another theme.

    Except it’s not the theme. The code causing the problem is not in the actual header.php file. As I said, I think it’s being pulled in from somewhere else.

    Thread Starter incka

    (@incka)

    Problem solved now! πŸ˜€ I got some help from the Swedish wordpress forum πŸ™‚

    There was a function in functions.php that wrote over my css-code. So I put an !important in my css:

    #header {
    	height: 132px;
    	background: #BED132 url(images/bg-header.gif) top center!important;
    	position: relative;
    }

    and now it workes fine! πŸ˜€

Viewing 15 replies - 16 through 30 (of 30 total)

The topic ‘Image disappears’ is closed to new replies.