Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8805851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:58:15+00:00 2026-06-14T01:58:15+00:00

Wondering if anyone knows a way to combat this shortcoming. I use jQuery UI

  • 0

Wondering if anyone knows a way to combat this shortcoming.

I use jQuery UI buttons for all of my button actions and the stock icons are a tad boring and I much prefer using an icon set from the twitter bootstrap.

before I go any further here is how I’m styling the buttons:

$('#juiBtnLocked').button({
    disabled: true,
    icons: {
        primary: "ui-icon-locked"
    }
});

it seems that the icons property only accepts jquery ui css styles, which I don’t know why that should matter as the value provided is the full css name from the css file so logically it should technically accept ANY css rule given.

my question is, has anyone successfully got another css sprite code to work with the buttons?

to answer the question on why I don’t just use the twitter buttons, its because that’s breaking the jquery ui buttons and I use too much of the jquery ui toolkit to ditch it. If twitters dialog was more robust, I’d skim the jquery ui a bit, but its too limited for my needs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:58:16+00:00Added an answer on June 14, 2026 at 1:58 am

    You could simply override the styling for that class using CSS.

    .ui-icon-locked {
        background: url(myimage.png) no-repeat 0 0;
    }
    

    ui-icon-locked is not a CSS rule. It is just a hook for a HTML class. The default rules for the styles (including the icons) are stored in jquery-ui.css in the directory of the theme you are using.

    For example, in the jquery-ui.css of the base theme of 1.9.1 you can find these:

    .ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/; }
    ...
    .ui-icon-locked { background-position: -192px -96px; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if anyone knows of a way to use the JQuery find
I was wondering if anyone knows an easy way to do this. I have
Just wondering if anyone knows of a way that wiring up jquery to run
I was wondering if anyone knows a way of printing out all the function
I created a jQuery plugin and was wondering if anyone knows of a way
I was wondering if anyone knows a way to prevent building unneeded device drivers
Just wondering if anyone knows of a way to implement a Typed Nullable Type
I'm wondering if anyone knows of a way to export geometry/textures for a rigged,
I'm wondering if anyone knows a way that you can prevent browser zooming of
Just wondering if anyone knows a neater way of doing the following without creating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.