Skip Navigation

[Resolved] Poner un icono en lugar de texto en un boton de un filtro

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by Rafael Corts 3 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1902929

Hola Nigel, tengo un codigo en la sección de los paramentros de un filtro que me interesaria poner un icono en lugar de un texto en el boton de buscar.
el icono es de fontawesome por ejemplo:

<i class="far fa-eye"></i>

Que paramentro deberia canviar?

[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="form-group">
	[wpv-filter-search-box placeholder="Cerca una paraula" output="bootstrap"][wpv-filter-submit name="buscar" class="far fa-eye btn-secondary"]
</div>
[/wpv-filter-controls]
[wpv-filter-end]

Saludos.
Rafa Corts

#1904867

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2021-01-14 at 08.18.08.png

Hola Rafa

Puedes incluir el elemento del icono directamente en el atributo "name", así:

[wpv-filter-submit name="<i class='fa fa-eye'></i> Search" type="button" output="bootstrap" class="btn-secondary"]

Se supone que tiene los iconos disponible, pero el markup del icono será incluido en el front-end (pantallazo).

#1904919

My issue is resolved now. Thank you!