• Resolved rashidavc18

    (@rashidavc18)


    Hi
    i have renamed my theme folder
    /wp-content/themes/astra/ to
    /core/templates/template1/
    The renaming is successful and function well except for the below files
    /core/templates/template1/assets/fonts/astra.woff
    /core/templates/template1/assets/fonts/astra.ttf
    which is shown 404.The files are already present .But showing 404 with the renamed directory.

    Please let me know how this can be resolved

    • This topic was modified 11 months ago by rashidavc18.
Viewing 1 replies (of 1 total)
  • Plugin Support Peter

    (@petersquirrly)

    👋Hi Rashid,

    Thank you for reaching out.

    The font files are there, but because of how WP Ghost handles paths, a few extra steps are needed to fix the 404s:

    1. In WP Ghost > Change Paths > Theme Security > Advanced, update the theme name from astra to template1. (It’s important to do it here, not in Mapping.)
    2. Set the theme path to /core/templates.
    3. In Mapping > URL Mapping, add:
      • /core/templates/template1/assets/fonts/astra.woff/myfonts/myfont.woff
      • /core/templates/template1/assets/fonts/astra.ttf/myfonts/myfont.ttf
    4. Turn on Hide All The Themes to hide both parent and child themes.

    That should sort out the font problem.

Viewing 1 replies (of 1 total)

The topic ‘404 error after renaming’ is closed to new replies.