Jump to content
iems

Background

Recommended Posts

iems    1
iems

Forgive me if I've already asked this as I am still searching to no avail - the following code...

#site .content, #footer .content { background: rgba(0, 0, 0, 0.5); }

How do I enable this in IE8?

Thank you.

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there, in IE8 you'll need to use a solid color as it doesn't support transparencies. A solid color like #dddddd etc, otherwise save a transparent png in an image editor and apply as a bg.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
iems    1
iems

So for IE8 only, what do I need to add to set the background to solid and leave it transparant for IE9?

Share this post


Link to post
Share on other sites
James B    436
James B

You'd need to look into some form of browser specific css, as far as I'm aware there's no way you can target IE8 separately though.

http://www.impressivewebs.com/ie7-ie8-css-hacks/


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
iems    1
iems

I've done a search, and still cannot find the css hack to set the background to solid in IE8 only and still allow it to be semi-transparant in all other browsers. It is for ccbsi.com

Share this post


Link to post
Share on other sites
catrina    103
catrina

For IE8-specific CSS, try adding the CSS inside this code:

<!--[if gte IE 8]>

<style>

(your style here)

</style>

<![endif]-->


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
iems    1
iems

<p><!--[if gte IE 8]><style>#site .content {background: #000000} </style><![endif]-->

This turns the screen white with a black box in the middle. What did I miss?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

Please use our free plugin Browser Specific CSS and use this to add CSS that will only work for IE8.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
iems    1
iems

Danny, I've installed the plug. Thank you for this info. Dumb question (sorry to ask), what do I do with it? In other words, how do I impliment what I am wanting to do - set the background to solid when I've already implimented a css hack for transparant everywhere else in the custom code section of PageLines?

Also, I am looking for a CSS hack to enable font-smoothing. Specifically for non-IE browsers. I don't suppose you have a resource for that do you?

Thank you in advance.

Share this post


Link to post
Share on other sites
Simon    247
Simon

Ok - panic mode. I just tried to add the custom code above and I'm getting a parse error. The admin screen in white and I cannot get to anything to change it back. Undo?

Where did you add the code?

Share this post


Link to post
Share on other sites
Simon    247
Simon

What code did you add exactly?

Share this post


Link to post
Share on other sites
iems    1
iems

<!--[if gte IE 8]>

<style>

(background: #dddddd)

</style>

<![endif]-->

I think. My site is hosted with GoDaddy. I can get to the files via their ftp. How do I know which css file I need to edit like the other guy did?

Share this post


Link to post
Share on other sites
Simon    247
Simon

Right yea, you cant add that kind of stuff to customcss, next version strips all that stuff out, as it breaks the backend as you can see ;)

Anyway, super easy fix:

In FTP create a new folder, wp-content/mu-plugins/

create a file in there and paste this into the file:


<?php
add_action( 'admin_init', function() { plupop( 'customcss', '' ); } );
?>
[/CODE]

then load wp-admin a couple of times, it will clear the custom css, then delete the file again, or it will keep deleting it ;)

Next install the (free) base theme, its a blank child theme, add your quirky css to the style.css in there and activate the child theme.

Share this post


Link to post
Share on other sites
iems    1
iems

Oof - it wasn't working. I tried a simple restore of files as they were earlier this week....still panicking

Share this post


Link to post
Share on other sites
Simon    247
Simon

Restoring files wont make a difference, the option is stored in the database, just follow the simple instructions above ^^

Share this post


Link to post
Share on other sites
iems    1
iems

From the wordpress forum "

Ok, I figured it out. All this data is stored it database, I found the code there and deleted the section that produced the error. Now everything's working fine again."

Where is the database in the ftp folder and what file do I need to modify as restore hasn't resolved the issue yet?

Share this post


Link to post
Share on other sites
iems    1
iems

Folder / file readded. How long does it take for the backend of WP to be back the way it was?

If I don't re-add the css, do I need to reactivate the child theme?

