• Hi,

    I am working on my website and I have a strange problem. My host company is OVH.

    I began to work on my web site on local with MAMP and your plugin worked well to customize the footer of bfastmag free theme :

    document.querySelector(‘.poweredby’).innerHTML = “Website of Gregory Huyghe”;

    I am now working online (to avoid to migrate a multisite installation) and custom CSS works, not custom JS. I have the JS code written at the top of my website but the footer stays the same.

    Is it a limit from the host company?
    Thank you

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

    (@diana_burduja)

    I don’t see how the host company can limit this.

    Can you see the JS code in the page’s HTML? Could I have a link so I can have a look?

    Thread Starter gregdesign

    (@gregdesign)

    Yes, in the HTML page, on the top left.

    Here is the link: https://gregoryhuyghe.fr/

    Plugin Author SilkyPress

    (@diana_burduja)

    Please make sure you have the code in the editor of a “Add Custom JS” page (and not in a “Add Custom HTML” page). See this screenshot.

    Another thing: when you copy code from an HTML page or from a Word document, then the quotes are different. You’ll notice in the screenshot what I mean by “different quotes”. Otherwise the JavaScript will not be correctly executed.

    Thread Starter gregdesign

    (@gregdesign)

    Thank you,

    There was a problem with the quotes but it sadly still doesn’t work.

    I am using a multisite with the latest version of WP and a host with PHP 7.0.

    • This reply was modified 6 years, 10 months ago by gregdesign.
    Thread Starter gregdesign

    (@gregdesign)

    So, there is no solution to this problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom JS works only on local’ is closed to new replies.