Hey there! First of all, many thanks for the great content you share, I really appreciate it! With the recent release of WordPress 6.5 and from the official documentation, the WordPress team stated that the Font Library would be available for all the themes, even classic ones. The point is that I have developed a hybrid theme and I'm not able to figure out how to work with the new feature or even the related API. As you know, hybrid themes don't have access to Global Styles. Do you have some guidelines or workaround to work with the font library with hybrid themes? Many thanks!
Hey there! I'm unaware of plans to make the entire Font Library available to classic themes. At least not the interface. There is a PHP API for registering fonts. However, it's not very practical. In my view, it's not better than manually including web fonts, as we did before WordPress 6.5. What I would recommend to you is to use a workaround for your Hybrid Themes. The Site Editor is only available to block themes. How does WordPress know that you are using a block theme? It checks for the existence of templates/index.html. So, all you need to do is add that file to your theme, and you get access to the Site Editor. Now, the Site Editor won't be very useful for template building. But you can access the Styles sidebar and, with that, the Font Library interface. This way you can manage fonts the same way as a block theme would do--while keeping your PHP templates. As this is a workaround, there are two downsides: 1. You have a non-functional Index template. Not a big issue if your theme has better alternatives--then this template will never be loaded. 2. You have the Site Editor available in the admin area. So, make sure to only enable it for specific user roles or accounts to prevent clients from accessing it. Give that a try, and let me know how this works out for you.
@@wpdevelopmentcourses As a follower of your newsletter and soon-to-be student in your block development course, I want to express my gratitude for taking the time to respond to my query. Initially, when I read about this new feature in version 6.5, it seemed like a 'universal' option that could be accessed similarly to the 'media gallery'. However, as you've explained, if it's integrated into the Global Styles panel, this feature cannot be accessed. Based on your explanation, I'm not entirely sure how a hybrid theme could maintain its hybrid nature without utilizing the Site Editor (FSE) features and accessing the Global Styles, even with the index.html file in the theme. It would be incredibly helpful if you could provide more context on this in some of your newsletters or content. This would greatly benefit individuals like me who are in the transition phase between classic themes and block themes. While I see the potential for the Customizer to be useful for many users, I'm eager to fully embrace the new Site Editing experience when the time is right. Thank you once again for your time and detailed response. I truly appreciate it!
@@wpdevelopmentcourses I've read this week's newsletter and I can't wait to follow up from that ending part! - "But I got a solution for that, which I'll share next week" :)
Good video. After watching this and reading up on BBT and FSE, I genuinely thing that these paradigms could introduce a massive cut to the Freelancer web dev space. Granted, the users with advanced knowledge of API's and business logic will still find work but I think the lower-end jobs will be reduced massively.
Hey there! First of all, many thanks for the great content you share, I really appreciate it! With the recent release of WordPress 6.5 and from the official documentation, the WordPress team stated that the Font Library would be available for all the themes, even classic ones. The point is that I have developed a hybrid theme and I'm not able to figure out how to work with the new feature or even the related API. As you know, hybrid themes don't have access to Global Styles. Do you have some guidelines or workaround to work with the font library with hybrid themes? Many thanks!
Hey there!
I'm unaware of plans to make the entire Font Library available to classic themes. At least not the interface.
There is a PHP API for registering fonts. However, it's not very practical. In my view, it's not better than manually including web fonts, as we did before WordPress 6.5.
What I would recommend to you is to use a workaround for your Hybrid Themes.
The Site Editor is only available to block themes. How does WordPress know that you are using a block theme? It checks for the existence of templates/index.html.
So, all you need to do is add that file to your theme, and you get access to the Site Editor. Now, the Site Editor won't be very useful for template building. But you can access the Styles sidebar and, with that, the Font Library interface.
This way you can manage fonts the same way as a block theme would do--while keeping your PHP templates.
As this is a workaround, there are two downsides:
1. You have a non-functional Index template. Not a big issue if your theme has better alternatives--then this template will never be loaded.
2. You have the Site Editor available in the admin area. So, make sure to only enable it for specific user roles or accounts to prevent clients from accessing it.
Give that a try, and let me know how this works out for you.
@@wpdevelopmentcourses As a follower of your newsletter and soon-to-be student in your block development course, I want to express my gratitude for taking the time to respond to my query.
Initially, when I read about this new feature in version 6.5, it seemed like a 'universal' option that could be accessed similarly to the 'media gallery'. However, as you've explained, if it's integrated into the Global Styles panel, this feature cannot be accessed.
Based on your explanation, I'm not entirely sure how a hybrid theme could maintain its hybrid nature without utilizing the Site Editor (FSE) features and accessing the Global Styles, even with the index.html file in the theme.
It would be incredibly helpful if you could provide more context on this in some of your newsletters or content. This would greatly benefit individuals like me who are in the transition phase between classic themes and block themes. While I see the potential for the Customizer to be useful for many users, I'm eager to fully embrace the new Site Editing experience when the time is right.
Thank you once again for your time and detailed response. I truly appreciate it!
@@Van_____ I worked on this, so look forward to next week's newsletter!
This sounds so good. I can't wait to read more about this topic! Many thanks! @@wpdevelopmentcourses
@@wpdevelopmentcourses I've read this week's newsletter and I can't wait to follow up from that ending part! - "But I got a solution for that, which I'll share next week" :)
Good video.
After watching this and reading up on BBT and FSE, I genuinely thing that these paradigms could introduce a massive cut to the Freelancer web dev space. Granted, the users with advanced knowledge of API's and business logic will still find work but I think the lower-end jobs will be reduced massively.