• Resolved Yochai Glik

    (@yochaiglik)


    Hi everyone,

    i am trying to add the site editor feature to a classic theme to make it a hybrid theme or a universal theme.

    i followed this tutorial by Frank Klein and i did managed to add the site editor feature to my theme, but it messed up my templates and it seem that wordpress includes the wrong templates.

    i step debugged my site trying to access my product archive
    and in wp-includes/template-loader.php the template that was loaded was storefront/archive.php instead of storefront-child/product-archive.php

    i dont know why this is hapening and i would like and appreciate help with this subject.

Viewing 1 replies (of 1 total)
  • Thread Starter Yochai Glik

    (@yochaiglik)

    update:

    i had issue with the home page, i thought it was templating problem, but after a deep dig i found out that its only some styles and scripts that made the home page look difference.

    using query monitor when i loaded my home page
    without the site editor i got:
    58 styles, and 38 scripts
    with the site editor i got:
    70 styles, and 35 scripts

    so my perhaps some styles that was making the home page look as it should wasnt loaded or some other styles overide and make it look different.

    P. S.
    i didnt knew about the option to convert a block theme to a hybrid theme by adding theme/theme.json and theme/templates/index.html and i must say that this information blew my mind because i looked for something like this a lot!
    after i learnt it i search for a reference of this in the documentation and didnt find anything about it.

    so if someone have link to a reference i would realy appreciate a share, or just talk to me here or on email.

    • This reply was modified 11 months, 1 week ago by Yochai Glik.
Viewing 1 replies (of 1 total)
  • The topic ‘adding site editor to a classic theme’ is closed to new replies.