Custom Styling for Individual Fields (Exp_Month)

More
12 years 9 months ago #22314 by Avi
Hi,

I've customizes the styling for .inputbox and it also effect the expiration date. I would like to do a custom class for the expiration date but I've only found it in the code as <?php echo $this->lists .' / '.$this->lists ; ?> and I can't figure out where that is being called from.

Can you please let me know how this form is mapped out so I can apply custom styling to individual fields? Thanks!

All the best!

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

More
12 years 9 months ago #22356 by Avi
Hi,

Just bumping this up. I appreciate your support and am a big fan. This issue is critical for a site launch and just wanted to draw your attention to it again. Thanks!

All the best,
Avi :whistle:

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

More
12 years 9 months ago #22426 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Custom Styling for Individual Fields (Exp_Month)
Hi Avi

Could you please send me the link to the page so that I can guide you ?

Tuan

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

More
12 years 9 months ago #22427 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Custom Styling for Individual Fields (Exp_Month)
Hi

Here are some information :

1. Please open the file components/com_jdonation/views/donation/view.html.php

2. Find the code below :

$lists = JHTML::_('select.integerlist', 1, 12, 1, 'exp_month', ' class="inputbox" ', $expMonth, '%02d') ;

As you see, it is using class inputbox. You can change inputbox to the class name you want.

2. Do the same for the code below :

$lists = JHTML::_('select.genericlist', $options, 'exp_year', ' class="inputbox" ', 'value', 'text', $expYear) ;

After that, you will be able to add custom styling for exp month and exp year dropdown .

Tuan
The following user(s) said Thank You: Avi

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

More
12 years 9 months ago #22451 by Avi
Awesome, thank you!!

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

More
12 years 9 months ago #22455 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Custom Styling for Individual Fields (Exp_Month)
Great. Thanks for confirming !

Tuan

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

Moderators: Dang Thuc DamDang Dam