ARGH! Help - Embedded Theme Images not Showing up!

Permalink
Hi

This is driving me crazy... I've built many sites in C5 now, and today for some reason the embedded images are not showing up in my theme.

I have used the path function and everything, and they aren't showing. Firebug says it Failed to load the given URL.

My URL is this: /QROO/concrete5.6.1.2/concrete/themes/theme_qroo_theme/images/qroo-logo.png (running a localhost server)

My php is this:

<!--BEGIN Logo and Slogan-->
      <div id="logo"><img src="<?php print $this->getThemePath(); ?>/images/qroo-logo.png" width="218" height="132" /></div>
      <div id="buyFactoryDirect"><img src="<?php print $this->getThemePath(); ?>/images/buy-factory-direct.png" width="455" height="46" /></div>
    </div>


My CSS is this:

#logo{
   float:left;
   margin-left:20px;
   margin-top:22px;
   width:218px;
   height:132px;
}
#buyFactoryDirect{
   float:right;
   margin-top:66px;
   margin-right:43px;
   width:455px;
   height:46px;
}


The images were displaying fine in the html version of the site that I built, once I changed it to php and added all the C5 code... they aren't loading...

Help Please!

PatrickCassidy
 
drbiskit replied on at Permalink Reply
drbiskit
It looks like the path you are using is probably just not correct... Maybe try moving your theme up into the themes directory at the root of the install and see if that helps?
PatrickCassidy replied on at Permalink Reply
PatrickCassidy
Yeah I just noticed the path then...

It's backtracking it to the concrete core folder...

why would it do that?
drbiskit replied on at Permalink Reply
drbiskit
Not too sure - have you upgraded the site at all?
PatrickCassidy replied on at Permalink Reply
PatrickCassidy
It's a clean install for a new site...

I've only just uploaded the theme and testing the theme out before I split the header/footer elements
drbiskit replied on at Permalink Reply
drbiskit
Is there anything weird happening in your config/site.php file?
drbiskit replied on at Permalink Best Answer Reply
drbiskit
Just seen this - it was a bug in a previous version - look here:
http://www.concrete5.org/developers/bugs/5-6-0-2/using-get-themepat...

Have you got a default.php file?
PatrickCassidy replied on at Permalink Reply
PatrickCassidy
Haha! Legend... thanks a bunch.

I got carried away with building a complicated home page type I hadn't got around to uploading the other pages yet! Cheers a bunch!
drbiskit replied on at Permalink Reply
drbiskit
Good stuff - glad that worked - things like this can drive you insane eh!

=0)