Cloudflare's Rocket Loader + Wordpress -> Ignore scripts?

I'm trying to make Cloudflare's Rocket Loader work on my WP site. Everything works fine except for the WP Visual Editor. I followed the advice here but it doesn't work: How do I add custom...

Major problems with the visual editor and no solutions yet

So I've been having a problem for several days now and I reached out a few days ago here and got a couple of replies, but the people who were trying weren't able to figure it out. (Though they...

TinyMCE class name

Is there a built in TinyMCE command to change the class name of its outer-most div? I have a div which is populated with either a PHP version of TinyMCE or the jQuery version, but the TinyMCE...

Set maximum image size in kb for wordpress image.php

Hi im looking for a way to set a maximum upload size in kb for images in wordpress wp-admin/includes/image.php This is the code i found in the image.php but i don't really understand it, any ideas...

WordPress theme editor is missing

I am trying to access the theme editor in WordPress. The problem is that I cannot find the option under Admin-Appearances - Editor and when I try to access the page using the link...

Wordpress child theme style.css not working

I have created a file structure in the same format as my parent theme. My parent theme is called Alpine and within Alpine there is a functions.php and style.css file. There do not appear to be any...

How to properly use wp_editor() from frontend

I am trying to create a simple form for my wordpress theme's custom page template, but the problem i can not get the toolbar of tinymce editor. I have searched and found some resources but nothing...

How can i get data from custom post type using WP REST API

I want to GET data from my custom post type using WP REST API. My Custom post type is "result" and I have tried with this...

add_menu_page item show to Editor Role Wordpress

I've been trying to add a menu to my WP Dashboard which I already accomplished. But now I want to show this menu to the Editor role as well as the administrator. Here is my code add_action(...

Edit Page save button not showing in wordpress

my website was running smoothly without any issue but after a long time now I opened admin panel to edit a page but there is no save/publish button is available and also the WYSIWYG controls are...

How to disable Gutenberg / block editor for certain post types?

WordPress added Gutenberg / block editor in its 5th version and it's enabled by default for Post and Page post types. It might be enabled by default for all custom post types in close future so as...

Wordpress Gutenberg File Buttons - How to display first?

I'm trying to display the buttons from the gutenberg editor before the actual document name. Right now the buttons are displayed after the title, as a second child of the "wp-block-file". I've...

How to override new Gutenberg product loop block markup

Recently updated WP and plugins. The "Products by Category" block I had in the Gutenberg editor are now rendered very differently. After quite some digging, it appears that the...

Enable pagination for gutenberg latest posts block

I'd like to add pagination to the latest posts gutenberg block. This block fetches posts through withSelect() and getEntityRecords(), similar to the block editor handbook. The REST API returns two...

WP API in React Js (Gutenberg Editor) : Cannot read property 'wp:featuredmedia' of undefined even with condition

I've built a dynamic block in Gutenberg editor for latest custom posts. And fetched featuredmedia for them through _embed. So it's working if all my posts have featured image, but if not I have an...

Wp media gallery metabox Cannot read property 'state' of undefined

I have a task to create media gallery images in post type as like "woocommerce product gallery images" without any plugin, It's all custom with meta box. I have created metabox "Gallery Images"...

WordPress Categories not showing in sidebar (post-new.php)

When adding or editing a post, categories are not showing in the sidebar - the area is here but the list is empty. In the console (JS), I have these errors : (WARNING) [DOM] Found 2 elements with...

Warning: “continue” targeting switch is equivalent to “break”. Errors

Question: Warning: “continue” targeting switch is equivalent to "break". Did you mean to use "continue 2"? in...

BUG: unpack-trees.c:699: pos must point at the first entry in this directory

I tried to soft reset my branch to remove a directory I had accidentally pushed to GitHub. After the soft reset I was still getting the following error: fatal: Unable to create...

How to add id attribute on span tag in WP Block Editor Toolbar Button

I'm creating the element for rich text toolbar button for wp blockeditor that will create an option to wrap the selected text into span tag. Now what I want is to add an ID attribute into the span...

Wordpress theme footer can't be customized

I can't customize footer on wordpress "colibri WP" theme or add any widgeds to it nor change copyright text. I tried to change the code in dashborard -> theme editor -> footer.php and this is the...

How to Set Text of TinyMCE Editor to Center Align?

I'm trying to make it so a text editor that uses TinyMCE will have the text center-aligned by default. I've tried executing a command, and I've also tried linking to a custom CSS, but neither...

Installing sf package in R under renv on Macos

I'm having problems in installing the sf package through renv. I have installed R from source in my Mac and everything is fine. I was able to install rgdal and sf through install.packages but...

Wordpress custom Gutenberg block not working: Uncaught TypeError: Cannot read property 'blocks' of undefined

I'm quiete desperate at the moment. I tried to build my first custom block for Gutenberg editor according to these...

Limit WooCommerce Product Short Description to text only (Disable tinymce editor)

I want to limit the Product Short Description, so that only text can be added. (Disable tinymce editor). As there is post excerpt in regular posts. Current: Product Short Description = TinyMCE...

How to install PyCaret in AWS Glue

How can I properly install PyCaret in AWS Glue? Methods I tried: --additional-python-modules and --python-modules-installer-option Python library path easy_install as described in...

How to disable widget block editor of WordPress?

WP 5.8 comes with a new system to manage events named "Widgets Block Editor". How can I disable this new system and restore the classic widget editor of WordPress?

How to use React Testing Library to test for appearance/disappearance of elements in Gutenberg editor using Puppeteer?

I have the following set up: E2E Test Utils - standard WP Gutenberg e2e testing set that uses Jest and Puppeteer testing-library/pptr-testing-library - All your favorite user-centric querying...

Duplicate div in php

I created this PHP code in WordPress to add image to the menu, but it is duplicating a div where there is an add button and I don't know why, I need it to be only one and not two results of the...

Blank page when editing or creating new page (with block editor) and in the widgets pages WP, probably link with the wp.blocks

I have a problem, when I try to open any page (to edit or creating) in the block editor, the page won't load and stay white. When I put this code in the wp-config.php I can edit in a normal way...