Skip to content

Update theme to work with WonderCMS 2.0.0

robiso edited this page Mar 18, 2017 · 4 revisions

How to update your theme.php and make it work with WonderCMS 2.0.0

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

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

  2. Replace <?=$title?> with <?=wCMS::page('title')?>

  3. Replace <?=$description?> with <?=wCMS::page('description')?>

  4. Replace <?=$keywords?> with <?=wCMS::page('keywords')?>

  5. Replace <?=wCMS::displayMessages()?> with <?=wCMS::alerts()?>

  6. Replace <?=wCMS::navigation()?> with <?=wCMS::menu()?>

  7. Replace <?=$content?> with <?=wCMS::page('content')?>

  8. Replace <?=$subside?> with <?=wCMS::block('subside')?>

Save your theme.php and you're done.

Clone this wiki locally