CSS styling not applied
CSS styling not applied
gaialabs
Posts: 2Questions: 0Answers: 0
Hello,
I'm using dataTables for a while and it always work like a charm. Excepted with this case.
Javascript is working as I can order columns, search, hide columns, etc. But the styling isn't applied despite the CSS is correctly enqueued in WP and appears in the source code.
I can't see any error message in the javascript console.
The test case URL is here : https://staging.aspce.ch/pce/
Thank you very much for any help :-)
Replies
I have not used the
media
attribute of thelink
tag so my observation might be wrong but you have this:But you have
media='all'
for everything else. 'm not sure whatmedia='1'
refers to. Maybe you need to remove or change it tomedia='all'
.Kevin
Hi Kevin,
Thank you very much, that was the issue indeed. Actually I used wp_register_style with last argument set to true (-> 1), using the same arguments than for wp_register_script. Removed that and it worked :-)
Alexis