Skip to main content

How to change hikashop_product_name_main from h2..

13 years 6 months ago #101046 by artofsin
Hey

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
Hi,

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
hmm - maybe i have old version of hikashope, but i have h2 in tittle

img163.imageshack.us/img163/8831/56575083.gif

Please Log in or Create an account to join the conversation.

13 years 6 months ago #101129 by Mohamed Thelji
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 :
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>
and change your h1 or h2 tag :).
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
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
Powered by Kunena Forum