Dear Kriesi,
I am working with the booking tool Salonized. In order to add custom css to buttons and fonts, I need to add code before the </body> tag. I don’t get this to work though.
I already tried to put the code before </head> in the header.php, and I also tried to put some code I found in another topic to the functions.php.
Can you please help?
See private content.
Thanks in advance!
Greetings,
Nirvana
Hey nirvanavanleeuwen,
Please provide a link to the site/page in question so we can look into this issue further.
Best regards,
Jordan Shannon
Hi Nirvana,
You can add the following code to Functions.php file to add your script like this:
function add_my_custom_script(){
?>
<script>
PASTE YOUR CODE HERE
</script>
<?php
}
add_action('wp_footer', 'add_my_custom_script');
Best regards,
Victoria
Hi Victoria,
Thank you for your reply. I added your code to the functions.php, but still css doesn’t work.
See private content for the code I used.
Hi,
I changed the code slightly so it will fire in the head instead of in the footer, but I noticed that you are getting some “Mixed Content” warnings because the links in the code are for http and not https, I tried just adding the “s” but then you get a 404
Please ask the author if they have a https address.
Best regards,
Mike