admin管理员组

文章数量:1122846

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 3 months ago.

Improve this question

I have a website with an Astra child theme.

Astra is generating a search form in my header. The form is generated 4x by Astra, and as the method="get".

I don't use this form, and there is nothing in the header custom that ask it to be generated...

I am not able to figure out how to stop astra_get_search_form to generate on the header, in a PHP way.

I was able to remove from html, using jquery:

/* REMOVE form get */
    $(".ast-search-box.header-cover").remove();

But I would prefer to remove using php, directly at the source. Here is the function for the astra_get_search_form: /

Thanks in advance for your help.

-- Edit -- I found this article that give how to remove the whole header.

  • /
  • /

But still could not apply it for this search element...

本文标签: phpDisable astragetsearchform from generating in header