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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:36:56+00:00 2026-05-26T16:36:56+00:00

I am a complete newbie when it comes to JS. I actually paid someone

  • 0

I am a complete newbie when it comes to JS. I actually paid someone to write some JS for me but I need to tweak some stuff and I don’t feel like hiring another person for just a few tweaks so I come to you for help.

The first issue is a wordpress plugin called Heads Up Bar. So fist thing I do is launch up the developer tools within Chrome and locate where its called on. I come across this:

jQuery(document).ready(function($) {
var data = {
    action: 'ehu_show_bar',
    home: ehu_is_home_pg
};
jQuery.post(ajaxurl, data, function(response) {
    jQuery('body').prepend(response);
    if(ehu_animate === 'toggle'){
      jQuery('#ehu_bar').css('display', 'none');
      jQuery('#ehu_bar').slideToggle('fast');
    }

});

then I went and looked at the JS he created which looks a little like this:

jQuery(document).ready(function() {
            jQuery('#header').hide();
            jQuery('#sidebar').hide();
            jQuery('.main_navi').hide();
            jQuery('.category_navi_outer').hide();
            jQuery('.home_banner').hide();
            jQuery('.breadcrumb').hide();

So I create a new line called

jQuery('#ehu_bar').hide();

thinking it would be so easy. Obviously it didn’t work. What am I missing? This plugin appears on every page of the site but sometimes its limited to only the homepage. What do I have to do now?

The next thing I need to hide is a JS from google ads. This appears in almost every post within wordpress but not in the homepage. I know the name of the JS, meaning I know what the file is called:

show_ads.js

and it is located in the product_detail.php file. What will it take to hide this google ad using JS?

Like I said, I am a bit new to this but I learn quickly. I would appreciate any help. Thanks!

  • 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-26T16:36:57+00:00Added an answer on May 26, 2026 at 4:36 pm

    The third parameter to the jQuery.post(ajaxurl, data, ... is a method that is called when the AJAX request is finished. It will take a few milliseconds from when the page loads to do the AJAX request, so the order of what will actually happen is:

    jQuery('#ehu_bar').hide(); // from jQuery(document).ready(..
    

    Then a few milliseconds later:

    jQuery('#ehu_bar').slideToggle('fast'); // from ajax callback
    // This line effectively is like calling jQuery('#ehu_bar').show() but with an animation
    

    Comment out the slideToggle line and you should be OK.

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

Sidebar

Related Questions

I'm a complete newbie when it comes to servers, so I need some help.
First of all, I'm a complete newbie when it comes to VBA, but unfortunately
(I still feel like a complete newbie in MS Visual environments... so please bear
I'm a complete newbie in ruby but I can feel that this code can
I'm a complete newbie when it comes to HTML, I've never needed to do
I'm a complete newbie when it comes to OCaml. I've only recently started using
Forgive the complete newbie question here - I know this is really basic stuff,
I am a complete newbie to iOS development but not to programming. I am
I am complete newbie in mod_rewrite , and I have been going through some
I'm a complete newbie as far as jQuery is concerned. I also don't know

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.