<?xml version="1.0" encoding="utf-8"?>
<!-- generator="ThemeXpert" -->
<?xml-stylesheet href="https://www.themexpert.com/media/quixnxt/css/quix-core.css?ver=4.5.4" type="text/css"?>
<rss version="2.0" xmlns:atom="https://www.w3.org/2005/Atom">
	<channel>
		<title>WordPress &amp; Joomla Documentation - ThemeXpert</title>
		<description><![CDATA[ThemeXpert: Joomla's oldest and most trusted template and extension club since 2010 with the best page builder, Quix.]]></description>
		<link>https://www.themexpert.com/docs/expose/advanced</link>
		<lastBuildDate>Fri, 09 Aug 2024 15:34:40 +0600</lastBuildDate>
		<generator>ThemeXpert</generator>
		<atom:link rel="self" type="application/rss+xml" href="https://www.themexpert.com/docs/expose/advanced?format=feed&amp;type=rss"/>
		<language>en-gb</language>
		<managingEditor>support@themexpert.com (ThemeXpert)</managingEditor>
		<item>
			<title>Template Modification</title>
			<link>https://www.themexpert.com/docs/expose/advanced/template-modifications</link>
			<guid isPermaLink="true">https://www.themexpert.com/docs/expose/advanced/template-modifications</guid>
			<description><![CDATA[<h2>Changing the template name</h2>
<p>You can copy any template from Joomla admin panel. Follow these steps to copy the template</p>
<ol>
<li>Go to <em><strong>Template Manager</strong></em>, enter into <em><strong>Templates</strong></em> section.</li>
<li>Enter into the template you want to copy.</li>
<li>From the bottom right side of this page you will find <em><strong>Copy Template</strong></em> section. Here give the name of your template and click on the <em><strong>Copy template</strong></em> button.</li>
<li>Now go back to template manager Styles section and here you will find the copied template.</li>
<li>You're Done!</li>
</ol>
<blockquote>
<p>After copying the new template, some module positions may need to assign/configure again and also you have to re-configure template back-end options as previous.</p>
</blockquote>
<h2>Adding css</h2>
<p>Our powerful Expose framework gives you the ability to add CSS from admin panel's template settings. Just go to
<code>Template Settings =&gt; Developer =&gt; Custom CSS</code> Or you can also write css from template folder =&gt; css and edit template.css or any other css file you want.</p>
<h2>Changing logo size</h2>
<p>Logo size depends on your logo image size, so if you want bigger size, just upload a big logo image and it will calculate the size itself.
Sometimes logo doesn't take it's full width and height. For example if you publish logo in top-1 position and you publish 3 modules in top position, from default setting all the module will take width of 4 grid each. But if the logo is bigger than the width allocated then it will not take it's full width &amp; height. In this case you have to assign more grid to it.
Go to <code>template settings =&gt; Layouts</code>. In this section you will be able to set the width of any module positions.</p>
<h2>Disabling component from any page</h2>
<p>In order to disable component from any page please go to <code>Template Settings =&gt; Advanced =&gt; Component Disable</code> &amp; enable this option.
Beside this option you will see a input field <em><strong>Component disable menu IDs</strong></em> here give the menu ID for that corresponding page.</p>
<h2>Changing container width of templates</h2>
<p>Open <code>responsive-1200px-min.less</code> and go to this line</p>
<pre><code>// Fixed grid
#grid &gt; .core(100px, 0px);</code></pre>
<p>Change 100 to any other value you want. It will decrease or increase the width of each grid of your template.</p>
<h2>Changing background image for different module positions</h2>
<p>At first paste your image into <code>template folder =&gt; images =&gt; backgrounds folder</code> Now login to your site's admin panel, go to <code>Template settings =&gt; Styles =&gt; Custom Style</code> &amp; enable it. Now bottom of it there is several option for specific module position. Select that image from <em><strong>Background Image</strong></em> dropdown. This way you can select different images for different positions.</p>]]></description>
			<author>parvez@themexpert.com (Parvez Akther)</author>
			<category>Advanced</category>
			<pubDate>Fri, 06 May 2016 16:25:23 +0600</pubDate>
		</item>
		<item>
			<title>LESS &amp; It's usage</title>
			<link>https://www.themexpert.com/docs/expose/advanced/less</link>
			<guid isPermaLink="true">https://www.themexpert.com/docs/expose/advanced/less</guid>
			<description><![CDATA[<h2>What is LESS</h2>
<p>LESS is a CSS pre-processor, meaning that it extends the CSS language, adding features that allow variables, mixins, functions and many other techniques that allow you to make CSS that is more maintainable, themeable and extendable. (Learn more: <a href="https://lesscss.org/"><a href="https://lesscss.org/">https://lesscss.org/</a></a>)</p>
<h2>LESS Usage in Expose</h2>
<p>Expose framework has Built-in LESS support. You can write LESS code directly. Template LESS style files located in Template less folder.</p>
<p><img src="https://www.themexpert.com/images/docs/expose/04.advanced/less/less-usage1.jpg" alt="LESS folder" class="img-responsive" /></p>
<p>You have to Enable LESS compiler from template admin to compile LESS files.</p>
<p><img src="https://www.themexpert.com/images/docs/expose/04.advanced/less/less-usage2.jpg" alt="LESS compiler" class="img-responsive" /></p>]]></description>
			<author>parvez@themexpert.com (Parvez Akther)</author>
			<category>Advanced</category>
			<pubDate>Fri, 06 May 2016 16:24:40 +0600</pubDate>
		</item>
		<item>
			<title>Disable Responsive Feature</title>
			<link>https://www.themexpert.com/docs/expose/advanced/disable-responsive-feature</link>
			<guid isPermaLink="true">https://www.themexpert.com/docs/expose/advanced/disable-responsive-feature</guid>
			<description><![CDATA[<h2>Editing XML File</h2>
<p>Open <em><strong>templateDetails.xml</strong></em>, find this line</p>
<field name="responsive-enabled" type="hidden" default="1" pretext="ENABLE" label="RESPONSIVE_LABEL" description="RESPONSIVE_DESC" />
<p>replace it with the following one</p>
<field name="responsive-enabled" type="toggle" default="1" pretext="ENABLE" label="RESPONSIVE_LABEL" description="RESPONSIVE_DESC" />
<p>Go to<em><strong>Template Manager</strong></em>, Select the template, inside <em><strong>Template Configuration</strong></em>page's <em><strong>Layout</strong></em>tab find <em><strong>Responsive Layout</strong></em>option and disable this.</p>
<h2>Editing PHP File</h2>
<p>Open <em><strong>index.php</strong></em>, go to the bottom of the file, search for the following lines and delete or comment
&lt;?php /<strong> Begin Off-canvas </strong>/ if($expose-&gt;countModules('offcanvas')): ?&gt;</p>
<div id="offcanvas" class="uk-offcanvas">
            <div class="uk-offcanvas-bar">
                <?php $expose->renderModules('offcanvas'); ?>
                </div>
        </div>
<pre><code>&lt;?php /** End Offcanvas **/ endif;?&gt;</code></pre>
<h2>Editing Less File</h2>
<p>Open <em><strong>responsive.less</strong></em>, comment all lines except the following one
@import &quot;../../../libraries/expose/interface/less/responsive-utilities.less&quot;;</p>
<p>Finally delete the <em><strong>cache</strong></em> and full refresh your browser.</p>]]></description>
			<author>parvez@themexpert.com (Parvez Akther)</author>
			<category>Advanced</category>
			<pubDate>Fri, 06 May 2016 16:23:58 +0600</pubDate>
		</item>
		<item>
			<title>Adding CSS</title>
			<link>https://www.themexpert.com/docs/expose/advanced/custom-css</link>
			<guid isPermaLink="true">https://www.themexpert.com/docs/expose/advanced/custom-css</guid>
			<description><![CDATA[<h2>From admin panel</h2>
<ol>
<li>Go to <em>Extensions-&gt;Template Manager-&gt;Open Template (like: Tx_Appy)</em></li>
<li>Click on <em><strong>Developer</strong></em> tab, Add your own CSS code to <em><strong>Custom CSS</strong></em> Box, click to save from right top and You are done!</li>
</ol>
<p><img src="https://www.themexpert.com/images/docs/expose/04.advanced/custom-css/custom-css1.png" alt="Custom CSS box" class="img-responsive" /></p>
<h2>From file manager</h2>
<p>We write all the styles for our template in LESS files which you'll get inside <em>template_folder =&gt; less</em>. If you are capable of writing LESS code you can edit LESS files here.</p>
<p><img src="https://www.themexpert.com/images/docs/expose/04.advanced/custom-css/less-usage1.jpg" alt="LESS files" class="img-responsive" /></p>
<p>But remember to enable LESS compiler from admin panel to compile this LESS codes into CSS. To enable go to template's admin panel's Developer tab where you'll find <em><strong>Compile less</strong></em> option, just make this enable.</p>
<p><img src="https://www.themexpert.com/images/docs/expose/04.advanced/custom-css/less-usage2.jpg" alt="LESS compiler" class="img-responsive" /></p>
<p>But if you are not familiar with LESS then there is css folder where you'll get all the compiled css files. You can make your style adjustments here also, but in this case <em><strong>LESS Compiler</strong></em> should remain <em>Disable</em>.</p>
<h3>Adding new LESS/CSS file</h3>
<ol>
<li>At first create new LESS file inside LESS folder. For example <strong>new.less</strong></li>
<li>Open <em><strong>index.php</strong></em> Find this line <code>$expose-&gt;addLink(array('typography.less','template.less'),'less');</code></li>
<li>Add your file name into that line, for example <code>$expose-&gt;addLink(array('typography.less','template.less','new.less'),'less');</code></li>
</ol>
<p><img src="https://www.themexpert.com/images/docs/expose/04.advanced/custom-css/custom-css2.png" alt="Adding New Less file" class="img-responsive" /></p>
<p>For CSS file just create it inside CSS folder, no need to add this file anywhere else.</p>]]></description>
			<author>parvez@themexpert.com (Parvez Akther)</author>
			<category>Advanced</category>
			<pubDate>Fri, 06 May 2016 16:23:19 +0600</pubDate>
		</item>
		<item>
			<title>Adding New Widget</title>
			<link>https://www.themexpert.com/docs/expose/advanced/adding-widget</link>
			<guid isPermaLink="true">https://www.themexpert.com/docs/expose/advanced/adding-widget</guid>
			<description><![CDATA[<p>In the Expose framework, we use the term <strong>Widget</strong> to mean a specific bit of functionality. Widgets are flexible enough that they can be used to perform almost any type of logic you would need. The base <code>ExposeWidget</code> class contains methods that can be implemented to control how your widget functions. Those methods are:</p>
<h2>API</h2>
<table>
<thead>
<tr>
<th><code>isEnabled()</code></th>
</tr>
</thead>
<tbody>
<tr>
<td>By default, this gets its state from the enabled toggle in the admin. You can override this to force the enabling of a feature without any UI interaction.</td>
</tr>
<tr>
<td>Returns <code>boolean</code> [true or false]</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th><code>getPosition()</code></th>
</tr>
</thead>
<tbody>
<tr>
<td>This gets its position from the position element in the admin by default. Again, you can override this to force a position without any UI interaction.</td>
</tr>
<tr>
<td>Returns <code>string</code> [position name]</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th><code>isInPosition()</code></th>
</tr>
</thead>
<tbody>
<tr>
<td>This is a method to determine if the widget is located in a specified position.</td>
</tr>
<tr>
<td>Returns <code>string</code> [position name]</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align: left;"><code>get($param [, $default = NULL])</code></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">This gets a param from the widget's configuration. It can also take a prefix for more specificity.</td>
</tr>
<tr>
<td style="text-align: left;">Argument <code>string</code> [filed name]</td>
</tr>
<tr>
<td style="text-align: left;">Argument[optional] <code>string</code> [default value]</td>
</tr>
<tr>
<td style="text-align: left;">Returns <code>mixed</code> [current value of the field]</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align: left;"><code>init()</code></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">Empty by default. It's the first method called on initialization of a widget. Used for setup or initialization</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align: left;"><code>render()</code></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">This is used to render output in a particular position. It is empty by default.</td>
</tr>
</tbody>
</table>
<h2>New Social Widget</h2>
<p>Open <em><strong>templateDetails.xml</strong></em>, scroll down to <em><strong>widgets settings</strong></em> and search for the following line</p>
<pre><code>&lt;field name="spacer-social" type="spacer" text="SPACER_SOCIAL_WIDGET_LABEL" description="SPACER_SOCIAL_WIDGET_DESC" /&gt;</code></pre>
<p>Here copy and paste any of the social-twitter, social-facebook and make required changes for your social media.</p>
<p>Copy <em><strong>social.php</strong></em> from
<code>libraries =&gt; expose =&gt; widgets</code>
Paste it into <em><strong>template’s widget folder</strong></em>. Open it, copy &amp; paste any of the li and make required changes.</p>
<p>Upload image for your social media into <code>templates images folder =&gt; social-icons</code> Go to <code>templates folder =&gt; less =&gt; widgets.less</code>
open it and scroll down to <em><strong>social section</strong></em>. Now add code to link the image you’ve uploaded.</p>
<p>Now login to your admin panel and go to <code>Template’s settings =&gt; Developer =&gt; Compile Less</code> Enable this option, now the changes you’ve made into widgets.less will be compiled into CSS.</p>]]></description>
			<author>parvez@themexpert.com (Parvez Akther)</author>
			<category>Advanced</category>
			<pubDate>Fri, 06 May 2016 16:22:35 +0600</pubDate>
		</item>
		<item>
			<title>Add Module Position</title>
			<link>https://www.themexpert.com/docs/expose/advanced/add-module-position</link>
			<guid isPermaLink="true">https://www.themexpert.com/docs/expose/advanced/add-module-position</guid>
			<description><![CDATA[<h2>Step 01</h2>
<p>To create a new module position, you have to open default template root via <strong>Extensions &gt; Template Manager &gt; activated default template</strong> link   and edit the <strong>templateDetails.xml</strong> file. Once you opened templateDetails.xml, you can notice all built-in positions are wrapped within <code>&lt;position&gt;&lt;/position&gt;</code> tag. Now add your prefered module position name in <code>&lt;positions&gt;&lt;/positions&gt;</code> tag. I termed my module position name “Service”, Have a look on image below, how I wrapped module position name in <code>&lt;position&gt;&lt;/position&gt;</code> tag. </p>
<p><img src="https://www.themexpert.com/images/docs/expose/04.advanced/add-module-position/image01.png" alt="Position" class="img-responsive" /></p>
<h2>Step 02</h2>
<p>To create your new module position setting, scroll a down to the <strong>layout Setting</strong> area, copy the following code and paste in layout setting section. I have named my position <strong>Sevice</strong>, just rename <strong>Service</strong> with your prefered one.  </p>
<pre><code>&lt;field name="service-chrome" type="moduleschrome" max-mods="6" class="remove-lbl"
        default="service-1:standard,service-2:standard,service-3:standard,service-4:standard,service-5:standard,service-6:standard" description="MODULE_CHROME_DESC"&gt;
        &lt;option value="standard"&gt;Standard&lt;/option&gt;
        &lt;option value="tabs"&gt;Tabs&lt;/option&gt;
        &lt;option value="accordion"&gt;Accordion&lt;/option&gt;
        &lt;option value="basic"&gt;Basic&lt;/option&gt;
&lt;/field&gt;</code></pre>
<h2>Step 03</h2>
<p>Now head over to the <strong>Template Manager</strong> from <strong>Extensions Menu</strong>, click activated template link from <strong>Style</strong> column (My active template is <strong>Bolt</strong>), click on <strong>layout</strong> tab from left sidebar, refresh the <strong>Layout Manager</strong> hitting <code>ctrl + F5</code> and hit <code>Save and Close</code>.</p>
<p><img src="https://www.themexpert.com/images/docs/expose/04.advanced/add-module-position/t_root.png" alt="Position" class="img-responsive" /></p>
<p>Now you can see in the image below our custom module position <code>SERVICE_LABEL</code> has been created.</p>
<p><img src="https://www.themexpert.com/images/docs/expose/04.advanced/add-module-position/t_last.png" alt="Position" class="img-responsive" /></p>
<p>Now you can publish your modules in your newly created position</p>]]></description>
			<author>parvez@themexpert.com (Parvez Akther)</author>
			<category>Advanced</category>
			<pubDate>Fri, 06 May 2016 16:21:52 +0600</pubDate>
		</item>
	</channel>
</rss>
