Remove demo data internal css from header.

I desperately need to remove internal styles (embedded in the <head>) of my client's website's pages. These styles were created by the demo data that I installed and uninstalled.

Uninstalling Wordpress is not an option for me because it is a client's website.

Please help!
Leon

Comments

  • Hi Leon,

    can you show us which files you mean? Because we don't get it.
  • Hi, thanks for getting back to me.

    The site in question is: http://inivo.co.uk/

    If you look at the source code for the home page, you'll notice 3 embedded <style> tags before the conditional "<!--[if lt IE 9]>" code. The 2nd of these <style> tags contains a whole bunch of CSS that I'm certain was generated when i installed demo data previously. Most of the CSS in this 2nd <style> tag is unwanted CSS, furthermore, I can't figure out how to get rid of any of it. 

    A lot of the styles in this <style> tag are targeting the ".button-stroke" class being applied to the body, so I removed the ".button-stroke" class with jQuery's .removeClass. But the CSS is still there in the header, and there is a giant pile of it.
  • 2 first styles comes with theme and they are necessary (1st is responsible for header and the 2nd is responsible for the whole rest). You can not remove them. However, the 3rd styles comes from Theme options > Custom CSS & JS > Custom CSS section. So if you don't need them, just clear this section.
  • edited December 2015
    One of the styles from the styles in the 2nd <style> tag goes as follows:

    .subheader-both-center #Subheader .title { 
    width: 100%; 
    text-align: center;
    }

    The above was imported when i installed the demo data for this demo: http://themes.muffingroup.com/be/adagency/

    Unless I'm mistaken, the following shows the default styling (the styles that come with the theme) for #Subheader .title: http://themes.muffingroup.com/betheme/
  • Like we wrote above, all custom styles are located under Theme options > Custom CSS & JS > Custom CSS section. But the whole rest is necessary and comes with the theme and these can not be removed. So if it's true and the css you mentioned above came with demo as custom css, it is located under Custom CSS section for sure.
Sign In or Register to comment.