telo78
telo78

Reputation: 131

Wordpress Multisite (style sheet and images not displaying under wp-content themes folder)

I've created a multisite wordpress environment and made sites under it...

I copied over an existing theme I have to the multisite wp-content/theme folder to use it for all the sites.

My problem is that the paths are not showing up properly. An example would be: http://sitename.com/images/aim_informatics_logo.png

Where the image should be located in: http://sitename.com/wp-content/themes/blankrightsidebar/images/aim_informatics_logo.png

The multisite set up is as follows: Main Site (Multisite) Blog News Events Documents

For some reason the header.php file is not linking the paths correctly. The theme I had is set up as a stand alone WP blog/page and it is linked under a directory... Example

www.sitename.com/blog

Where blog is my WP stuff saved.

Would appreciate if someone could help me with this.... I don't think changing each url path to: "sitename.com/wp-content/themes/blankrightsidebar/" would be a great answer.

Thanks in advance.

Update: The code is:

<div id="header">
<div id="navContainer" class="container_12"><div class="headerpush"></div><!-- end headerpush -->

<h1 class="grid_3 logo"><a href="../index.php"><img src="../images/logo.png" /></a></h1>
<!-- end mainLogo -->

Stylesheet code:

<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />

Basically, the structure of my site (multisite setup) is: sitename (root) - wordpress files (wp-content, admin, includes, etc...) - Inside wp-content/theme/blankrightsidebar is where I store my theme files such as stylesheets, header.php etc.

Upvotes: 1

Views: 2041

Answers (1)

Fazle Elahee
Fazle Elahee

Reputation: 597

Your stylesheet link seems ok to me. But image link is not right. You may try this code:

            <div id="header">
        <div id="navContainer" class="container_12"><div class="headerpush"></div><!-- end headerpush -->

        <h1 class="grid_3 logo"><a href="<?php echo home_url( ); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/logo.jpg" /></a></h1>
        <!-- end mainLogo -->

Upvotes: 2

Related Questions