Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#51197 closed defect (bug) (invalid)

CSE Google custom search element

Reported by: moorest's profile moorest Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.5
Component: General Keywords:
Focuses: javascript Cc:

Description

I was using CSE google custom search code with the WordPress:

<script async src="https://cse.google.com/cse.js?cx=34ef01bccb52c1c24"></script>
<div class="gcse-searchbox-only"></div>

After last update element is only visible on the first page load, after refreshing it's invisible.
I created a new website implemented element on
https://moorest.com/tescik/index.php/sample-page/
no plugins, default theme etc. The same results, element invisible,
will be visible once after clearing browsing data
all common browsers checked.
PHP versions checked: 7.2 7.3 7.4

Few other CMS checked, no issues there.
Could you look into this, please?

Change History (4)

#1 @desrosj
4 years ago

  • Focuses accessibility multisite removed
  • Keywords needs-testing needs-refresh 2nd-opinion removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 5.5 deleted

Hi @moorest,

Welcome to Trac!

I'm sorry that you're experiencing some trouble getting search set up on your site. Unfortunately, this is not the correct location to receive support. This Trac instance is for the development of the WordPress core software.

For support, please head on over to the WordPress.org support forums.

#2 @moorest
4 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

I'm not looking for support. HTML block is not working as designed and I'm reporting a bug.
It's a WP core problem so I think I'm in the right place.
I was using this block with this same script for 2 years without any issues. Since WP update to 5.5 search box in not visible anymore.
This site:
https://moorest.com/tescik/index.php/sample-page/
is a fresh installation, just WP, HTML block with google script and nothing else.
Script implemented on other CMS working fine so it must be WP core bug, right?
I've also an old website where this script was implemented for the last 2 years. Unfortunately, it's invisible since WP update to 5.5

#3 @moorest
4 years ago

  • Keywords needs-patch 2nd-opinion added
  • Version set to 5.5

#4 @ocean90
4 years ago

  • Keywords needs-patch 2nd-opinion removed
  • Resolution set to invalid
  • Status changed from reopened to closed

I can see the custom search element on your linked site, even after a reload. Though, there are some CSS conflicts like the missing icon on the search button. To get help with that please use our support forums.

Also note, that while you say that no plugins are installed your site is still using some page optimizations provided by Cloudflare.

Note: See TracTickets for help on using tickets.