News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

how to change close buttom in the popup

Started by Dhayzon, March 06, 2015, 09:29:03 PM

Previous topic - Next topic

Dhayzon




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



or can not be?

Antes

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>');

Dhayzon

 ;) thx



note : this method is not good for creating new themas

Kindred

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
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: