Skip to content
WJunction - Webmaster Forum

Modifying "Select a category" look?

Status
Not open for further replies.

Domaineer

Established Member
267
2013
63
Hello everyone. I wanted to know if there's anything I need to do to get this

TcfnwKp.png


from

EtvkFAW.png


Thanks a lot :)
 

7 comments

How to make a "select a category" option in DLE
please help me
current setting category
gxnrWu.png

in change catagory
85aDmR.png

how change please help
 
sfalab

If you are using DLE 9.5 to 10.1 then make sure you add this code on top of templates/YOUR-THEME/addnews.tpl
Code:
<link rel="stylesheet" type="text/css" href="engine/skins/chosen/chosen.css"/>
<script type="text/javascript" src="engine/skins/chosen/chosen.js"></script>
<script type="text/javascript">
$(function(){
    $('#category').chosen({allow_single_deselect:true, no_results_text: 'No Category Selected'});
});
</script>
If you are using DLE 10.2, then download this file _http://www.mediafire.com/download/3zo4nucgc0nngg4/chosen.rar

Extract it and place the folder "chosen" from extracted file in "js" folder (templates/YOUR-THEME/js/) or any folder within your theme folder and open addnews.tpl and add the code below to the top of addnews.tpl
Code:
<link rel="stylesheet" type="text/css" href="{THEME}/js/chosen/chosen.css"/>
<script type="text/javascript" src="{THEME}/js/chosen/chosen.js"></script>
<script type="text/javascript">
$(function(){
    $('#category').chosen({allow_single_deselect:true, no_results_text: 'No category found'});
});
</script>
if you placed in different folder then make sure you change the path the files {THEME}/js/
 
Status
Not open for further replies.

About the author

D
Established Member · Joined
267
Messages
63
Reactions
28
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom