Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   problem with loss of css when upgrading to version 3.6 (http://forum.bytesforall.com/showthread.php?t=12049)

hollidaysjohn Jan 6, 2011 07:55 AM

problem with loss of css when upgrading to version 3.6
 
Thanks for the new version. I'm using WP 3.0.4

I had a problem that my site lost all it's css layout when I upgraded. In the source code from the web browser I could see this:
<link rel="stylesheet" href="/?bfa_ata_file=css" type="text/css" media="all" />
Looking at the header.php file I can see that version 3.6 shows:
<link rel="stylesheet" href="<?php echo $homeURL; ?>/?bfa_ata_file=css" type="text/css" media="all" />
where as in 3.5 the code was
<link rel="stylesheet" href="<?php bloginfo('url'); ?>/?bfa_ata_file=css" type="text/css" media="all" />
not sure why $homeURL; hasn't worked.

John

juggledad Jan 6, 2011 08:04 AM

look in the forums http://forum.bytesforall.com/showthread.php?t=12048

hollidaysjohn Jan 6, 2011 08:38 AM

hi

Thanks, but that doesn't work for me. I've made this fix and it solves the problem with the RSS feed icons, but it hasn't fixed the general css problem and I also noticed that my favicon doesn't appear even after the fix. Sorry

juggledad Jan 6, 2011 09:05 AM

for the moment, set you css to be internal
ato->Configure CSS & JS->CSS: External file or inline? to internal

juggledad Jan 6, 2011 09:14 AM

what's is your url?

hollidaysjohn Jan 6, 2011 09:49 AM

Thanks for your help!

The URL is http://godmanchesterbaptist.org/web/index.php/

The CSS works now, of course, by making it inline. I should have thought of that! I'd swapped the code over to the old 3.5 one: <?php bloginfo('url'); ?>. But changed it back again now.

The favicon seems to struggle with: <?php echo $templateURI; ?> instead of the 3.5 code: <?php bloginfo('template_directory'); ?>

John

juggledad Jan 6, 2011 10:01 AM

Please try this. Edit header.php and chnage line 11 from
HTML Code:

        <link rel="stylesheet" href="<?php echo $homeURL; ?>/?bfa_ata_file=css" type="text/css" media="all" />
to
HTML Code:

        <link rel="stylesheet" href="<?php echo home_url( '', 'scheme' ); ?>/?bfa_ata_file=css" type="text/css" media="all" />
and set the CSS back to external

hollidaysjohn Jan 6, 2011 12:39 PM

Yep that worked but so did: <?php bloginfo('url'); ?> :)

Now to try the favicon fix!

Thanks a million

juggledad Jan 6, 2011 12:55 PM

remove the other change and do this instead. Edit header.php and add this as the first line.
HTML Code:

<?php  global $templateURI,  $homeURL; ?>
edit css.php and put this in as the first line
HTML Code:

<?php  global $templateURI; ?>

hollidaysjohn Jan 6, 2011 02:16 PM

Thanks - That works 100%.


All times are GMT -6. The time now is 06:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.