Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Custom Javascript code in generated CSS file #30

Open
codeclinic opened this issue Aug 13, 2020 · 0 comments
Open

Custom Javascript code in generated CSS file #30

codeclinic opened this issue Aug 13, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@codeclinic
Copy link
Collaborator

I just started working with this awesome framework. I am literally just customising the example file (in which you have put this
$generalTab->createOption( array( 'name' => __( 'Custom Javascript Code', 'nucreative' ), 'id' => 'custom_js', 'type' => 'code', 'desc' => __( 'If you want to add some additional Javascript code into your site, add them here and it will be included in the frontend header. No need to add <code>script</code> tags', 'nucreative' ), 'lang' => 'javascript', ) );

When I save this in the backend, the custom JS code works (I tried a simple console.log('test);) but this is also printed in the generated css file titan-framework-nucreative-css.css which makes the CSS file invalid.

Is this an issue? How can I solve it?

Thanks

Ref: gambitph#337

@codeclinic codeclinic added the bug Something isn't working label Aug 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant