Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Amp page does not validate when you add the topic search engine to the menu

$
0
0

Replies: 0

I have the orbital theme and when I add the “search engine” of the theme to the menus tells me that the AMP page is not valid, this is because you try to load the search engine in all menus attached photos.

Is there any way to prevent the AMP search engine from loading by adding CSS to the WP for aMP plugin ? Thanks

Pic 1: https://ibb.co/92kq5mM
Pic 2: https://ibb.co/8dP2ryX

Failure of the page amp not validated 👇👇

<script>function orbital_expand_navbar() {

var element = document.getElementById(“search-navbar”);

if (element.classList.contains(‘expand-searchform’)) {
element.classList.remove(“expand-searchform”);
return;
}else {
element.classList.add(“expand-searchform”);
document.getElementById(“search-input”).focus();
}


Viewing all articles
Browse latest Browse all 59525

Trending Articles