News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Change Header position

Started by bestcons, March 12, 2021, 07:32:11 AM

Previous topic - Next topic

bestcons

Our Historical Society website presents large amounts of Photo's as Articles (amongst others). We have made a top-category Photo's, sub-categories such as Schools and sub-sub categories for named schools such as Medlerschool (See attachments of screen images).
Unfortunately the lay-out of the various categories differ and we have not been able in the VM Configuration to position the (sub)-category names as Headers on top and the Navigation as trailers.
We use Joomla 3.9.25 and VM 3.8.8.
Please advice.

pinochico

Quotewe have not been able in the VM Configuration to position the (sub)-category names as Headers

Yes, you can but not in admin -  in PHP file for category layout - move manually.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

bestcons

I am able to change in php, but only if someone else is so kind to describe the recipe.

pinochico

then you have to send image with ecactly position :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

bestcons

You can see this in red on the 3 attachments. Thank you, don't hesitate if you need more information.

GJC Web Design

if your template is reasonably std. then the header is

<?php if (!empty($this->category->category_name)) { ?>
<h1><?php echo vmText::_($this->category->category_name); ?></h1>
<?php } ?>

so move the

// Show child categories
if ($this->showcategory and empty($this->keyword)) {
   if (!empty($this->category->haschildren)) {
      echo ShopFunctionsF::renderVmSubLayout('categories',array('categories'=>$this->category->children, 'categories_per_row'=>$this->categories_per_row));
   }
}

below that

same for the clearly commented search block

templates\YOURTEMPLATE\html\com_virtuemart\category\default.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

bestcons

#6
Unfortunately
<?php if (!empty($this->category->category_name)) { ?>
<h1><?php echo vmText::_($this->category->category_name); ?></h1>
<?php } ?>
was not found in the default.php of the template. The file is attached.