Jump to content


Photo
- - - - -

Widget


Best Answer James B , 27 February 2014 - 07:05 AM

Hi there, the plugin has the code for the color written into the html, so it's not being applied by a separate stylesheet. The div container for the grey area doesn't have a class so you won't be able to edit it using css using the css/less box. You'll need to edit the inline code directly within the plugin editor but that will be wiped each time you update. The easiest thing to do would be to speak to the plugin author and see if he can provide an update where that div has a class assigned to it so you can edit the color using css without it being wiped on update.

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 lroberts00

lroberts00

    Advanced Member

  • Members

  • 60 posts
  • Framework Version:2.4.1
  • Country: Country Flag

Posted 26 February 2014 - 06:37 PM

I need the background on the Business hours widget to be none.  I've edited the
css of

element.style {

    background-image: none;
      background-color: none;

}

and given the background-color: none.  in firefox bug

 

but when applied to the custom code in pagelines...it doesn't work.

 

Could someone please help?

 

www.landmarkstorage.org



#2 Martin Davies

Martin Davies

    Advocate

  • Members

  • 3268 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 26 February 2014 - 06:45 PM

You would need to replace the element.style with te custom class you added to the element or the ID or class of the element. 

 

did you write the code yourself? how is this code added to your site? is it via a plugin? 

Please Login or Register to see this Hidden Content

You can see the style is added inline not via a class. 



#3 lroberts00

lroberts00

    Advanced Member

  • Members

  • 60 posts
  • Framework Version:2.4.1
  • Country: Country Flag

Posted 26 February 2014 - 08:59 PM

It is a plugin.



#4 James B

James B

    Advocate

  • Moderators
  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 27 February 2014 - 07:05 AM   Best Answer

Hi there, the plugin has the code for the color written into the html, so it's not being applied by a separate stylesheet. The div container for the grey area doesn't have a class so you won't be able to edit it using css using the css/less box. You'll need to edit the inline code directly within the plugin editor but that will be wiped each time you update. The easiest thing to do would be to speak to the plugin author and see if he can provide an update where that div has a class assigned to it so you can edit the color using css without it being wiped on update.