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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:54:15+00:00 2026-06-03T07:54:15+00:00

In the theme selection page, links are shown below the active theme which shows

  • 0

In the theme selection page, links are shown below the active theme which shows its capabilities. Most of the time these are Widgets, Menus, and a Theme Options link if you run add_theme_page().

Since I created my own top-level menu and didn’t use add_theme_page(), my path redirects to admin.php?page=chosen-slug instead of themes.php?page=chosen-slug and there is no Theme Options link in the Appearance section. Is there a way I can still display that link to show that my theme has options?

  • 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-03T07:54:17+00:00Added an answer on June 3, 2026 at 7:54 am

    I guess a jQuery solution will have to do for now. It’s not my first choice but at least it works.

    PHP:

    // Create the theme options link
    add_action("admin_menu", "setup_theme_admin_menus"); 
    function setup_theme_admin_menus(){
        add_theme_page('', 'Theme Options', 'manage_options', 'sample-slug', '');
    }
    

    jQuery:

    // Redirect link in Appearance to your top-level menu
    $('#current-theme div.theme-options a[href="themes.php?page=sample-slug"]').attr('href', 'admin.php?page=sample-slug');
    
    /*
     * Hide the link created by add_theme_page(). Use each() since our <li> has no
     * name and this makes sure the script always works even if its position changes.
     */
    $('#menu-appearance a[href="themes.php?page=sample-slug"]').each(function(){
        $(this).parent().hide();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a show page which is dynamically loading content based on tab-selection using
See section /* Common Classes */ of this page. http://webdesign.about.com/od/css/a/master_stylesht_2.htm are these css classes
I have made a report that shows transactions in a certain time period for
I have some link elements which are dynamically added and hidden from the page.
I have a 2-frame HTML page: FrameA contains a list of links to various
I wonder whether someone can help me please. I've put together this page, which
I'm building an asp.net page that is designed to display links for a user
I am having a real hard time developing for Internet Explorer. Below is a
I have a page which dynamically loads a section of content via AJAX. I'm
Does the star selector in CSS affect page rendering performance? Are there any caveats

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.