Hello!
Please tell me how to add an additional module with code to the template for mobile devices (handheld)?
Thank you!

T3 Template Framework & JA Purity II

Hi

Purity II is too old for now, you should consider to move to T4 Blank template which is also free and easier to customize

Thanks, yes i understand, but there is no way to upgrade now. Help modify the old version?

T3 Template Framework & JA Purity II have mobile template (Handheld), but I want to add html code in this template...

I want to add a module with html code to this template...

<?xml version="1.0" encoding="utf-8"?>
<layout body-class="bd-handheld" device="handheld">
	<name>Handheld</name>
	<description>Default layout for handheld</description>
	<!--Extra css load for this layout-->
	<stylesheets>
		<file>css/handheld/layout.css</file>
		<file>css/handheld/template.css</file>
	</stylesheets>
	<blocks name="top" style="xhtml">
		<block name="mainnav" type="handheld/mainnav"></block>
		<block name="header" type="handheld/header"></block>
	</blocks>
	<blocks name="middle">
	</blocks>
	<blocks name="bottom" style="xhtml">
		<block name="footer" type="handheld/footer"></block>
	</blocks>
</layout>

After the module:

		<block name="header" type="handheld/header"></block>

Insert an additional module with HTML code that will display the phone number?

starservice

You can try to add a new module position with this tip: https://www.joomlart.com/forums/topic/need-another-menu-like-mega-menu-above-or-below-the-existing-one/#post-531416

Download this attached file >> unzip and copy file 'top.php' to this folder:

topphp.zip
836B

/templates/ja_purity_ii/blocks/top.php

Then edit the layout for 'Handheld' device and load the top block:

<?xml version="1.0" encoding="utf-8"?>
<layout body-class="bd-handheld" device="handheld">
	<name>Handheld</name>
	<description>Default layout for handheld</description>
	<!--Extra css load for this layout-->
	<stylesheets>
		<file>css/handheld/layout.css</file>
		<file>css/handheld/template.css</file>
	</stylesheets>
	<blocks name="top" style="xhtml">
		<block name="mainnav" type="handheld/mainnav"></block>
		<block name="header" type="handheld/header"></block>
                <block name="top" type="top" main-inner="1"></block>
	</blocks>
	<blocks name="middle">
	</blocks>
	<blocks name="bottom" style="xhtml">
		<block name="footer" type="handheld/footer"></block>
	</blocks>
</layout>

Finally, assign your custom module to the 'new-position' created above.

Write a Reply...
You need to Login to view replies.