Page 1 of 1

Change the Button Colors from grey/grey to xx

Posted: 10 Mar 2010, 09:11
by wenings
Hi,
i've got the problem that the displayd buttons are grey text on darkgrey background.
I can't find the file and position of the code to change the color. I think it's written in the css of my template right?

Thanks for your help.

Re: Change the Button Colors from grey/grey to xx

Posted: 10 Mar 2010, 22:46
by Jan
Hi, which buttons you mean?

Re: Change the Button Colors from grey/grey to xx

Posted: 12 Mar 2010, 12:39
by wenings
i mean the "Save" and "Reload" Button in the User Frontend to add a new Guestbook entry.

Re: Change the Button Colors from grey/grey to xx

Posted: 15 Mar 2010, 23:21
by Jan
Hi,
the save button should be styled by your template, if there is no style you should add it.

The reload button is an image, you need to change the image in phocaguestbook image folder:
components\com_phocaguestbook\assets\images\

Re: Change the Button Colors from grey/grey to xx

Posted: 17 Mar 2010, 10:57
by wenings
Jan wrote:Hi,
the save button should be styled by your template, if there is no style you should add it.

The reload button is an image, you need to change the image in phocaguestbook image folder:
components\com_phocaguestbook\assets\images\
Where can i change the Code of the Guestbook to use an other Style/Type if i dont want to change the template?

If i look in the source-code i see the buttons are not defined with class="button"

Code: Select all

<input name="save" value="Absenden" type="submit"> &nbsp;<input name="reset" value="Zurücksetzen" type="reset">
The other buttons are defined like this

Code: Select all

<input name="Submit" class="button" value="Anmeldung" type="submit">
Where can i change this? I don't have much experience with CSS and so i don't know if its needful to use <div> or something for that.

Re: Change the Button Colors from grey/grey to xx

Posted: 23 Mar 2010, 09:35
by wenings
anybody who can help me?

Re: Change the Button Colors from grey/grey to xx

Posted: 24 Mar 2010, 14:30
by wenings
Ahhhhh...i'f found it

File: /components/com_phocaguestbook/views/phocaguestbook/tmpl/default.php

there i found

Code: Select all

.'<td colspan="3">'
	.'<input type="submit" name="save" value="'. JText::_('Submit').'" />'
	.' &nbsp;'
	.'<input type="reset" name="reset" value="'. JText::_('Reset').'" /></td>'
	.'</tr>'
and change to

Code: Select all

.'<td colspan="3">'
	.'<input type="submit" class="button" name="save" value="'. JText::_('Submit').'" />'
	.' &nbsp;'
	.'<input type="reset" class="button" name="reset" value="'. JText::_('Reset').'" /></td>'
	.'</tr>'

Re: Change the Button Colors from grey/grey to xx

Posted: 31 Mar 2010, 19:37
by Jan
Great to hear it, Jan