# Edit or create theme at code level?

**URL:** <https://forums.realmacsoftware.com/t/edit-or-create-theme-at-code-level/31238>\
**Category:** RapidWeaver Classic\
**Created:** [February 17, 2020, 4:36pm UTC](https://forums.realmacsoftware.com/t/edit-or-create-theme-at-code-level/31238 "2020-02-17T16:36:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuperDano](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@SuperDano](https://forums.realmacsoftware.com/u/SuperDano)\
**Post date:** [February 17, 2020, 4:36pm UTC](https://forums.realmacsoftware.com/t/edit-or-create-theme-at-code-level/31238/1 "2020-02-17T16:36:18Z")

</div>

Hi

I am using RapidWeaver because I have a client whose websites are built with it. I’m a freelance developer.

I’m used to working with WordPress and creating custom themes or child themes, so basically coding the page myself in PHP/HTML and then using WordPress to populate my pages.

Is it possible to do this in Rapid Weaver? I’ve been going through the code of the saved site but there are only settings and content, no templates, and the Rapid Weaver application is a single file without, say, a themes folder where I could see how it’s done and create my own. I’d also like to create my own stacks, which I think is possible, but again can’t seem to find the existing code to edit or see how it’s done.

If anyone can tell me how to create themes/stacks or if it’s actually not possible in RW, I’d really appreciate it, thanks!

---

<div class="post-metadata">

**Author:** ![instacks](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/instacks/32/23339_2.png) [@instacks](https://forums.realmacsoftware.com/u/instacks)\
**Post date:** [February 17, 2020, 4:46pm UTC](https://forums.realmacsoftware.com/t/edit-or-create-theme-at-code-level/31238/2 "2020-02-17T16:46:48Z")

</div>

Sure, you will find most of the information here:

> **[GitHub - realmacsoftware/RWThemeKit: The RapidWeaver Theme SDK](https://github.com/realmacsoftware/RWThemeKit)**
>
> The RapidWeaver Theme SDK. Contribute to realmacsoftware/RWThemeKit development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![SuperDano](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@SuperDano](https://forums.realmacsoftware.com/u/SuperDano)\
**Post date:** [February 17, 2020, 6:09pm UTC](https://forums.realmacsoftware.com/t/edit-or-create-theme-at-code-level/31238/3 "2020-02-17T18:09:42Z")

</div>

That’s infinitely helpful, thank you. That’s really easy to create themes but just 2 questions:

1. Is it possible to get at the code for any of the built-in themes? Then I can just make a few tweaks to the existing theme. I’ll probably create our own in time but it’s not a priority, a couple of tweaks for now would be great.

2. Can I include PHP in the index file? Do I rename it index.php?

Thanks

---

<div class="post-metadata">

**Author:** ![instacks](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/instacks/32/23339_2.png) [@instacks](https://forums.realmacsoftware.com/u/instacks)\
**Post date:** [February 17, 2020, 6:44pm UTC](https://forums.realmacsoftware.com/t/edit-or-create-theme-at-code-level/31238/4 "2020-02-17T18:44:20Z")

</div>

Have a look inside the rapidweaver.app bundle. You will find the themes inside there.

The theme main file must be called (afaik) index.html. Inside RW you are able to change the file extension to php.

---

<div class="post-metadata">

**Author:** ![DLH](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@DLH](https://forums.realmacsoftware.com/u/DLH)\
**Post date:** [February 17, 2020, 7:03pm UTC](https://forums.realmacsoftware.com/t/edit-or-create-theme-at-code-level/31238/5 "2020-02-17T19:03:51Z")

</div>

In the theme drawer, right-click on a theme and “Duplicate Theme”. Name it whatever you want. Now, go to the file menu, and select “Reveal Addons Folder”. Your new theme should be in the Themes sub-folder.

You can make any changes you’d like to this new theme without any chance of damaging the existing theme.

---

<div class="post-metadata">

**Author:** ![SuperDano](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@SuperDano](https://forums.realmacsoftware.com/u/SuperDano)\
**Post date:** [February 17, 2020, 7:17pm UTC](https://forums.realmacsoftware.com/t/edit-or-create-theme-at-code-level/31238/6 "2020-02-17T19:17:20Z")

</div>

Thanks both, I can do exactly what I wanted to now.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [March 19, 2020, 5:17am UTC](https://forums.realmacsoftware.com/t/edit-or-create-theme-at-code-level/31238/7 "2020-03-19T05:17:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
