# BB admin bar has stopped appearing

**URL:** <https://community.wpbeaverbuilder.com/t/bb-admin-bar-has-stopped-appearing/11938>\
**Category:** Beaver Builder\
**Tags:** beaver-builder\
**Created:** [May 7, 2020, 10:43pm UTC](https://community.wpbeaverbuilder.com/t/bb-admin-bar-has-stopped-appearing/11938 "2020-05-07T22:43:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heruka](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/h/b3f665/32.png) [@Heruka](https://community.wpbeaverbuilder.com/u/Heruka)\
**Post date:** [May 7, 2020, 10:43pm UTC](https://community.wpbeaverbuilder.com/t/bb-admin-bar-has-stopped-appearing/11938/1 "2020-05-07T22:43:23Z")

</div>

Hi

I added some JavaScript and CSS in Tools \> Layout CSS & JavaScript and since then the BB admin bar has stopped appearing when I click on Beaver Builder from the WP admin bar on any page of the site: [https://www.meditateinlondon.org](https://www.meditateinlondon.org)

This is the page I added the code to [https://www.meditateinlondon.org/building-inner-strength-copy](https://www.meditateinlondon.org/building-inner-strength-copy)

This is the JavaScript I added to make a BB module toggle. The toggle button is at the bottom of the page:

```
  const targetDiv = document.querySelector('.target-div');
  function toggle() {
    targetDiv.classList.toggle('display-none');
  }

```

This is the CSS I added:

```
  .display-none {
     display: none;
  }

```

This was following the instructions from this tutorial: [Running a script in response to onclick()](https://community.wpbeaverbuilder.com/t/running-a-script-in-response-to-onclick/9753/10)

I don’t know if this is causing the problem but the BB admin bar disappeared after I added the code.

I would greatly appreciate any help with this.

Many thanks,  
Roland

---

<div class="post-metadata">

**Author:** ![Heruka](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/h/b3f665/32.png) [@Heruka](https://community.wpbeaverbuilder.com/u/Heruka)\
**Post date:** [May 8, 2020, 9:56am UTC](https://community.wpbeaverbuilder.com/t/bb-admin-bar-has-stopped-appearing/11938/2 "2020-05-08T09:56:48Z")

</div>

Hello,

Here is an update:

When you load the page this error appears in the console:

`Uncaught SyntaxError: missing ) after argument list`

and this is the JavaScript I added which is missing the ) at the very end (See attached)

```
const targetDiv = document.querySelector('.target-div');
const toggleBtn = document.querySelector('.toggle-button');
toggleBtn.addEventListener('click', (e) => {
  targetDiv.classList.toggle('display-none');
}

```

How can I edit or remove this JavaScript? I can’t access it from WordPress because the admin bar is always hidden.

Also, I have set up a testing environment to check for any plugin conflicts. The only two active plugins are BB and Woocommerce and the BB admin bar is still not showing.

[Admin Note: Removed login credentials]

Thanks,  
Roland

 ![Screen Shot 2020-05-08 at 12.25.26](https://community.wpbeaverbuilder.com/uploads/default/original/2X/5/598fcaabdb77106b871e7b173bb302d2b7b678f5.png)

---

<div class="post-metadata">

**Author:** ![Heruka](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/h/b3f665/32.png) [@Heruka](https://community.wpbeaverbuilder.com/u/Heruka)\
**Post date:** [May 8, 2020, 1:13pm UTC](https://community.wpbeaverbuilder.com/t/bb-admin-bar-has-stopped-appearing/11938/3 "2020-05-08T13:13:57Z")

</div>

Hi,

I have fixed the problem. For anyone who has a similar problem, this is how I did it:

The JavaScript code created in Beaver Builder is not saved as files. The JavaScript code is saved in database tables.

I was able to removed the JavaScript that was causing the error by doing the following:

In cPanel \> phpMyAdmin I went to the website’s database and searched for this pattern “const toggleBtn = document.querySelector”

There were a few results found in the tables wprf\_options and wprf\_postmeta

I was able to carefully remove the JavaScript code from:

- the option\_value field of wprf\_options table
- the meta\_value field of the wprf\_postmeta table

This fixed the problem. I hope this helps.

Thanks,  
Roland

---

<div class="post-metadata">

**Author:** ![pross](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/pross/32/883_2.png) [@pross](https://community.wpbeaverbuilder.com/u/pross)\
**Post date:** [May 8, 2020, 5:24pm UTC](https://community.wpbeaverbuilder.com/t/bb-admin-bar-has-stopped-appearing/11938/4 "2020-05-08T17:24:49Z")

</div>

We have a support tool we use to remove accidentally added JS … 2.4 will have a built in tool too 🙂

---

<div class="post-metadata">

**Author:** ![Heruka](https://community.wpbeaverbuilder.com/letter_avatar_proxy/v4/letter/h/b3f665/32.png) [@Heruka](https://community.wpbeaverbuilder.com/u/Heruka)\
**Post date:** [May 8, 2020, 7:06pm UTC](https://community.wpbeaverbuilder.com/t/bb-admin-bar-has-stopped-appearing/11938/5 "2020-05-08T19:06:39Z")

</div>

Hello,

Thanks for your message - that sounds good and would really help. `

How can I access and use the tool?

I am using Beaver Builder (Standard Version) version 2.3.2.5

Roland

---

<div class="post-metadata">

**Author:** ![pross](https://community.wpbeaverbuilder.com/user_avatar/community.wpbeaverbuilder.com/pross/32/883_2.png) [@pross](https://community.wpbeaverbuilder.com/u/pross)\
**Post date:** [May 8, 2020, 7:13pm UTC](https://community.wpbeaverbuilder.com/t/bb-admin-bar-has-stopped-appearing/11938/6 "2020-05-08T19:13:20Z")

</div>

You can upgrade to the alpha if you want to give it a try

> [@Beaver Builder 2.4 Alpha](https://community.wpbeaverbuilder.com/t/beaver-builder-2-4-alpha/11540):
>
> The 2.4 Alpha is now available. We have some exciting things in this release that we hope you will enjoy. Remember, this is Alpha. Please do not use this on a Production environment as there are bugs and features could be changed or even removed based on testing and feedback. Note: We are in the process of switching documentation systems so I’m afraid there are no docs yet. We are hopeful they will be ready for Alpha 2. 2.4 Alpha 1 - March 26, 2020 Enhancements NEW: List Module NEW: Sear…