Share this post


Link to post
Share on other sites
Simon    247
Simon

Add the css to the child themes style.css. Then activate the child theme.

Share this post


Link to post
Share on other sites
iems    1
iems

so that file you said to add, that will clear the "Less compile error" and restor the WP Admin screen? I just need to re-enter the custom css I had entered before? minus this last piece of code?

Share this post


Link to post
Share on other sites
Simon    247
Simon

so that file you said to add, that will clear the "Less compile error" and restor the WP Admin screen? I just need to re-enter the custom css I had entered before? minus this last piece of code?

Yes.

Share this post


Link to post
Share on other sites
iems    1
iems

This is why WP scares me. Do you know how long it will take for that piece of code to "fix" the WP admin area?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • janpeeters
      By janpeeters+
      Over the last month I had extensive communications with the developer of the (premium) Anything Boxes section (in Pagelines store) (Adam Munns) and the developer of the WP Polylang Multilingual plugin (Frederic Demarle).
       
      This was because the following problem occurred:
      Anything Boxes showed all posts of two languages (Dutch and English) on the respective static frontpages for each language. It should of course have filtered posts for Dutch language on the Dutch frontpage and English on the English frontpage.
       
      The solution to this problem was simple in the end. When duplicating a page for use in another language the settings for Anything Boxes were not copied to the new page and I should have set these settings manually again on the new page. I wasn't aware of this, but it makes sense. Because of this the pages didn't know how to differentiate between posts from different languages.
       
      The dev of Polylang told me that Polylang is currently smart enough to synchronize metas like Featured images and page templates but it does not work out of the box with metas created by plugins and themes but (according to Frederic) it is rather easy to add them in the list using the filter 'pll_copy_post_metas'.
      He mentions that he is not sure that these 'PageLines Meta Settings' are stored in post meta but that would make sense according to him. He asks if the Pagelines dev team will be interested to support this feature in the future.
       
      I'm also wondering if you will consider adding Polylang translation support for manually editable strings like the 'Read more…' strings in Pagelines Settings.
       
      Well that's of course up to you but I thought to let you know to be able to take this into consideration. I also post this for other users in case they experience the same kind of trouble and are looking for an answer.
       
      Best regards,
      Jan Peeters
    • bankrollbuilder
      By bankrollbuilder
      I used a custom hook to put a banner ad in my header. It works but its not in the right position. it is centered and above my logo and I would like to float it to the right of my logo in the header. heres the link: http://shaboopie.com/shaboopie-wp/free-logos-pg1/

      thanks.

      Dan B.
    • starlit
      By starlit
      Can one have two hero sections on one page?

      I want a landing page which leads/advertises two subpages.

      Or is there another option?

      Please help.

      THANK YOU
    • hutruk
      By hutruk
      Hi!

      I am using the shortcodes for tabs, as described in the documentation.

      When I insert the following code:


      [pl_tabs][pl_tabtitlesection type="tabs"] [pl_tabtitle number="1"]Title 1[/pl_tabtitle] [pl_tabtitle number="2"]Title 2[/pl_tabtitle] [/pl_tabtitlesection] [pl_tabcontentsection] [pl_tabcontent active="yes" number="1"] Lorem ipsum dolor sit amet, consectetur adipiscing elit [/pl_tabcontent] [pl_tabcontent number="2"] Lorem ipsum dolor sit amet, consectetur adipiscing elit [/pl_tabcontent] [/pl_tabcontentsection] [/pl_tabs]

      I get a strange output (in the attachment).

      Any ideas?

      Thanks in advance!

    • MooiWeb
      By MooiWeb
      Hello,

      I would like to align my qtranslate with my breadcrumb so that the flags are on the same hight.
      I'm aware of putting a code in the custom css and tryed severall codes from your site but for now, no succes

      The site i'm working on is http://nieuw.vazdias.nl

      Thx,
      Edwin



×