How to Add a Wordpress Theme to Kentico 8

David Larew asked on June 24, 2014 16:59

How to Add a Wordpress Theme to Kentico 8

Correct Answer

Brenden Kehren answered on June 24, 2014 17:52

Yes for the javascript files, just make sure you create a sub folder in the Custom directory named the same as your site's code name (best practice). Then you can use the built-in tools to place the javascript on your page. Add a javascript webpart on your template and add this in the Inline section:

<script src="/CMSPages/GetResource.ashx?scriptfile=/CMSScripts/Custom/<sitecodename>/Cycle2.js" type="text/javascript"></script>

For the stylesheets, you have more control of them by using the the UI Stylesheet application. By default IIS will load any .css file in the App_Themes directory. What I do is create the main site stylesheet and name it the same as the site code name (best practice) and assign it to the site. Then any other stylesheet will simply be added in the UI and named as you wish. Then you can use the HEAD HTML webpart and add a new stylesheet in the order you need them by using this syntax:

<link href="/CMSPages/GetResource.ashx?stylesheetname=YourStyleSheetCodeName" type="text/css" rel="stylesheet"/>

Using the GetResource.ashx will allow your end file to be minimized as well, which is another bonus.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on June 24, 2014 17:08

Lets say the easy answer is you don't.

The more correct answer is you'd have to take the "theme" out of it and get straight markup (html, css, javascript, etc) and implement that into Kentico. Kentico uses standard out of the box asp.net Themes so if you have an idea on how they work, you will be ahead of many others.

0 votesVote for this answer Mark as a Correct answer

David Larew answered on June 24, 2014 17:15

So add all the js files in CMSScripts/Custom and all the css files in new css stylesheets or App_Themes?

0 votesVote for this answer Mark as a Correct answer

Martin Danko answered on June 25, 2014 04:41

Hello David,

Let me also point out the main difference here. Kentico is ASP.NET application while Wordpress is powered by PHP, there are two completely different technologies using different architecture and the most importand -> different page template systems.

But yes, as Brenden has mentioned, in general, the most of work is related to styles and JavaScripts, so it's of course possible to create the pages that will look exactly the same but it's not possible just to "migrate" a whole design.

Best regards, Martin

0 votesVote for this answer Mark as a Correct answer

David Larew answered on June 25, 2014 09:28

Yes, I know the difference, my client wants the Wordpress look and feel so I'm looking for the best way to meet my client's request. Thanks for any exact examples that you can provide. David

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.