Moving folders to a new location and adjusting automatically files references

1 reply · opened May 21, 2021

JjesusdelagarzaMay 21, 2021

Hello,

I'm planning a website update and to prevent any issues with my current website design (previous Canvas version) I'll need to prepare a few adjustments, so I can replace file properly when ready.

1st, What's the best way to move all folders need it inside a new folder and affecting all files references at the same time while doing it?

I'll like to move all this folders: css/ images/ include/ js/ saas/ folders inside a new folder named: assets/ and while doing it I'll like to do all the proper adjustments in all folder references to point to the new location. (I want to do this automatically as doing it manually will be just hard)

Thanks for pointing me to the right direction

SSemicolon WebSTAFFMay 23, 2021

Hello,

Thanks for your Valuable Patience!

Unfortunately, since Canvas is an HTML Template, the File references must be changed manually unless you already have centralized reference setup earlier. You can use PHP to set a constant with the Files Location like:
[ch_pre type="php"][/ch_pre]

Then you can simply set this in the HTML:
[ch_pre]

  • style.css" type="text/css" />[/ch_pre]

Additionally, you will need to change the File extension from .html to .php, so PHP Codes can execute.

That's the only way and any further setup must be done manually. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard