mentaleruptions
Forum Replies Created
-
Forum: Themes and Templates
In reply to: browser detection then swapping css….<?php
$browser = get_browser();
$css_file = ($browser->browser == ‘Firefox’ && $browser->version == 1.0) ? ‘https://mywebsite.com/wp-content/themes/mytheme/style.css’ : ‘https://mywebsite.com/wp-content/themes/mytheme/iestyle.css’;
echo ‘<link rel=”stylesheet” type=”text/css” href=”‘ . $css_file . ‘” />’;
?>
Well ive installed the browscap.ini and have set the code up like above to detect browser. However i can only get one or the other to show up but not both. Ive tried it detecting internet explorer and firefox but neither seam to work.
Tom
Forum: Themes and Templates
In reply to: browser detection then swapping css….Thanks petit,
Ive not had chance to test it but will let you know once i do.
Tom
Forum: Your WordPress
In reply to: Kubrick with a difference….After reading what was said and looking at it again i just had to agree about it being to dark so i went back to the drawing board and alterd the colors.
I may add style changer to give the user the choice of the pale/dark side template while viewing. Again the image is just a place holder for now which will more than likely be changed to the random script.
I got the firefox issue sorted out thanks to Alphaoide over at https://www.ads-software.com/support/5/17075 thanks again.
Anymore comments and stuff are welcome….Forum: Themes and Templates
In reply to: Header out 1px in firefox….Thanks Alphaoide that has fixed the problem for me. Do you think its a good idea for me to use a table to do what i want or is there a better way thats less hassle on the different browsers ??
Forum: Your WordPress
In reply to: HalfTrue [another Kubrick clone…]Nice site i like it.
For the footer issue i had the same prob and found a fix here on the forums for it.
In your index.php file find:
#header { margin: 0 !important; margin: 0 0 0 1px; padding: 1px; height: 198px; width: 758px; }
and replace it with:
#header { margin: 0; padding: 1px; height: 198px; width: 758px; }
Im not sure why but for some reason it seams to work.