Loading...
 

Converting a Bootstrap theme made for HTML or another CMS

With Bootstrap CSS framework now integrated into Tiki, adapting existing themes to Tiki is much easier. Bootstrap themes made for straight HTML (that is, themes such as those made with the Bootstrap customizer) will work for Tiki “out of the box”.

Keep in mind that the role of themes on the Tiki platform is limited to visual styling and content placement and visibility, etc. Tiki themes don’t have a functional capability in the way that WordPress themes do, for example. So naturally those themes converted for Tiki will retain the appearance, but won’t have any functional ability beyond what Tiki provides.

Success relative to similarity

Bootstrap themes for other CMS applications will work to some degree, depending on how compatible the targetted HTML is with Tiki’s HTML. In other words, any styling and layout provided by the theme to style HTML element classes that Tiki doesn’t have obviously will be missed. Therefore, some conversion will be needed to match the theme’s CSS classes with those in Tiki’s HTML.

Making custom Smarty templates to provided needed CSS classes

This can be done either by changing the class names in the stylesheet or by changing Tiki’s HTML. The latter isn’t necessarily as daunting as it sounds. Tiki uses Smarty template files for layout, and a theme can have its own equivalent files that are modified to meet the needs of the theme. If the theme expects the main HTML page to have a certain arrangement of divs, for example, a layout_view.tpl file can be made to provide that arrangement. It functions as the bridge between Tiki’s content display blocks and the theme’s CSS rules.

Smaller page area component templates similarly can be made. There is some maintenance overhead to this approach because as the core files are developed over time, the theme-specific variants will need to be updated to stay compatible, but especially if they are made to provide the bridge for more than one theme, the effort would be worth it.

Test project on the horizon

As of this writing, only some partial adaptations have been done internally to test the process. But a project is planned to work out the details of converting a WordPress theme, among others.

Switch Theme

Layout

Subscribe to Tiki Newsletters!

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other big news!
Contribute to Tiki

Site Config

Shoutbox

luci, 14:22 GMT, Tue 17 of Jan, 2017: @Bsfez: :-D
Bsfez, 09:52 GMT, Wed 11 of Jan, 2017: This is really a nice Tiki !
chibaguy, 10:32 GMT, Mon 27 of Apr, 2015: Site admins: Be careful about editing the topbar menu, which is in a small space. I had to fix an option that should be a menuSection, to prevent overflow.
Torsten, 19:44 GMT, Fri 12 of Sep, 2014: hidden functionality "; recommitted in trunk, tested and working. Documentation under way on [Link]
chibaguy, 16:45 GMT, Thu 04 of Sep, 2014: The layout template can now be changed using the "Layout" module above. :-)