Tagged: CSS
-
AuthorPosts
-
July 23, 2015 at 8:19 am #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?July 25, 2015 at 7:25 am #478579Hi 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,
IsmaelAugust 10, 2015 at 5:08 pm #485477There are some useless inline styles e.g.:
<div class="textwidget"><div class="container" style="height: 90px; line-height: 90px;"> hallo </div>
August 11, 2015 at 7:39 am #485752Hi,
Could you provide us with a link to the site in question so that we can take a closer look please?
Regards,
RikardAugust 11, 2015 at 8:05 am #485761Please see private content
August 11, 2015 at 7:39 pm #486134Hey!
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,
DakeAugust 12, 2015 at 9:11 am #486339Hey 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.
August 13, 2015 at 6:24 am #486938Hey!
Where can we find the text widget with the inline styling? Please revert the modifications.
Regards,
IsmaelDecember 9, 2015 at 11:43 am #549615Just 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.
December 9, 2015 at 2:05 pm #549679Hi!
You can add your custom CSS codes in to Propulsion/css/custom.css file :)
Cheers!
YigitDecember 9, 2015 at 2:08 pm #549684Yes I know. Very nice.
My suggestion is that I would like to get rid of the dynamically theme added code.
December 9, 2015 at 2:12 pm #549688December 9, 2015 at 2:14 pm #549691Cool. Thanks!
-
AuthorPosts
- The topic ‘Source Code von inline CSS befreien’ is closed to new replies.