Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] Custom CSS for IE6, IE7 and others


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 22, 2010, 04:30 AM
etzo
 
3 posts · Nov 2010
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
 
21,945 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
CHECK OUT THE OPTIONS AT ATO->Add HTML/CSS Inserts
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
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: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
  #5  
Old Nov 22, 2010, 06:51 AM
juggledad's Avatar
juggledad
 
21,945 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

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 04:59 PM.


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