Support » Networking WordPress » Multisite: Path problem for images and style sheet

  • Resolved tlueers

    (@tlueers)


    Using multisite, facing a problem with image and css-file paths.
    Problem shows up only for frontend view.

    The CSS-link in the source code uses triple “http://http://http://” in the files’ path, image paths show double “http://http://”.

    The links in the database are correct.
    I do see the images and CSS-File in the backend.

Viewing 15 replies - 1 through 15 (of 21 total)
  • jack randall

    (@theotherlebowski)

    too many http://'s you only need one per link.

    can you give us a link to your site?

    There’s 2 pages running via WPMP:
    #1 http://structocom.de/
    #2 http://tammo-lueers.de

    #1 = links of stylesheets and images are broken, multiple ‘http://’ – only in the frontend though!
    #2 = no problem, the [wp-blogroll]-info is because I switched all other plugins offline while trying to find the error.

    jack randall

    (@theotherlebowski)

    go into your themes header.php for struct-o-com and copy and paste in here this bit of code so i can see it please:

    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <!--[if lt IE 9]>

    i just want to see if it matches… using chrome’s web developer plugin i’ve removed 2 of the http:// bits from the url of your stylesheet and it looks fine but it’s only temporary though.

    Actually I’m using a child theme for adjustments.
    I’ve now re-activated the header.php of that child theme with the code you provided.
    Using Chrome, too.

    jack randall

    (@theotherlebowski)

    cool, can you find that chunk of code in your theme’s header .php and paste it here so i can see it?

    It’s right in there, as you posted it earlier!
    Line 49-52:

    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <!--[if lt IE 9]>

    jack randall

    (@theotherlebowski)

    can you post the header code from your child theme’s style.css file?

    Here you go:

    @charset "utf-8";
    
    /* CSS Document */
    
    /*
    
    Theme Name:     Twenty Eleven Child SOC
    Theme URI:      http://structocom.de/wp-content/themes/twentyeleven-soc
    Description:    Child theme for the Twenty Eleven theme
    Author:         Tammo Lueers
    URI:            http: //structocm.de/
    Template:       twentyeleven
    Version:        0.0.2
    */
    
    @import url("../twentyeleven/style.css");

    jack randall

    (@theotherlebowski)

    i think that might be your problem…

    get rid of

    @charset "utf-8";
    
    /* CSS Document */

    this bit and make sure that there’s nothing at all before this bit

    /*
    Theme Name:     Twenty Eleven Child SOC
    Theme URI:      http://structocom.de/wp-content/themes/twentyeleven-soc
    Description:    Child theme for the Twenty Eleven theme
    Author:         Tammo Lueers
    URI:            http://structocm.de/
    Template:       twentyeleven
    Version:        0.0.2
    */
    
    @import url("../twentyeleven/style.css");

    see if that helps…

    Sorry, no – did not help.
    Also, this codes is also in the other child’s css, and working on the tammo-lueers.de-site.

    The double and triple http://-marks must be generated automatically for the frontend output, right?

    jack randall

    (@theotherlebowski)

    hmm… would you be comfortable briefly making me an admin on your site so i can have a good poke about in the code?

    Yes, How shall I transfer your password?

    jack randall

    (@theotherlebowski)

    🙂

    I want to put up a caveat here. It’s cool to offer to log in and help, but I actually would recommend you not, ONLY because we are internet strangers 🙂 I don’t let anyone into my admin if I wouldn’t trust them with my car.

    Protip? Two people other than me and my wife have driven the car.

    What’s “WPMP”?

    Have you tried the normal tests of turning off all plugins and switching to the default, 2011, theme to see if that helps?

    jack randall

    (@theotherlebowski)

    it’s a good point well made. it’s a judgement call i guess.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Multisite: Path problem for images and style sheet’ is closed to new replies.