elementor / elementor/elementor

Custom Code- Edited to NO INSTANCES is still displaying in head

Open
#29,703 2 comments 0 reactions 0 assignees View on GitHub
status/awaiting_triage
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

### Prerequisites

- [X] I have searched for similar issues in open and closed tickets and cannot find a duplicate.
- [X] I have troubleshooted my issue, and it still exists against the latest stable version of Elementor.

### Description

I was debugging why my custom font file for bold wasnt loading, added a link in the head to load the font in the meantime; was added to the entire site. Then it was edited to have no instances , cleared cache, waited several days and its still there in the head. [Screen Recording of explanation](https://drive.google.com/file/d/1g6Yu4EjLgKszgGwjtdY93X65QkC6ACXs/view?usp=drive_link)

### Steps to reproduce

1. Dash-> Elementor-> Custom Code
2. Add a custom code, priority 1, in the head
3. Set to Entire SIte
4. Later , come back, set to "No instances"
5. Clear cache
6. Wait several days
7. Check

### Expected behavior

1. When set to "No instances", have ... no instances. Shouldnt be loading anywhere

### Isolating the problem

- [X] This bug happens when only the Elementor (and Elementor Pro) plugins are active.
- [X] This bug happens with the Hello Elementor theme active.
- [X] I can reproduce this bug consistently by following the steps I described above.

### Elementor System Info

```txt
== Server Environment ==
Operating System: Darwin
Software: nginx/1.16.0
MySQL version: MySQL Community Server - GPL v8.0.16
PHP Version: 8.1.29
PHP Memory Limit: 256M
PHP Max Input Vars: 4000
PHP Max Post Size: 1000M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected

== WordPress Environment ==
Version: 6.7.1
Site URL: http://parkers-mobile.local
Home URL: http://parkers-mobile.local
WP Multisite: No
Max Upload Size: 300 MB
Memory limit: 40M
Max Memory limit: 256M
Permalink Structure: /%postname%/
Language: en_US
Timezone: 0
Admin Email: dev-email@wpengine.local
Debug Mode: Inactive

== Theme ==
Name: Hello Elementor Child
Version: 1.0.0
Author: EDICO Designs
Child Theme: Yes
Parent Theme Name: Hello Elementor
Parent Theme Version: 3.1.1
Parent Theme Author: Elementor Team

== User ==
Role: administrator
WP Profile lang: en-US
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

== Active Plugins ==
Code Snippets
Version: 3.6.6.1
Author: Code Snippets Pro

Elementor
Version: 3.26.3
Author: Elementor.com

Elementor Pro
Version: 3.26.2
Author: Elementor.com

LiteSpeed Cache
Version: 6.5.4
Author: LiteSpeed Technologies

== Features ==
Custom Fonts: 2
Custom Icons: 0

== Integrations ==

== Elementor Experiments ==
Improved CSS Loading: Inactive by default
Inline Font Icons: Active by default
Additional Custom Breakpoints: Active by default
Container: Active by default
Upgrade Swiper Library: Active by default
Nested Elements Performance: Active by default
Optimized Control Loading: Active by default
Optimized Markup: Inactive by default
Conditionally load Swiper CSS files: Inactive by default
Plugin Onboarding: Active by default
CSS Smooth Scroll: Active by default
Default to New Theme Builder: Active by default
Header & Footer: Active by default
Elementor Home Screen: Active by default
Landing Pages: Inactive by default
Nested Elements: Active
Editor Top Bar: Active by default
Pages Panel: Inactive by default
Element Caching: Active by default
Link In Bio: Active by default
Floating Buttons: Active by default
Elementor Editor Events: Inactive by default
Atomic Widgets: Inactive by default
Launchpad Checklist: Active by default
Display Conditions: Active by default
Form Submissions: Active by default
Menu: Inactive by default
Taxonomy Filter: Active by default
Search: Active by default

== Log ==

JS: showing 4 of 4JS: 2024-12-23 02:50:00 [error X 1][http://parkers-mobile.local/wp-admin/load-scripts.php?c=1&loadchunk_0=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.7:2:28760] Cannot read properties of undefined (reading 'value')
JS: 2024-12-23 04:53:57 [error X 1][http://parkers-mobile.local/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.26.3:3:817665] Cannot read properties of undefined (reading 'get')
JS: 2024-12-25 05:34:33 [error X 2][http://parkers-mobile.local/wp-content/plugins/elementor/assets/js/d91e4d7f57d57af2aab9.bundle.min.js:2:7789] Cannot read properties of null (reading 'dataset')
JS: 2024-12-26 02:43:56 [error X 1][http://parkers-mobile.local/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.26.3:3:838121] Cannot read properties of undefined (reading 'toLowerCase')

PHP: showing 2 of 2PHP: 2024-12-23 06:25:32 [warning X 1][/Users/sh/Local Sites/parkers-mobile/app/public/wp-content/plugins/elementor/modules/history/revisions-manager.php::363] Undefined array key "editor_post_id" [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-12-24 03:17:36 [warning X 2][/Users/sh/Local Sites/parkers-mobile/app/public/wp-content/plugins/elementor/includes/managers/image.php::113] Trying to access array offset on value of type bool [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
```

### Agreement

- [X] I agree that my issue may be closed without action if it doesn't meet all the requirements.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.