<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Use theme configuration in a Layout</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118529976" />
  <subtitle>Use theme configuration in a Layout</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118529976</id>
  <updated>2026-04-06T15:28:28Z</updated>
  <dc:date>2026-04-06T15:28:28Z</dc:date>
  <entry>
    <title>RE: Use theme configuration in a Layout</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118551283" />
    <author>
      <name>Lee Jordan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118551283</id>
    <updated>2020-02-19T15:05:51Z</updated>
    <published>2020-02-19T15:05:51Z</published>
    <summary type="html">You could in the theme portal_normal throw a 0px height div into the HTML like div id=&amp;#34;theme-settings&amp;#34; and attach all kinds of classes to it then use jQuery hasclass() in the layout to see if the page contains certain theme settings.&lt;br /&gt;&lt;br /&gt;That should work for ADT (widget templates) and web content templates and fragments too.</summary>
    <dc:creator>Lee Jordan</dc:creator>
    <dc:date>2020-02-19T15:05:51Z</dc:date>
  </entry>
  <entry>
    <title>Use theme configuration in a Layout</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118529975" />
    <author>
      <name>Axel LEFEVRE</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118529975</id>
    <updated>2020-02-18T08:46:27Z</updated>
    <published>2020-02-18T08:46:27Z</published>
    <summary type="html">Hi, I would like to know if it is possible to use theme configuration in a Freemarker Layout? I followed all the steps of this doc (&lt;a href="https://portal.liferay.dev/docs/7-2/frameworks"&gt;&lt;/a&gt;&lt;a href="https://portal.liferay.dev/docs/7-2/frameworks/-/knowledge_base/f/making-configurable-theme-settings"&gt;https://portal.liferay.dev/docs/7-2/frameworks/-/knowledge_base/f/making-configurable-theme-settings&lt;/a&gt;&lt;a href="https://portal.liferay.dev/docs/7-2/frameworks"&gt;&lt;/a&gt;), but I cannot recover the configuration in my Layout. Is this normal? It is only possible to use the configuration outside of Layouts, as in portal-normal.ftl? Thanks for your help</summary>
    <dc:creator>Axel LEFEVRE</dc:creator>
    <dc:date>2020-02-18T08:46:27Z</dc:date>
  </entry>
</feed>
