• Resolved MarkJ

    (@forusak)


    Hey, I want to ask if this is same as adding codes to functions.php?
    Always when I wanted to achieve something by adding js code, it worked from functions but not from this plugin.
    Am I doing something wrong?

    Right now I was trying to remove too many fontawesome requests from plugins. It uses wp_deregister_style.
    I can’t use child theme because it is not working, can you help me with this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Hello Marek,

    in the functions.php file you can add only PHP snippets. This plugin is for adding JavaScript or CSS.

    The wp_deregister_style function is a PHP function. The Simple Custom CSS & JS plugin cannot help you deregister the fontawesome requests, as that is at the PHP level, not at CSS or JS level.

    Plugins similar to Code Snippets or Insert PHP Code Snippet let you add PHP code to your website. Maybe you can try them out with yout wp_deregister_style PHP code snippet.

    Thread Starter MarkJ

    (@forusak)

    Oh ok, sorry, not a programmer here. Thank you for the advice.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘some codes doesn’t work’ is closed to new replies.