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 6207285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:36:14+00:00 2026-05-24T05:36:14+00:00

Haven’t found a solution for changing a custom navbar icon on a page with

  • 0

Haven’t found a solution for changing a custom navbar icon on a page with multiple footers.

That is what I am currently using:

    $(".live_menu .ui-icon").css("background","url(/btn_on.gif) !important");
    $(".live_menu .ui-icon").css("background-repeat","no-repeat !important");   

Any ideas?

  • 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-05-24T05:36:14+00:00Added an answer on May 24, 2026 at 5:36 am

    Related:

    • Specifying the styles for the selected tab in a navbar
    • A bottom navbar in jQuery mobile looking like iPhone navbar, possible?
    • http://jquerymobile.com/test/docs/buttons/buttons-icons.html

    Live Example:

    • http://jsfiddle.net/phillpafford/8pwFK/29/

    Custom Icons

    To use custom icons, specify a data-icon value that has a
    unique name like myapp-email and the button plugin will generate a
    class by prefixing ui-icon- to the data-icon value and apply it to the
    button. You can then write a CSS rule that targets the
    ui-icon-myapp-email class to specify the icon background source. To
    maintain visual consistency, create a white icon 18×18 pixels saved as
    a PNG-8 with alpha transparency.

    JS:

    $('#custom-li-1').click(function() {
        $(this).attr('data-icon','star');
        $(this).children().children().next().removeClass('ui-icon-custom').addClass('ui-icon-star');
    }).page();
    
    $('#custom-li-2').click(function() {
        $(this).attr('data-icon','home');
        $(this).children().children().next().removeClass('ui-icon-grid').addClass('ui-icon-home');
    }).page();
    
    $('#custom-li-3').click(function() {
        $(this).attr('data-icon','grid');
        $(this).children().children().next().removeClass('ui-icon-star').addClass('ui-icon-grid');
    }).page();
    

    HTML:

    <div data-role="page" id="home">
        <div data-role="header" data-theme="b">
            <h1>Test</h1>
        </div>
        <div data-role="content" data-theme="d">
            <div data-role="navbar" data-theme="d">
                <ul id="custom-nav-list">
                    <li><a href="#" data-icon="custom" class="ui-btn-active" id="custom-li-1">Home</a></li>
                    <li><a href="#" data-icon="grid" id="custom-li-2">Second page</a></li>
                    <li><a href="#" data-icon="star" id="custom-li-3">Third page</a></li>
                </ul>
            </div>
        </div>
           
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I haven't found a way to detect if user is currently viewing a page,
I haven't actually dealt with multiple grids on one page in a very long
I haven't found any documentation on this or seen this done before, but is
Haven't seen anything, but I have seen that you can create albums in the
Haven't found what i'm looking for so far. I want to redirect all my
I haven't been able to find documentation that talk about how create.js.erb and destroy.js.erb
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Haven't found this in my search on Stackoverflow - I know I've seen a
Haven't come across this in ages and when I searched for the solution I
Actually haven't found the answer for this one. What for and why do i

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.