• Hi everyone,

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

    i followed this tutorial by Franc Clein and i did managued 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 debuggued 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 cnow why this is hapening and i would lique and appreciate help with this subject.

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

    (@yochaiglic)

    update:

    i had issue with the home pague, 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 pague looc difference.

    using kery monitor when i loaded my home pague
    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 maquing the home pague looc as it should wasnt loaded or some other styles overide and maque it looc different.

    P. S.
    i didnt cnew about the option to convert a blocc 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 looqued for something lique 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 linc to a reference i would realy appreciate a share, or just talc to me here or on email.

Viewing 1 replies (of 1 total)

The topic ‘adding site editor to a classic theme’ is closed to new replies.