- Posts: 46
- Thank you received: 0
Changing layout on product and making font bigger
15 years 7 months ago - 15 years 7 months ago #6775
by meqrinda
Changing layout on product and making font bigger was created by meqrinda
Last edit: 15 years 7 months ago by meqrinda.
Please Log in or Create an account to join the conversation.
15 years 7 months ago #6792
by nicolas
Replied by nicolas on topic Re: Changing layout on product and making font bigger
You need to go in the menu Display->Views and edit the file listing_img_title of the view product. There you can move the code:
<span class="hikashop_product_name">
<?php if($this->params->get('link_to_product_page',1)){ ?>
<a href="<?php echo $link;?>">
<?php }
echo $this->row->product_name;
if($this->params->get('link_to_product_page',1)){ ?>
</a>
<?php } ?>
</span>
at the top of the file.
If you want to change the font size of the product name, you can go in the config under the tab display and edit your CSS and add something like this:
.hikashop_product_name{ font-size: 2em; }
<span class="hikashop_product_name">
<?php if($this->params->get('link_to_product_page',1)){ ?>
<a href="<?php echo $link;?>">
<?php }
echo $this->row->product_name;
if($this->params->get('link_to_product_page',1)){ ?>
</a>
<?php } ?>
</span>
at the top of the file.
If you want to change the font size of the product name, you can go in the config under the tab display and edit your CSS and add something like this:
.hikashop_product_name{ font-size: 2em; }
Please Log in or Create an account to join the conversation.
15 years 7 months ago #6804
by meqrinda
Replied by meqrinda on topic Re: Changing layout on product and making font bigger
I tried with moving the code to the top, it didn´t move.
The font worked and is now bigger.
The font worked and is now bigger.
Please Log in or Create an account to join the conversation.
15 years 7 months ago #6805
by nicolas
Replied by nicolas on topic Re: Changing layout on product and making font bigger
Are you sure that you edited the correct file ?
Please Log in or Create an account to join the conversation.
15 years 7 months ago #6806
by meqrinda
Replied by meqrinda on topic Re: Changing layout on product and making font bigger
Found my mistake, thanks for the help!
Please Log in or Create an account to join the conversation.
15 years 7 months ago #6810
by meqrinda
Replied by meqrinda on topic Re: Changing layout on product and making font bigger
www.infossa.com/lifestyle.html
Where do I change the margin properly, i tried changing the same section as the big fontsize was.
With a:
margin:10px;
But that didnt change anything.
Where do I change the margin properly, i tried changing the same section as the big fontsize was.
With a:
margin:10px;
But that didnt change anything.
Please Log in or Create an account to join the conversation.
15 years 7 months ago #6812
by nicolas
Replied by nicolas on topic Re: Changing layout on product and making font bigger
You can use:
line-height: 1em;
line-height: 1em;
Please Log in or Create an account to join the conversation.
15 years 7 months ago #6813
by meqrinda
Replied by meqrinda on topic Re: Changing layout on product and making font bigger
span.hikashop_product_name{ font-size: 2em; }{
display:block;
margin-bottom:5px;
line-height: 1em;
}
Like this?
display:block;
margin-bottom:5px;
line-height: 1em;
}
Like this?
Please Log in or Create an account to join the conversation.
15 years 7 months ago #6814
by nicolas
Replied by nicolas on topic Re: Changing layout on product and making font bigger
No, you can't have two groups of brackets in CSS. It should be:
span.hikashop_product_name{ font-size: 2em;
line-height: 1em;
}
span.hikashop_product_name{ font-size: 2em;
line-height: 1em;
}
Please Log in or Create an account to join the conversation.
15 years 7 months ago #6815
by meqrinda
Replied by meqrinda on topic Re: Changing layout on product and making font bigger
Thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 0.218 seconds