Skip to content

Update theme to work with WonderCMS 3.0.0

Robert Isoski edited this page Dec 7, 2019 · 3 revisions

Open your theme.php and replace your old theme tags with the ones below

  1. Replace <?= wCMS::settings() ?> with <?= $Wcms->settings() ?>

  2. Replace <?= wCMS::css() ?> with <?= $Wcms->css() ?>

  3. Replace <?= wCMS::asset('css/style.css') ?> with <?= $Wcms->asset('css/style.css') ?>

  4. Replace <?=wCMS::get('config','siteTitle')?> with <?= $Wcms->get('config','siteTitle') ?>

  5. Replace <?=wCMS::get('page','title')?> with <?= $Wcms->get('page','title') ?>

  6. Replace <?=wCMS::page('description')?> with <?= $Wcms->page('description') ?>

  7. Replace <?=wCMS::page('keywords')?> with <?= $Wcms->page('keywords') ?>

  8. Replace <?=wCMS::alerts()?> with <?= $Wcms->alerts() ?>

  9. Replace <?=wCMS::menu()?> with <?= $Wcms->menu() ?>

  10. Replace <?= wCMS::url() ?> with <?= $Wcms->url() ?>

  11. Replace <?=wCMS::page('content')?> with <?= $Wcms->page('content') ?>

  12. Replace <?=wCMS::block('subside')?> with <?= $Wcms->block('subside') ?>

  13. Replace <?=wCMS::footer()?> with <?= $Wcms->footer() ?>

  14. Replace <?= wCMS::js() ?> with <?= $Wcms->js() ?>

Save your theme.php and your theme should be working with WonderCMS 3.0.0 and versions above.

Clone this wiki locally
You can’t perform that action at this time.