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.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.