Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Matias Benedetto

    (@mmaattiiaass)

    Hi, @darcey1 I followed the advice from this answer you linked and the font management page worked OK for me.

    Is this problem also happening when cloning, uploading, and adding fonts to other themes?

    If this is just happening to the theme you created maybe there something else failing. In that case, are you able to share the .zip file of your theme ?

    Thanks

    Thread Starter Darcey1

    (@darcey1)

    When I click Export theme (inside Appearance > Create Block Theme) , the file that downloads is labelled “zip” but does not appear to be a zip file. Is that expected behaviour?

    Thread Starter Darcey1

    (@darcey1)

    I decided to start from scratch.

    1. I deactivated, uninstalled CBT and re-installed it.
    2. I activated TT3 theme
    3. Appearance > Create Block Theme > Child Theme of TT3 ( Name : ACN New)
    4. Clicked Generate which downloaded a zip file
    5. Uploaded the zip file and Activated it as my theme.
    6. Appearance > Manage Theme Fonts > blank screen.

    I would add a .zip file but I cannot see how to do that within this support forum interface

    Thread Starter Darcey1

    (@darcey1)

    Maybe if I add the .zip file to my Media Library and get the link that will work: https://alleycorpnord.com/wp-content/uploads/2023/08/acnnew.zip

    Plugin Author Matias Benedetto

    (@mmaattiiaass)

    Hi @darcey1 thanks for the .zip file! Very useful to debug the issue.

    I found that the cause of the broken theme is the inclusion of some invalid font definitions coming from Jetpack in your theme.json file that are causing problems. I’m not sure why they are being added to the exported theme.json.

    What is the cause of this problem?
    I’m not completely sure but it seems that, for some unknown reason, you have some invalid font definitions in your global styles. I think that something useful to fix the problem could be resetting the global styles to the default in the theme you are using as a base.

    Here you can see you do that: https://www.youtube.com/watch?v=HQCToOpJIqY

    If you reset the global styles of the theme, clone the theme as a new theme, and upload it again I think it should work as expected. Could you try that and upload the resulting theme zip?

    As an alternative and as a quick fix that maybe it’s useful for you, I removed the invalid font families definitions from the theme.json file of your theme. You can get the modified version of the theme you shared from this link.

    Let me know how it goes.

    Thread Starter Darcey1

    (@darcey1)

    I’m happy to do the “long fix” as I foresee needing to use CBT for future sites as well.

    Re-“clone the theme as a new theme” do you mean:

    1. clone TT3? or

    2. create a child theme of TT3? i.e. reset global styles on TT3 and then create a child theme using CBT?

    I’m concerned that if I clone TT3 instead, that future updates to TT3 won’t be applied to my site.

    Plugin Author Matias Benedetto

    (@mmaattiiaass)

    I’m concerned that if I clone TT3 instead, that future updates to TT3 won’t be applied to my site.

    Future updates, if any, will be only minor style bug fixes. I would not recommend creating a child theme in your case. It’s simpler to have a stand-alone theme and a child theme in this case would not add much value in my opinion.

    Re-“clone the theme as a new theme” do you mean:

    I suggest this path:
    – Activate TT3 theme
    – Reset global styles
    – Clone TT3 with another name (Clone it as a new theme no need to create a child).
    – Upload the zip of the newly created theme.
    – Activate the uploaded theme.
    – Reset global styles again (just in case you had used the same theme name before).
    – Make some changes to the theme as addding a new font using CBT.
    – Clone the theme with a new name and upload and activate it to test if it’s working as expected.

    That’s all.
    If it’s not working please share all the 2 zip files generated in the process suggested to continue debugging the problem.

    Thanks!

    Thread Starter Darcey1

    (@darcey1)

    Success! Thank you so much. I really appreciate the speedy response and your persistence.

    Note that this step (– Reset global styles again (just in case you had used the same theme name before)) was not possible as the Reset icon was dimmed, probably because I had not made any changes.

    Plugin Author Matias Benedetto

    (@mmaattiiaass)

    Note that this step (– Reset global styles again (just in case you had used the same theme name before)) was not possible as the Reset icon was dimmed, probably because I had not made any changes.

    Yep! that’s right. If there are no changes the button is not active.

    Success! Thank you so much. I really appreciate the speedy response and your persistence.

    Excellent, I’m glad to hear that it’s working!
    Thanks for the help debugging.
    I’m marking this thread as resolved. Feel free to post a new thread if you have more questions.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error handling font changes. WordPress lack permissions to manage the theme font’ is closed to new replies.