- Posts: 6
- Thank you received: 0
How to change hikashop_product_name_main from h2..
13 years 6 months ago #101046
by artofsin
How to change hikashop_product_name_main from h2.. was created by artofsin
Hey
How can i change text class from h2 to h1 in single product page (hikashop_product_name_main)??
How can i change text class from h2 to h1 in single product page (hikashop_product_name_main)??
Please Log in or Create an account to join the conversation.
13 years 6 months ago #101053
by nicolas
Replied by nicolas on topic How to change hikashop_product_name_main from h2..
Hi,
There is no h2 on the product page. The product name is already in an h1 tag by default in HikaShop.
There is no h2 on the product page. The product name is already in an h1 tag by default in HikaShop.
Please Log in or Create an account to join the conversation.
13 years 6 months ago #101088
by artofsin
Replied by artofsin on topic How to change hikashop_product_name_main from h2..
hmm - maybe i have old version of hikashope, but i have h2 in tittle
img163.imageshack.us/img163/8831/56575083.gif
img163.imageshack.us/img163/8831/56575083.gif
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 6 months ago #101129
by Mohamed Thelji
Replied by Mohamed Thelji on topic How to change hikashop_product_name_main from h2..
Maybe, so you should update your hikashop version, but I think that you probably edited the "show_default" file of your "product" view of your front-end template, so you'll juste have to change these lines :
and change your h1 or h2 tag
.
Code:
<div id="hikashop_product_top_part" class="hikashop_product_top_part">
<?php if(!empty($this->element->extraData->topBegin)) { echo implode("\r\n",$this->element->extraData->topBegin); } ?>
<h1>
<span id="hikashop_product_name_main" class="hikashop_product_name_main">
<?php
if (hikashop_getCID('product_id')!=$this->element->product_id && isset ($this->element->main->product_name))
echo $this->element->main->product_name;
else
echo $this->element->product_name;
?>
</span>
<?php if ($this->config->get('show_code')) { ?>
<span id="hikashop_product_code_main" class="hikashop_product_code_main">
<?php
echo $this->element->product_code;
?>
</span>
<?php } ?>
</h1>
The following user(s) said Thank You: artofsin
Please Log in or Create an account to join the conversation.
13 years 6 months ago #101625
by artofsin
Replied by artofsin on topic How to change hikashop_product_name_main from h2..
That was great idea Thalji - thx. Now my store will be better opti for seo;)
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds