Okay
  Public Ticket #210634
Inline CSS
Closed

Comments

  • David started the conversation

    Is it possible to change the way the inline css code of the theme personalization is placed in the page? At this moment the html/text ratio is really bad because of the huge css part. Is it possible to place this code in an external css? Hope to hear from you.

  •  8,839
    Tahir replied

    Hey David!

    No i am afraid its not possible due to the large backend customization options available.

    Best,

    -T


    ThemeNectar Support Team 

  • David replied

    OK, and if i want to place this html in a style sheet myself, where (in what file) can i delete the produced html from the theme?
    i understand that editing in the theme then is no longer possible..
    hope to hear from you..

  •  8,839
    Tahir replied

    Hey David!

    I am sorry but we dont have detailed documentation on this. If you really need this modification done you could head on over to Envato Studio which is a service from Envato that offers paid WordPress customizations. I'm sure a developer on there would be able to wrap this up for you :)

    Thanks


    ThemeNectar Support Team 

  • David replied

    I understand, but then i can not update the theme, right?

  •  1,070
    ThemeNectar replied

    Hey David!

    The styles are actually not "inline", but rather internal - Using inline styles is indeed not optimal, but writing valid css internally used in a

    <style>

    tag has no negative effect on your site or SEO. The internal styles are used only for the dynamic styles in the theme i.e. the ones that have their values generated through PHP based on what you set in the options panel and can not reside in a static stylesheet. Robots that crawl your site will simply see it as css the same way they would if you had an external link in its place. If you feel the need to export them into a stylesheet, any settings in the options panel that would write css won't work anymore and the only benefit you'd get from going through the trouble is to have your source code look a little prettier for people who inspect it. If you're up for the venture, you'll need to convert the css located in the colors.php & custom.php files and then dequeue those via the functions.php in favor of your own. (just search for colors.php to end up at the right place in functions.php )