[Skip to main content](#vessel-content)

#   Move the categories above text

##

- **[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")**
- [![mad-q's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4784-mad-q "View mad-q's Profile") Topic Author
- [ Offline](/forum/user/4784-mad-q)

Less More

- Posts: 234
- Thank you received: 4
-
-

14 years 2 months ago [\#61234](#61234) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  *[Move the categories above text](/forum/4-how-to/61234-move-the-categories-above-text#61234 "Hello,  I have tried to find it but can't how I can move the sub categories on the above text which is written on the main category.  Many Thanks Iain")* was created by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")*

Hello,

I have tried to find it but can't how I can move the sub categories on the above text which is written on the main category.

Many Thanks
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjM0LW1vdmUtdGhlLWNhdGVnb3JpZXMtYWJvdmUtdGV4dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 months ago [\#61238](#61238) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Move the categories above text](/forum/4-how-to/61234-move-the-categories-above-text#61238 "Hello,  I have tried to find it but can't how I can move the sub categories on the above text which is written on the main category.  Many Thanks Iain")*

Hi

Edit the view "Category / listing" in HikaShop &gt; Display &gt; Views.

And put the code: Code:

if($this-&gt;params-&gt;get('show_description',1)&amp;&amp;!empty($this-&gt;element-&gt;category_description)){ ?&gt; &lt;div class="hikashop_category_description_content"&gt; &lt;?php echo JHTML::_('content.prepare',$this-&gt;element-&gt;category_description); ?&gt; &lt;/div&gt; &lt;?php }?&gt;

At the end of the code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjM0LW1vdmUtdGhlLWNhdGVnb3JpZXMtYWJvdmUtdGV4dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")**
- [![mad-q's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4784-mad-q "View mad-q's Profile") Topic Author
- [ Offline](/forum/user/4784-mad-q)

Less More

- Posts: 234
- Thank you received: 4
-
-

14 years 2 months ago [\#61244](#61244) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Re: Move the categories above text](/forum/4-how-to/61234-move-the-categories-above-text#61244 "Hello,  I have tried to find it but can't how I can move the sub categories on the above text which is written on the main category.  Many Thanks Iain")*

Hello,

I have done that and there is no change.

For an example please visit

[ www.draganfly.co.uk/index.php/ariel/cate...electrical-equipment](http://www.draganfly.co.uk/index.php/ariel/category/730-electrical-equipment)

I would like the categories above the text.

Many Many thanks
Iain

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 1.5.4
* @author hikashop.com
* @copyright (C) 2010-2011 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;
&lt;div id="&lt;?php echo $this-&gt;params-&gt;get('main_div_name');?&gt;" class="hikashop_category_information hikashop_categories_listing_main"&gt;
&lt;?php
if(version_compare(JVERSION,'1.6','&lt;')){
$title = 'show_page_title';
}else{
$title = 'menu_text';
}
if($this-&gt;module){
$title = 'showtitle';
}
if($this-&gt;params-&gt;get($title) &amp;&amp; JRequest::getVar('hikashop_front_end_main',0)){
?&gt;
&lt;h1&gt;
&lt;?php echo $this-&gt;params-&gt;get('page_title'); ?&gt;
&lt;/h1&gt;
&lt;?php
}
if(!$this-&gt;module){
if(($this-&gt;params-&gt;get('show_image') &amp;&amp; !empty($this-&gt;element-&gt;file_path))&#124;&#124; ($this-&gt;params-&gt;get('show_description')&amp;&amp;!empty($this-&gt;element-&gt;category_description))){
?&gt;
&lt;div class="hikashop_category_description"&gt;
&lt;?php
if($this-&gt;params-&gt;get('show_image') &amp;&amp; !empty($this-&gt;element-&gt;file_path)){
jimport('joomla.filesystem.file');
if(JFile::exists($this-&gt;image-&gt;getPath($this-&gt;element-&gt;file_path,false))){
?&gt;
&lt;img src="&lt;?php echo $this-&gt;image-&gt;getPath($this-&gt;element-&gt;file_path); ?&gt;" class="hikashop_category_image"/&gt;
&lt;?php
}
}
if($this-&gt;params-&gt;get('show_description')&amp;&amp;!empty($this-&gt;element-&gt;category_description)){
?&gt;
&lt;div class="hikashop_category_description_content"&gt;
&lt;?php echo JHTML::_('content.prepare',$this-&gt;element-&gt;category_description); ?&gt;
&lt;/div&gt;
&lt;?php
}
?&gt;
&lt;/div&gt;
&lt;?php
}
if(!empty($this-&gt;fields)){ ?&gt;
&lt;div id="hikashop_category_custom_info_main" class="hikashop_category_custom_info_main"&gt;
&lt;h4&gt;&lt;?php echo JText::_('CATEGORY_ADDITIONAL_INFORMATION');?&gt;&lt;/h4&gt;
&lt;table width="100%"&gt;
&lt;?php
$this-&gt;fieldsClass-&gt;prefix = '';
foreach($this-&gt;fields as $fieldName =&gt; $oneExtraField) {
if(!empty($this-&gt;element-&gt;$fieldName)){ ?&gt;
&lt;tr class="hikashop_category_custom_&lt;?php echo $oneExtraField-&gt;field_namekey;?&gt;_line"&gt;
&lt;td class="key"&gt;
&lt;span id="hikashop_category_custom_name_&lt;?php echo $oneExtraField-&gt;field_id;?&gt;" class="hikashop_category_custom_name"&gt;
&lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField);?&gt;
&lt;/span&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;span id="hikashop_category_custom_value_&lt;?php echo $oneExtraField-&gt;field_id;?&gt;" class="hikashop_category_custom_value"&gt;
&lt;?php echo $this-&gt;fieldsClass-&gt;show($oneExtraField,$this-&gt;element-&gt;$fieldName); ?&gt;
&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php }
}?&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;?php }
}
$layout_type = $this-&gt;params-&gt;get('layout_type');
if($layout_type=='table') $layout_type = 'div';
$html = $this-&gt;loadTemplate($layout_type);
if(!empty($html)) echo '&lt;div class="hikashop_subcategories_listing"&gt;'.$html.'&lt;/div&gt;';
if(!$this-&gt;module){
if(!empty($this-&gt;modules)){
$html = '';
jimport('joomla.application.module.helper');
foreach($this-&gt;modules as $module){
$html .= JModuleHelper::renderModule($module);
}
if(!empty($html)){
echo '&lt;div class="hikashop_submodules" style="clear:both"&gt;'.$html.'&lt;/div&gt;';
}

}
}

&lt;/div&gt;
if($this-&gt;params-&gt;get('show_description',1)&amp;&amp;!empty($this-&gt;element-&gt;category_description)){
?&gt;
&lt;div class="hikashop_category_description_content"&gt;
&lt;?php echo JHTML::_('content.prepare',$this-&gt;element-&gt;category_description); ?&gt;
&lt;/div&gt;
&lt;?php
}?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjM0LW1vdmUtdGhlLWNhdGVnb3JpZXMtYWJvdmUtdGV4dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 months ago [\#61248](#61248) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Move the categories above text](/forum/4-how-to/61234-move-the-categories-above-text#61248 "Hello,  I have tried to find it but can't how I can move the sub categories on the above text which is written on the main category.  Many Thanks Iain")*

You need to cut and paste the code, not just copy it.

Are you sure that you edit the file in the good template ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjM0LW1vdmUtdGhlLWNhdGVnb3JpZXMtYWJvdmUtdGV4dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")**
- [![mad-q's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4784-mad-q "View mad-q's Profile") Topic Author
- [ Offline](/forum/user/4784-mad-q)

Less More

- Posts: 234
- Thank you received: 4
-
-

14 years 2 months ago [\#61259](#61259) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Re: Move the categories above text](/forum/4-how-to/61234-move-the-categories-above-text#61259 "Hello,  I have tried to find it but can't how I can move the sub categories on the above text which is written on the main category.  Many Thanks Iain")*

Well, I put the code as written at the bottom but it then came up with error in Line 104 since ?&gt; and &lt;/div&gt; were in twice, so I removed them. I am editing category / listing.php

When I remove the extra bits of code the page loads but the footer jumps to the top..
[ www.draganfly.co.uk/index.php/ariel/cate...electrical-equipment](http://www.draganfly.co.uk/index.php/ariel/category/730-electrical-equipment)

Thank you for your very quick reply.

Yours
Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjM0LW1vdmUtdGhlLWNhdGVnb3JpZXMtYWJvdmUtdGV4dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 months ago [\#61277](#61277) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Move the categories above text](/forum/4-how-to/61234-move-the-categories-above-text#61277 "Hello,  I have tried to find it but can't how I can move the sub categories on the above text which is written on the main category.  Many Thanks Iain")*

I think that one tag is missing, that's why the footer jump to the top.

Your code need to be like: Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 1.5.9 * @author hikashop.com * @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt; &lt;?php ob_start(); if(version_compare(JVERSION,'1.6','&lt;')){ $title = 'show_page_title'; }else{ $title = 'show_page_heading'; } $titleType='h1'; if($this-&gt;module){ $title = 'showtitle'; $titleType='h2'; } if($this-&gt;params-&gt;get($title) &amp;&amp; JRequest::getVar('hikashop_front_end_main',0)){ ?&gt; &lt;&lt;?php echo $titleType; ?&gt;&gt; &lt;?php echo $this-&gt;params-&gt;get('page_title'); ?&gt; &lt;/&lt;?php echo $titleType; ?&gt;&gt; &lt;?php } if(!$this-&gt;module){ if(($this-&gt;params-&gt;get('show_image') &amp;&amp; !empty($this-&gt;element-&gt;file_path))&#124;&#124; ($this-&gt;params-&gt;get('show_description')&amp;&amp;!empty($this-&gt;element-&gt;category_description))){ ?&gt; &lt;div class="hikashop_category_description"&gt; &lt;?php if($this-&gt;params-&gt;get('show_image') &amp;&amp; !empty($this-&gt;element-&gt;file_path)){ jimport('joomla.filesystem.file'); if(JFile::exists($this-&gt;image-&gt;getPath($this-&gt;element-&gt;file_path,false))){ ?&gt; &lt;img src="&lt;?php echo $this-&gt;image-&gt;getPath($this-&gt;element-&gt;file_path); ?&gt;" class="hikashop_category_image"/&gt; &lt;?php } } ?&gt; &lt;/div&gt; &lt;?php } if(!empty($this-&gt;fields)){ ?&gt; &lt;div id="hikashop_category_custom_info_main" class="hikashop_category_custom_info_main"&gt; &lt;h4&gt;&lt;?php echo JText::_('CATEGORY_ADDITIONAL_INFORMATION');?&gt;&lt;/h4&gt; &lt;table width="100%"&gt; &lt;?php $this-&gt;fieldsClass-&gt;prefix = ''; foreach($this-&gt;fields as $fieldName =&gt; $oneExtraField) { if(!empty($this-&gt;element-&gt;$fieldName)){ ?&gt; &lt;tr class="hikashop_category_custom_&lt;?php echo $oneExtraField-&gt;field_namekey;?&gt;_line"&gt; &lt;td class="key"&gt; &lt;span id="hikashop_category_custom_name_&lt;?php echo $oneExtraField-&gt;field_id;?&gt;" class="hikashop_category_custom_name"&gt; &lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField);?&gt; &lt;/span&gt; &lt;/td&gt; &lt;td&gt; &lt;span id="hikashop_category_custom_value_&lt;?php echo $oneExtraField-&gt;field_id;?&gt;" class="hikashop_category_custom_value"&gt; &lt;?php echo $this-&gt;fieldsClass-&gt;show($oneExtraField,$this-&gt;element-&gt;$fieldName); ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } }?&gt; &lt;/table&gt; &lt;/div&gt; &lt;?php } } $layout_type = $this-&gt;params-&gt;get('layout_type'); if(empty($layout_type) &#124;&#124; $layout_type=='table') $layout_type = 'div'; $html = $this-&gt;loadTemplate($layout_type); if(!empty($html)) echo '&lt;div class="hikashop_subcategories_listing"&gt;'.$html.'&lt;/div&gt;'; if(!$this-&gt;module){ if(!empty($this-&gt;modules)){ $html = ''; jimport('joomla.application.module.helper'); foreach($this-&gt;modules as $module){ $html .= JModuleHelper::renderModule($module); } if(!empty($html)){ echo '&lt;div class="hikashop_submodules" style="clear:both"&gt;'.$html.'&lt;/div&gt;'; } } } $html = ob_get_clean(); if(!empty($html)){ ?&gt; &lt;div id="&lt;?php echo $this-&gt;params-&gt;get('main_div_name');?&gt;" class="hikashop_category_information hikashop_categories_listing_main"&gt; &lt;?php echo $html; ?&gt; &lt;/div&gt; &lt;?php } if($this-&gt;params-&gt;get('show_description',1)&amp;&amp;!empty($this-&gt;element-&gt;category_description)){ ?&gt; &lt;div class="hikashop_category_description_content"&gt; &lt;?php echo JHTML::_('content.prepare',$this-&gt;element-&gt;category_description); ?&gt; &lt;/div&gt; &lt;?php } ?&gt;

The following user(s) said Thank You: [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjM0LW1vdmUtdGhlLWNhdGVnb3JpZXMtYWJvdmUtdGV4dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")**
- [![mad-q's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4784-mad-q "View mad-q's Profile") Topic Author
- [ Offline](/forum/user/4784-mad-q)

Less More

- Posts: 234
- Thank you received: 4
-
-

14 years 2 months ago [\#61284](#61284) by [mad-q](/forum/user/4784-mad-q "View mad-q's Profile")  Replied by *[mad-q](/forum/user/4784-mad-q "View mad-q's Profile")* on topic *[Re: Move the categories above text](/forum/4-how-to/61234-move-the-categories-above-text#61284 "Hello,  I have tried to find it but can't how I can move the sub categories on the above text which is written on the main category.  Many Thanks Iain")*

You star, many thanks

Iain

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxMjM0LW1vdmUtdGhlLWNhdGVnb3JpZXMtYWJvdmUtdGV4dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.078 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
