Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

problem with loss of css when upgrading to version 3.6


  #1  
Old Jan 6, 2011, 07:55 AM
hollidaysjohn
 
16 posts · May 2010
Cambridge, UK
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

Last edited by hollidaysjohn; Jan 6, 2011 at 08:01 AM.
  #2  
Old Jan 6, 2011, 08:04 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
look in the forums http://forum.bytesforall.com/showthread.php?t=12048
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 6, 2011, 08:38 AM
hollidaysjohn
 
16 posts · May 2010
Cambridge, UK
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

Last edited by hollidaysjohn; Jan 6, 2011 at 08:45 AM.
  #4  
Old Jan 6, 2011, 09:05 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
for the moment, set you css to be internal
ato->Configure CSS & JS->CSS: External file or inline? to internal
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jan 6, 2011, 09:14 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what's is your url?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Jan 6, 2011, 09:49 AM
hollidaysjohn
 
16 posts · May 2010
Cambridge, UK
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
  #7  
Old Jan 6, 2011, 10:01 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Jan 6, 2011, 12:39 PM
hollidaysjohn
 
16 posts · May 2010
Cambridge, UK
Yep that worked but so did: <?php bloginfo('url'); ?>

Now to try the favicon fix!

Thanks a million
  #9  
Old Jan 6, 2011, 12:55 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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; ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jan 6, 2011 at 06:25 PM.
  #10  
Old Jan 6, 2011, 02:16 PM
hollidaysjohn
 
16 posts · May 2010
Cambridge, UK
Thanks - That works 100%.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Upgrading from 3.4.5 to 3.5.3 - looks like no css? wendigo New Versions, & Updating 2 Aug 9, 2010 07:42 AM
HELP!!! Major problem after upgrading to new version today!! GlobalNeat New Versions, & Updating 11 Feb 21, 2010 05:59 AM
Header image does not show after upgrading to Version 3.4.5.1 pbravin Header configuration & styling 4 Feb 9, 2010 03:49 PM
Problem with upgrading version 3.4.2 cato New Versions, & Updating 2 Jul 15, 2009 05:44 AM


All times are GMT -6. The time now is 10:48 PM.


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