News:

Looking for documentation? Take a look on our wiki

Main Menu

VirtueMart CSS Style for askquestion

Started by krystkon, December 10, 2012, 23:12:07 PM

Previous topic - Next topic

krystkon

Hi,

How can I change the font color from black to white for the code in askquestion:

File:
/public_html/components/com_virtuemart/views/askquestion/tmpl/form.php

<label><?php echo JText::_('COM_VIRTUEMART_USER_FORM_NAME')  ?> : <input type="text" class="validate[required,minSize[4],maxSize[64]]" value="<?php echo $this->user->name ?>" name="name" id="name" size="30"  validation="required name"/></label>
<br />
<label><?php echo JText::_('COM_VIRTUEMART_USER_FORM_EMAIL')  ?> : <input type="text" class="validate[required,custom[email]]" value="<?php echo $this->user->email ?>" name="email" id="email" size="30"  validation="required email"/></label>
<br/>
<label>
<?php
$ask_comment JText::sprintf('COM_VIRTUEMART_ASK_COMMENT'$min$max);
echo $ask_comment;
?>

<br />
<textarea title="<?php echo $ask_comment ?>" class="validate[required,minSize[<?php echo $min ?>],maxSize[<?php echo $max ?>]] field" id="comment" name="comment" rows="10"></textarea>
</label>


http://gaiainfo.de/index.php/shop/stolen-capes-jacken/jacke-tuellspitze-mit-pailletten-e98-752012-12-10-15-37-20-77-detail/askquestion?tmpl=component

Thanks for help, krystkon

PRO

why dont you add a class to the form

class="black"


then do it with css?

bytelord

Hello,

Not sure what are you saying, meaning the title? If yes as PRO said use some CSS:

.ask-a-question-view h1 {
color: white!important;
}


we use !important in case that the color is been changed by your template ...
create a css override.

Use firebug to examine you site code and css styling: https://forum.virtuemart.net/index.php?topic=102850.0

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

krystkon

I realy try.

In File:
/public_html/components/com_virtuemart/views/askquestion/tmpl/form.php

<label class="white"><?php echo JText::_('COM_VIRTUEMART_USER_FORM_NAME')  ?> : <input type="text" class="validate[required,minSize[4],maxSize[64]]" value="<?php echo $this->user->name ?>" name="name" id="name" size="30"  validation="required name"/></label>

In css
public_html/components/com_virtuemart/assets/css

.white {color: #fff!important;}

Source html
<label class="white">Name : <input class="validate[required,minSize[4],maxSize[64]]" value="Krystian" name="name" id="name" size="30" validation="required name" type="text"></label>

and nothing. Take a look at:
http://gaiainfo.de/index.php/shop/stolen-capes-jacken/jacke-tuellspitze-mit-pailletten-e98-752012-12-10-15-37-20-77-detail/askquestion?tmpl=component

phrases
Name :
Name :
Bitte schreiben Sie Ihre Frage ... (min. 50, max. 2000 Zeichen)
are black

Can I put class in <label> - like this <label class="white">?

bytelord

Not sure if i am following you ... please create a css override for your vm2 css or use another css file inside your template ...
Provide a live url ... just use this:

.ask-a-question-view h1 {
color: white!important;
}

place thst inside your template css or on vm override css under your template CSS folder ... not on the original css files of vm...

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!