Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Different theme/html for every page?
#4
(2018-04-30, 18:36:24)Alexander_ Wrote:
(2018-04-30, 13:09:31)gsmoel Wrote: This is one of the best and simple CMS I discovered! 
My question: Is it possible to give every page a different background color or even a complete new theme? I really like the possibility to edit the html but unfortunately I didn't saw an option to do that seperetaly for every page. 
Thank you!

First install the addons i18n and i18n custom fields. Then you define a custom field named "backgroundcolor". Now you'll find in the "page options+" on "edit page" a field in which you type in the wanted background-color - e.g. red, #ff0000, rgb(255,0,0).

In your template write in the <head>-section this
Code:
<style>
body { background-color: get_custom_field('backgroundcolor'); ?>
</style>

Alex

Thanks for reply Alex, I did everything you said but it didn't work. Do I have to do something else like different type customfield? I chose textfield... Or is it overwritten by the default css file of the theme? Please help me Thank you!
Reply


Messages In This Thread
Different theme/html for every page? - by gsmoel - 2018-04-30, 13:09:31
RE: Different theme/html for every page? - by gsmoel - 2018-05-01, 13:03:25



Users browsing this thread: 2 Guest(s)