Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #477554

    Hallo Kriesi Team,
    das ist nun bereits das dritte enfold Theme, welches ich gekauft habe – spricht für eure gute Arbeit – danke dafür!

    Was mich allerdings stört ist das doch recht zahlreiche inline CSS (auf die Nachteile muss ich nicht weiter eingehen). Nun habe ich in diesem Beitrag gesehen:
    https://kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end/
    … das es sich der Quellcode bereinigen lässt. Frage: Ist dies auch für Enfold möglich? Und wenn ja, wie?

    #478579

    Hi frankeee!

    Thank you for using Enfold.

    Which inline css are you referring to? The theme generates the style in an external stylesheet located in the wp-content > uploads > dynamic_avia folder.

    Regards,
    Ismael

    #485477

    There are some useless inline styles e.g.:

    <div class="textwidget"><div class="container" style="height: 90px; line-height: 90px;">
    hallo											
    </div> 
    #485752

    Hi,

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Regards,
    Rikard

    #485761

    Please see private content

    #486134

    Hey!

    You can try commenting out the below code as dude provided in the thread you posted:

    function print_styles()
    		{	
    			if(empty($this->print_styles)) return;
    		
    			echo "\n<!-- custom styles set at your backend-->\n";
    			echo "<style type='text/css' id='dynamic-styles'>\n";
    			echo $this->output;
    			echo "</style>\n";
    			echo "\n<!-- end custom styles-->\n\n";
    		}

    The generator file can be found here: wp-content\themes\enfold\framework\php\class-style-generator

    Regards,
    Dake

    #486339

    Hey Dake,
    as you said I commented it out. The result is:
    – The inline Styles are still there
    – I have a Warning:Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'avia_style_generator::print_styles' was given in /home/www/web92/html/wp-test/wp-includes/plugin.php on line 496

    So this can´t be the solution.

    #486938

    Hey!

    Where can we find the text widget with the inline styling? Please revert the modifications.

    Regards,
    Ismael

    #549615

    Just a friendly suggestion. It would be really great if there was an option in the backend (theme Propulsion in my case) that gives you the possibility to not print out the custom dynamic styles in the html. It is currently a rather messy solution and I think it would be so much cleaner to have all the css in separate stylesheet files.

    #549679

    Hi!

    You can add your custom CSS codes in to Propulsion/css/custom.css file :)

    Cheers!
    Yigit

    #549684

    Yes I know. Very nice.

    My suggestion is that I would like to get rid of the dynamically theme added code.

    #549688

    Hi!

    We will pass your suggestion to our devs :)

    Best regards,
    Yigit

    #549691

    Cool. Thanks!

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Source Code von inline CSS befreien’ is closed to new replies.