Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Dhayzon on March 06, 2015, 09:29:03 PM

Title: how to change close buttom in the popup
Post by: Dhayzon on March 06, 2015, 09:29:03 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FKjZzKHU.png&hash=e6a1ca66acb2225bc2e1e235a4eb861affa42571)


change icon close  icon and  use  one <i class="icon-cancel"></i> tag  by fontello

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FDc39ifx.png&hash=473fcd0e4c91b30dde60e97bfa6bee791c53a62b)

or can not be?
Title: Re: how to change close buttom in the popup
Post by: Antes on March 06, 2015, 10:44:38 PM
script.js, you need to change the class there "generic_icons hide_popup"

// Create the div that will be shown
$('body').append('<div id="' + this.popup_id + '" class="popup_container"><div class="' + popup_class + '"><div class="catbg popup_heading"><a href="javascript:void(0);" class="generic_icons hide_popup"></a>' + icon + this.opt.heading + '</div><div class="popup_content">' + this.opt.content + '</div></div></div>');
Title: Re: how to change close buttom in the popup
Post by: Dhayzon on March 06, 2015, 11:11:51 PM
 ;) thx

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FbsanyMs.png&hash=5b1d20e46ded2abe5b412a7e5085dfb9ab5505b1)

note : this method is not good for creating new themas
Title: Re: how to change close buttom in the popup
Post by: Kindred on March 06, 2015, 11:23:04 PM
Of course it is good for new themes...  It's all handled via css. You just need to use the same basic css as the standard... And add custom stuff for special displays.

Which also means that mods run nicely on all themes...

If it's just images, then adjust the css to point to a different image rather than changing the css tag itself