Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

WordPress Theme to SilverStripe converter

Go to End

6 Posts   5440 Views

johny why

Community Member, 1 Post

15 July 2008 at 6:51am

there are hundreds, or thousands, of great WordPress themes. i wish someone would make a "WordPress Theme to SilverStripe Template Converter" :)

is there a way to do it manually?


Administrator, 690 Posts

18 July 2008 at 3:08pm

I'm not sure how you would go about writing a Wordpress to SilverStripe theme converter - I believe that Wordpress themes allow you do include PHP code in the theme, which would make it very difficult.

You could perhaps write a converter that recognised PHP snippets commonly used in wordpress templates. It would never be 100%, but it could probably lower the barrier to entry...

Grayzag (aka ajshort)

29 Posts

20 July 2008 at 12:24am

I think that the fact that wordpress themes are spread across multiple files, and not always in the same files, would make a WP to SS theme converter very difficult.

IMO, it's easier just to do it manually -> e.g, get the generated HTML output (just view source in firefox), paste it into a text editor and just replace the content and style sheets etc. with SilverStripe template tags.


Community Member, 149 Posts

20 July 2008 at 7:10am

Introducing some coding standards, like IDs anc Classes names for specific site sections would really simplify the conversion process ;)

Unfortunately, no one cares about this, so you can only hope that the menus will be called sth like "menu", text containers like "content" etc.

Recently, I was thinking about writing a program to convert a theme written in specific standards to SilverStripe, even done a bit of coding, but it's not ready yet so I seriously doubt that it will be useful for anybody (search forums for the Theme Maker to find it ;) )


Forum Moderator, 5523 Posts

20 July 2008 at 6:09pm

Wojtek we have had a bit of a play around with guidelines on naming see our html, css pages and our microformats page - lays out the core IDs

We are still drafting and testing these ideas and would love some feedback once we have the general ideas drafted / suggestions would be great.


Community Member, 13 Posts

21 July 2008 at 5:33am

As far as standards go, I'd like to suggest using the wordpress 'sandbox' paradigm. The sandbox sets many CSS class attributes for the mark-up sections. It adds class attributes like 'first-post,' for the first posting on the page, and many others, including some class attributes based on date and time of day.

A user of the sandbox theme only needs to put in a CSS file with positioning and other attributes: Kind of like the Zen Garden for Wordpress.

All of my sites which use wordpress ( , , ) use sandbox as a base.

Sandbox is discussed at: You can view the entrants in the design competition at