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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:02:09+00:00 2026-06-18T23:02:09+00:00

I have a WordPress plugin that uses a jQuery function to hide/show certain parts

  • 0

I have a WordPress plugin that uses a jQuery function to hide/show certain parts of the plugin.

if ($('#display_linkedin_icon').val() == 'true') {
    $('#linkedin').show();
}

My issue is that in the WordPress Dashboard another plugin adds an element with the ID of #linkedin so when I activate the hiding of the div in my plugin it hides the other div in the WordPress Dashboard.

At this stage it is not an easy task to simply change the name of my ID’s.

I was wondering is there any way I can wrap the above jQuery function so that it will only activate on my plugin page.

I have the #linkedin div wrapped in an outer div called “asw-sortable“.
Was hoping something like this wold work.

if ($('#display_linkedin_icon').val() == 'true') {
    $('#asw-sortable #linkedin').show();
}

Any help would be greatly appreciated.

  • 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-18T23:02:11+00:00Added an answer on June 18, 2026 at 11:02 pm

    That last thing you did should have worked. Did it work?

    if ($('#display_linkedin_icon').val() == 'true') {
        $('#asw-sortable #linkedin').show();
    }
    

    If not you should try to make your selector even more specific.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a wordpress plugin that uses jquery. This plugin have some javascript
I have a Wordpress site that uses a JQuery plugin called Hover-Caption ( https://github.com/coryschires/hover-caption
Wordpress / PHP related question. I have a Wordpress plugin that uses dirname(__File__) to
I have a custom developed WordPress plugin that is using jQuery 1.4 and for
I have developed a wordpress plugin that uses shortcodes. The problem is that it
I have a interface that uses the click attribute of a checkbox to show/hide
I have a website that runs on wordpress... It uses the Facebook Wordpress plugin
I have created a simple WordPress plugin that automatically sets my new sites up
I have some HTML that is being produced by a WordPress plugin that is
I have a WordPress plugin that loads pages with AJAX and to ensure compatibility

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.