# Creating new theme

**URL:** <https://pressbooks.community/t/creating-new-theme/515>\
**Category:** Theme Development\
**Created:** [May 7, 2018, 5:12pm UTC](https://pressbooks.community/t/creating-new-theme/515 "2018-05-07T17:12:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ETNA](https://pressbooks.community/letter_avatar_proxy/v4/letter/e/5f9b8f/32.png) [@ETNA](https://pressbooks.community/u/ETNA)\
**Post date:** [May 7, 2018, 5:12pm UTC](https://pressbooks.community/t/creating-new-theme/515/1 "2018-05-07T17:12:34Z")

</div>

Hi!

I would like to create a new book theme (right to left).  
I wonder if i can create it from scratch, or I must inherit the McLuhan theme?

If i can create it by myself, what are the required files that should be in the new theme?

Thank you,  
Etna

---

<div class="post-metadata">

**Author:** ![ned](https://pressbooks.community/user_avatar/pressbooks.community/ned/32/533_2.png) [@ned](https://pressbooks.community/u/ned)\
**Post date:** [May 7, 2018, 5:20pm UTC](https://pressbooks.community/t/creating-new-theme/515/2 "2018-05-07T17:20:44Z")

</div>

You must inherit the McLuhan theme. You can use this cli command: [https://github.com/pressbooks/pb-cli#wp-scaffold-book-theme](https://github.com/pressbooks/pb-cli#wp-scaffold-book-theme) if you have WP-CLI installed.

---

<div class="post-metadata">

**Author:** ![ETNA](https://pressbooks.community/letter_avatar_proxy/v4/letter/e/5f9b8f/32.png) [@ETNA](https://pressbooks.community/u/ETNA)\
**Post date:** [May 7, 2018, 5:21pm UTC](https://pressbooks.community/t/creating-new-theme/515/3 "2018-05-07T17:21:47Z")

</div>

Thank you so much!!  
I really appreciate your help!

---

<div class="post-metadata">

**Author:** ![ETNA](https://pressbooks.community/letter_avatar_proxy/v4/letter/e/5f9b8f/32.png) [@ETNA](https://pressbooks.community/u/ETNA)\
**Post date:** [May 8, 2018, 1:20pm UTC](https://pressbooks.community/t/creating-new-theme/515/4 "2018-05-08T13:20:06Z")

</div>

Hi again! 😅

I saw that McLuhan theme supports **left-to-right**.  
I have to make my theme fully support **right-to-left**

Can you please guide me how I should do that? what changes I have to make, and where…

Thank you!

---

<div class="post-metadata">

**Author:** ![ned](https://pressbooks.community/user_avatar/pressbooks.community/ned/32/533_2.png) [@ned](https://pressbooks.community/u/ned)\
**Post date:** [May 8, 2018, 1:30pm UTC](https://pressbooks.community/t/creating-new-theme/515/5 "2018-05-08T13:30:01Z")

</div>

Hi, I don’t really have expertise in RTL languages/scripts so I’m afraid I won’t be much help with this. You can add support for different languages and scripts using the Global Theme Options (see here: [https://guide.pressbooks.com/chapter/appearance/](https://guide.pressbooks.com/chapter/appearance/)) but that may not be sufficient. Sorry I can’t provide any further information.

---

<div class="post-metadata">

**Author:** ![ETNA](https://pressbooks.community/letter_avatar_proxy/v4/letter/e/5f9b8f/32.png) [@ETNA](https://pressbooks.community/u/ETNA)\
**Post date:** [May 8, 2018, 1:38pm UTC](https://pressbooks.community/t/creating-new-theme/515/6 "2018-05-08T13:38:57Z")

</div>

Hi, thanks for your fast response!

I will learn more about right-to-left support.  
Would it be an option to create the theme from scratch? or I still must inherit McLuhan?

Thanks!

---

<div class="post-metadata">

**Author:** ![ned](https://pressbooks.community/user_avatar/pressbooks.community/ned/32/533_2.png) [@ned](https://pressbooks.community/u/ned)\
**Post date:** [May 8, 2018, 1:40pm UTC](https://pressbooks.community/t/creating-new-theme/515/7 "2018-05-08T13:40:00Z")

</div>

You must inherit McLuhan because it provides all of the web interface and base styles for various book export formats.

---

<div class="post-metadata">

**Author:** ![ETNA](https://pressbooks.community/letter_avatar_proxy/v4/letter/e/5f9b8f/32.png) [@ETNA](https://pressbooks.community/u/ETNA)\
**Post date:** [May 8, 2018, 1:41pm UTC](https://pressbooks.community/t/creating-new-theme/515/8 "2018-05-08T13:41:38Z")

</div>

Really appreciate all your help! 😃
