VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: mabf on December 20, 2019, 23:32:55 PM

Title: Need to change the style of this text on the custom field product
Post by: mabf on December 20, 2019, 23:32:55 PM
hello everybody, im kinda new with this, but can anyone help me with this, im tryng to change the style in this text i mean like change the font color, or bold the font etc but i dont know how thank you

www.sugar-monkey.com
VirtueMart 3.6.10

(http://sugar-monkey.com/h1.png)

(http://sugar-monkey.com/h2.png)
Title: Re: Need to change the style of this text on the custom field product
Post by: Jörgen on December 20, 2019, 23:59:27 PM
In Your case I would define a language key:

MY_KEY_COLORS = "<b>Colores</b>"

This can be translated into all languages. If the styling still does not work for You, You have to check Your template, because a standard template accepts styling, with or without using a language key.

Jörgen @ Kreativ Fotografi
Title: Re: Need to change the style of this text on the custom field product
Post by: mabf on December 21, 2019, 00:00:49 AM
first of all thank you for the reply but how exactly can i do this?
Title: Re: Need to change the style of this text on the custom field product
Post by: Jörgen on December 21, 2019, 00:06:51 AM
Using language keys is a Joomla issue, google Joomla language keys.

Testing Your template, simply test with Protostar. If It works with Protostar talk with your template supplier. Styling works out of the box, using language keys is a bonus.

Jörgen
Title: Re: Need to change the style of this text on the custom field product
Post by: mabf on December 21, 2019, 00:15:21 AM
well i think i need to read about this but i have no idea what are you talking about, i thought u were talking about languages overrides, but still i have no idea how to do this =(
Title: Re: Need to change the style of this text on the custom field product
Post by: GJC Web Design on December 21, 2019, 09:32:21 AM
It is language over rides

you put MY_KEY_COLORS in the title text field

and  MY_KEY_COLORS = "<b>Colores</b>" manually in the lang over rides

or config the above in the joomla language over rides admin.

But you can also simply target the custom field title by css

something like

.product-fields-title {
   font-weight: bold;
}
Title: Re: Need to change the style of this text on the custom field product
Post by: Jörgen on December 21, 2019, 09:38:51 AM
As I Said before BOLD works out of The box, IF not then template issue.
Using language overrides is a bonus, but it Will not works of your template does not support this. You Will talk to your template designer.
Adding THE CSS GJC suggested fixes all custom field labels.

Jörgen @ Kreativ Fotografi