xLiMiTx Posted December 22, 2011 Posted December 22, 2011 Does anyone know how to remove the icons from the jquery buttons? Thanks in Advance...
♥kymation Posted December 23, 2011 Posted December 23, 2011 You would need to modify the jQuery code to remove the image call for the icons. Regards Jim See my profile for a list of my addons and ways to get support.
xLiMiTx Posted December 23, 2011 Author Posted December 23, 2011 Do you know what code I need to remove?
♥kymation Posted December 23, 2011 Posted December 23, 2011 Nope. I'm not that good at Javascript anyway, and the jQuery UI code is pretty complex. I suggest that you learn to like the icons. Or learn Javascript. Regards Jim See my profile for a list of my addons and ways to get support.
Guest Posted December 23, 2011 Posted December 23, 2011 <p align="right"><?php echo tep_draw_button(IMAGE_BUTTON_LOGIN, 'key', null, 'primary'); ?></p> <p align="right"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); ?></p> These two lines were taken from the login.php file. As you can see, the image for the login button 'key' is called on this line and the 'triangle-1-e' is called for the Continue button. I have never removed these icons before, but a fair guess would be to remove the 'key', and 'triangle-1-e', code from the lines.......give it a shot, I might be wrong but I might not be. ALWAYS MAKE A BACK UP Chris
♥kymation Posted December 23, 2011 Posted December 23, 2011 I've tried that. If you don't specify an icon, jQuery helpfully picks one for you. Regards Jim See my profile for a list of my addons and ways to get support.
xLiMiTx Posted December 23, 2011 Author Posted December 23, 2011 Yeah, I tried that and I got the same thing...
Guest Posted December 23, 2011 Posted December 23, 2011 I've tried that. If you don't specify an icon, jQuery helpfully picks one for you. Regards Jim lol......oh....ok,
foxp2 Posted December 23, 2011 Posted December 23, 2011 it works with : tep_draw_button(BUTTON_TEXT, null, null, null); :- edit : you can change the icon position with : tep_draw_button(BUTTON_TEXT, 'icon_name', null, 'primary', array('iconpos' => 'right')) tool to choose icons : http://jquery-ui.goo...tic/icons.html#
foxp2 Posted December 23, 2011 Posted December 23, 2011 but if you want remove all icons for all buttons, add in tep_draw_button function (catalog/includes/functions/html_output.php) : static $icon = null; after : static $button_counter = 1;
xLiMiTx Posted December 23, 2011 Author Posted December 23, 2011 but if you want remove all icons for all buttons, add in tep_draw_button function (catalog/includes/functions/html_output.php) : static $icon = null; after : static $button_counter = 1; that worked perfect fox, thanks for the HELP...
xLiMiTx Posted December 23, 2011 Author Posted December 23, 2011 i HATE to be a pain BUT, now what file would i need to go into to edit the text on the jquery buttons? like the add to cart, reviews, login etc...
Guest Posted December 23, 2011 Posted December 23, 2011 Greg, Most of the button definitions are in the english.php file Chris
Recommended Posts
Archived
This topic is now archived and is closed to further replies.