Replace 'search' text on button with spyglass glyph icon

Posted in: Newspaper
Post count: 13

I would like to change the “Search” text in my red search bar on my homepage to the spyglass glyph icon (‘\e80a’): http://www.romiyo.com

Has anyone tried to do this? I can’t find information on the forums.

I understand that I can output the spyglass icon by using the following code: <i class=”td-icon-search” style=”color:white;”></i> on my red background.

However, it looks like I have to put the above <i> element into the following in place of the ‘Search’ value, which is a string:

value=”<?php _etd(‘Search’, TD_THEME_NAME)?>”

Do you have suggestions on how I can do this? I’ve tried many ways without luck. Thank you.

Post count: 22421

Hello,

Sorry but there is no simple way of doing it. The theme calls for a string inside the name so nay other html code will not get interpreted as html but rather text. There is no simple way without altering the whole element function of adding and icon instead of the search text. Sorry.

Thanks.

Post count: 13

Ok, thanks Bogdan. It looked like it called for a string, and the more I looked at this, it seems beyond my knowledge to be able to transform html into a string. I’ll try some other kind of string!

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.