Hello! So updated to the latest 7.5.01 version and it seems to have broken a custom @Font-Face font I had going in the child theme. I figured I could try and re-do the @Font-Face generation, so I did, but still no luck. I'm not entirely sure how to get it to work now. I did notice that I had to update my child functions.php as my old one looked different, and in my child style.css, I still have the line
@import url("../salient/style.css");
at the top. Is there anything that was updated in particular where it might have some effects with custom @Font-Face fonts? I've been clearing my cache on my browser and the site, as well as disabling cloudflare to ensure I'm getting the most recent files from the server.
What I've noticed is that I can't seem to find any of the custom css in the child style.css when I inspect the page now. I only see the stuff from the style.css in the parent theme. I'm wondering if something changed where the child theme CSS just isn't being loaded. I will try some tests by adding the custom CSS for the @Font-Face declaration in the custom css box, and see if it takes there.
Basically changing "get_template_directory_uri()" to "get_stylesheet_directory_uri()".
Also, I put the full urls for the @Font-face declaration in the child theme, and it finally started to work (as well as properly loading all of the other child style.css stuff).
Hello! So updated to the latest 7.5.01 version and it seems to have broken a custom @Font-Face font I had going in the child theme. I figured I could try and re-do the @Font-Face generation, so I did, but still no luck. I'm not entirely sure how to get it to work now. I did notice that I had to update my child functions.php as my old one looked different, and in my child style.css, I still have the line
at the top. Is there anything that was updated in particular where it might have some effects with custom @Font-Face fonts? I've been clearing my cache on my browser and the site, as well as disabling cloudflare to ensure I'm getting the most recent files from the server.
What I've noticed is that I can't seem to find any of the custom css in the child style.css when I inspect the page now. I only see the stuff from the style.css in the parent theme. I'm wondering if something changed where the child theme CSS just isn't being loaded. I will try some tests by adding the custom CSS for the @Font-Face declaration in the custom css box, and see if it takes there.
Thank you for your time!
Cheers,
Oliver
Hey ,
This is a known issue and a fix will be released later tonight .
Best.
ThemeNectar Support Team
OK, so I seem to have solved the issue and I'll explain what I did below (two things):
First, I changed the following line 6 in the child functions.php from this:
to this:
Basically changing "get_template_directory_uri()" to "get_stylesheet_directory_uri()".
Also, I put the full urls for the @Font-face declaration in the child theme, and it finally started to work (as well as properly loading all of the other child style.css stuff).
For example:
Not sure how I had the setup before where it was working pre-7.5.01, but this seems to have fixed it.
Thanks!