PDA

View Full Version : How to change an icon button to a text button



Wei Hong
August 7, 2014, 03:08 AM
Dear Flynax developers and users,

Does anyone wise enough to help me change these icon button:
1059

To Text button like this:
1060

I found that button with text is easier for many user, some times they can't find what they want to do.

THank you

Viktor
August 7, 2014, 03:22 AM
Hello Wei Hong,

You can find it in ftp://includes>>controllers>> account_type.inc.php, listing_details.inc.php and listing_type.inc.php and find in the files variable: $navIcons

Wei Hong
August 7, 2014, 06:11 AM
Hi Viktor,
Thanks for the tip. I followed your advice and found this code in ftp://includes>>controllers>> listing_type.inc.php for the icon button in the first screenshot


$navIcons[] = '<a class="post_ad" title="'. str_replace('{category}', $category['name'], $lang['add_listing_to']) .'" href="'.$add_listing_link.'"><span></span></a>';
$rlSmarty -> assign_by_ref('navIcons', $navIcons);
}

And this code for the button in style.css for the search button in the second screenshot


input[type=button],
input[type=submit],
a.button
{
border: 0;
border-radius: 1px;
font-weight: bold;
font-size: 12px;
height: 26px;
padding: 3px 15px 7px;
padding: 4px 15px 4px\9;
color: white;
cursor: pointer;
background: #545454;
}
input[type=button]:hover,
input[type=submit]:hover,
a.button:hover
{
background: #fdc835;
}


But I have no idea how to make the change. Sad face. :(

Viktor
August 7, 2014, 11:37 AM
Hehe yes first code you found is correct you should add phrase inside or instead <span>.

in css in file common.css find styles:

#content_nav_icons a.post_ad span
#content_nav_icons a.print span
#content_nav_icons a.rss span
#content_nav_icons a.save_search span

remove it or change styles inside.

Wei Hong
August 7, 2014, 10:33 PM
Hehe yes first code you found is correct you should add phrase inside or instead <span>.

in css in file common.css find styles:

#content_nav_icons a.post_ad span
#content_nav_icons a.print span
#content_nav_icons a.rss span
#content_nav_icons a.save_search span

remove it or change styles inside.

OMG I made it. Thanks Viktor,
He he

Wei Hong
September 23, 2014, 10:32 AM
Hi Viktor, Is there any way if I could add a language phrase instead? Because I just recently decided to add another language to the site.
I tried to put <span>{$lang.compare_comparison_table}</span> in ftp://includes>>controllers>> listing_type.inc.php
But it doesn't work

Wei Hong
September 23, 2014, 10:34 AM
Actually i just found it. He he
I used

'. str_replace('{category}', $category['name'], $lang['add_listing_to']) .'