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 »

[SOLVED] Custom CSS for IE6, IE7 and others


  #1  
Old Nov 22, 2010, 04:30 AM
etzo
 
3 posts · Nov 2010
[SOLVED] Custom CSS for IE6, IE7 and others

Hello,

first of all sorry for my bad english, i found a php script for detecting browsers. Now i need to do following algorithm:

if IE below IE7 -> load ONLY my custom CSS,
else -> load normal atahualpa css.

I know how to implement this script I just don't know exact place to put it I think I have to put code somewhere in header.php, but I don't know where.

Thanks in advance for suggestions,
Vedran
  #2  
Old Nov 22, 2010, 05:19 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
CHECK OUT THE OPTIONS AT ATO->Add HTML/CSS Inserts
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 22, 2010, 06:20 AM
etzo
 
3 posts · Nov 2010
Quote:
Originally Posted by juggledad
CHECK OUT THE OPTIONS AT ATO->Add HTML/CSS Inserts
Thanks for quick reply, I know that I can include custom styles there

but i think that i must edit header.php or something like that because in IE 6 or IE7 case i must load only my own hand made CSS, because i have divs for "fancy looking" boxes on pages and i must rewrite CSS Inserts for that divs because they don't look good in IE 6 and IE 7

And because of SEO i cant have two "separate" pages one for "< ie7" and second for new browsers...

So what i basically need to do is add this code:

if (ie below ie 7)
echo "<link rel="stylesheet" href="http://localhost/MyOwnCssForIE.css" type="text/css" media="all" />"

else

echo "<link rel="stylesheet" href="http://localhost/?bfa_ata_file=css" type="text/css" media="all" />"

Once more sorry for wasting your time

Thanks
  #4  
Old Nov 22, 2010, 06:51 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you should try editing header.php and look for lines 10-12 (version 3.5.3) which should be
HTML Code:
<?php if ( $bfa_ata['css_external'] == "External" ) { ?>
<link rel="stylesheet" href="<?php bloginfo('url'); ?>/?bfa_ata_file=css" type="text/css" media="all" />
<?php } ?>
and add your if statements in there.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Nov 22, 2010, 06:38 AM
etzo
 
3 posts · Nov 2010
Quote:
Originally Posted by juggledad
CHECK OUT THE OPTIONS AT ATO->Add HTML/CSS Inserts
OMG, I cant belive what idiot I am

I was looking on it whole the time in header.php:

Code:
<link rel="stylesheet" href="<?php bloginfo('url'); ?>/?bfa_ata_file=css" type="text/css" media="all" />
sorry for wasting your time

and thanks for the help

Cheers

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
question re calling custom css drex Header configuration & styling 1 Aug 13, 2010 04:14 AM
[SOLVED] Custom CSS ignored for links only? markzip Atahualpa 3 Wordpress theme 1 Feb 5, 2010 09:22 PM
Links in tables don't work in IE6 or IE7 wardrob Plugins & Atahualpa 6 Feb 5, 2010 04:02 PM


All times are GMT -6. The time now is 06:18 AM.


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