Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - LightMart (SKU# FLEX-00012)

TOPIC: Big problem for SEO with lightmart

Big problem for SEO with lightmart 6 years 11 months ago #15018

In lightmart all modules are configurated to see in h3 tag, but in joomla 3 you can to configure the tags for h1, or h2 for example. I need that the template put the tags h1,h2,h3 configurated in the modules in the frontend and not h3 fixed in the configuration of the template. It-s important for seo

For exaple in www.calzadosbeyca.com the module with title "MENORQUINAS ABARCAS MENORQUINAS HECHAS A MANO EN ESPAÑA" i configurated h1 on module but the template override to h3 and i need more important have h1 because this is the pral tag on the site and google wait h1 not h3.

It´s very important thing to Lightmart and users SEO

The code that you have now and you have to change is this i think and call to tag of the module

<h3 class="module-title"><span class="color">Menorquinas</span> Abarcas menorquinas hechas a mano en España</h3>

switch ($style) {

case 'box':
$template = 'default-1';
$style = 'mod-'.$style;
$style .= ($color) ? ' mod-box-'.$color : '';
$split_color = 1;
$subtitle = 1;
$title_template = '<h3 class="module-title">%s</h3>'; - wrong
break;

case 'dropdown':
$template = 'dropdown';
$subtitle = 1;
break;

case 'raw':
$template = 'raw';
break;

default:
$template = 'default-1';
$style = $suffix;
$suffix = '';
$title_template = '<h3 class="module-title">%s</h3>';
- wrong
}

Thanks
The topic has been locked.

Big problem for SEO with lightmart 6 years 11 months ago #15034

Hi,

Yes you are right. Overriding the "header tag" has introuduced with j3.x and LightMart is missing this feature.. But it is quite easy to implement it though..

Open this PHP file:
/templates/flexible_lightmart/layouts/module.php

find these lines:
// set module template using the style
switch ($style) {
 
	case 'box':
		$template		= 'default-1';
		$style			= 'mod-'.$style;
		$style			.= ($color) ? ' mod-box-'.$color : '';
		$split_color	= 1;
		$subtitle		= 1;
		$title_template = '<h3 class="module-title">%s</h3>';
		break;
 
	case 'dropdown':
		$template		= 'dropdown';
		$subtitle		= 1;
		break;
 
	case 'raw':
		$template		= 'raw';
		break;
 
	default:
		$template		= 'default-1';
		$style			= $suffix;
		$suffix         = '';
		$title_template = '<h3 class="module-title">%s</h3>';
}

and replace them all with these:
$HeaderTag = isset(json_decode($module->params)->header_tag) ? json_decode($module->params)->header_tag : 'h3';
// set module template using the style
switch ($style) {
 
	case 'box':
		$template		= 'default-1';
		$style			= 'mod-'.$style;
		$style			.= ($color) ? ' mod-box-'.$color : '';
		$split_color	= 1;
		$subtitle		= 1;
		$title_template = '<'. $HeaderTag .' class="module-title">%s</'. $HeaderTag .'>';
		break;
 
	case 'dropdown':
		$template		= 'dropdown';
		$subtitle		= 1;
		break;
 
	case 'raw':
		$template		= 'raw';
		break;
 
	default:
		$template		= 'default-1';
		$style			= $suffix;
		$suffix         = '';
		$title_template = '<'. $HeaderTag .' class="module-title">%s</ '.$HeaderTag.'>';
}

After you make this modification, the "Header Tag" of the modules will be what ever you select via Module >> Advanced tab.

Alternatively, download this attachment file below, UNZIP and replace it with the old module.php file.

Attachment module.php.zip not found




Regards.
Last Edit: 6 years 11 months ago by Support.
The topic has been locked.

Big problem for SEO with lightmart 6 years 11 months ago #15037

Good support...

Thanks a lot
The topic has been locked.

Big problem for SEO with lightmart 6 years 11 months ago #15041

sure your welcome.

case solved, topic is closed.

regards
The topic has been locked.
Time to create page: 0.132 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo