-
AuthorPosts
-
May 23, 2018 at 11:12 am #960741
Hello Kriesi Team,
got the problem, that an script i inserted at “design – editor” not working anymore. Iam not sooo often in the office to check – but some customers from our partner program cant active themselve anymore.
The script i added in the header just disappeared and in the moment i want to insert it again it says
“Kommunikation mit der Website, um auf fatale Fehler zu prüfen, nicht möglich, daher wurde die PHP-Änderung rückgängig gemacht. Du wirst deine veränderte PHP-Datei mit anderen Mitteln hochladen müssen, wie per SFTP.”
in english : cant communicate with the website to check fatal errors. that why php changes are not aaplied. You need to upload it via sftp
now – i updated enfold completly and uploaded the header.php with the code in sftp but still dont work.
May 24, 2018 at 4:44 am #961323Hey ichbinkeinroboter2412,
Please try this in your child theme functions.php file:
function ichbinkeinroboter2412_add_custom_code(){ ?> <script> var partnerScriptURL = “https://www.wo-meninbalance.de/registration”;</script> <script src=”https://www.wo-meninbalance.de/registration/js/partner.js” type=”text/javascript”></script> <?php } add_action('wp_head', 'ichbinkeinroboter2412_add_custom_code');
Best regards,
RikardJune 26, 2018 at 10:49 am #977852Thanks for the answer. I’ll check this out today or tomorrow. (Sorry for the time :D havent any time the last month)
June 26, 2018 at 12:57 pm #977921July 12, 2018 at 11:30 am #984625Iam not sure about inserting a child theme to get the code in.
Is there already an preinserted child theme anywhere in the ftp ? Normaly it should be in the theme folder but there is only enfold.
Just added a “child-theme” folder and inserted 3 empty files.
functions.php; style.css and index.php.
Iam not that good in programming , so i post current code i inserted below.
if you need any other infos, i can add them
July 12, 2018 at 12:03 pm #984646This reply has been marked as private.July 13, 2018 at 5:04 am #984944 -
AuthorPosts
- You must be logged in to reply to this topic.