Title: Search Engine Bar
Last modified: February 22, 2024

---

# Search Engine Bar

 *  Resolved [Copiaurbietorbi](https://wordpress.org/support/users/copiaurbietorbi/)
 * (@copiaurbietorbi)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/search-engine-bar/)
 * Good day,
 * We are trying to add a search engine bar to one of the sections of our theme.
 * Everything looks well when we add the script, but once we save it is simply gone.
 * Can your plugin help us to keep the script?
 * Thank you for your help and interest!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * (@whiteshadow)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/search-engine-bar/#post-17445242)
 * Generally, this plugin only works for posts and pages, not theme widgets, sidebars,
   footers, etc. So it sounds like it probably wouldn’t work help in your case.
 * One thing I can suggest is to make sure that the user/role you’re using to make
   the change has the `unfiltered_html` capability. This capability is required 
   to add certain kinds of HTML to posts, and it could potentially also apply to
   some themes.
 *  Thread Starter [Copiaurbietorbi](https://wordpress.org/support/users/copiaurbietorbi/)
 * (@copiaurbietorbi)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/search-engine-bar/#post-17446733)
 * Thank you for getting back to us.
 * We do have admin privileges. The HTML code that we have added before has no change
   despite saving. This could be an indication the capability you mentioned is enabled.
 * But either way, it would be a good idea to check. Where can find this?
 * On another note, do you have any ideas as to what we could do to keep the script?
   We tried enclosing it by using <div>, <span>. We tried shortcodes and widgets
   and nothing has worked out…yet!
 * Thank you again for your help!
 *  Plugin Author [Janis Elsts](https://wordpress.org/support/users/whiteshadow/)
 * (@whiteshadow)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/search-engine-bar/#post-17446771)
 * Usually, any role editor plugin would work as a way to check if a role has the
   capability. There are many plugins like that. For example: [User Role Editor](https://wordpress.org/plugins/user-role-editor/).
 * There is a special case: in Multisite, only Super Admin users have this capability.
   Even if you manage to enable it for another role, it just won’t work.
 * > On another note, do you have any ideas as to what we could do to keep the script?
 * Outside of posts/pages, I don’t think there really is a general solution. A theme
   could easily have some intentional safeguards that remove script tags from certain
   locations no matter what you do. The solution would have to be specific to the
   theme.
 *  Thread Starter [Copiaurbietorbi](https://wordpress.org/support/users/copiaurbietorbi/)
 * (@copiaurbietorbi)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/search-engine-bar/#post-17446924)
 * Understood. We thank you for your help and interest.
 * Have a good day.
    -  This reply was modified 2 years, 4 months ago by [Copiaurbietorbi](https://wordpress.org/support/users/copiaurbietorbi/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Search Engine Bar’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/raw-html.svg)
 * [Raw HTML](https://wordpress.org/plugins/raw-html/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/raw-html/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/raw-html/)
 * [Active Topics](https://wordpress.org/support/plugin/raw-html/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/raw-html/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/raw-html/reviews/)

## Tags

 * [bar](https://wordpress.org/support/topic-tag/bar/)
 * [engine](https://wordpress.org/support/topic-tag/engine/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [script](https://wordpress.org/support/topic-tag/script/)
 * [section](https://wordpress.org/support/topic-tag/section/)

 * 4 replies
 * 2 participants
 * Last reply from: [Copiaurbietorbi](https://wordpress.org/support/users/copiaurbietorbi/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/search-engine-bar/#post-17446924)
 * Status: resolved