My home page has gutenberg blocks and it breaks everytime I clear cache. To resolve it, I have to simply click Edit Page > Update.
No idea why this is happening. I’ve attached images showing how it is and how it should be.
https://postimg.cc/gallery/bGkZLbx
Thanks,
Mohsina
]]>i am wordpress developer and getting this issue in last 4 ,5 website i have done for my clients. when we start project its source code is clean and also speed up on google insight.
but when i am doing some changes and added guternberg plugin, it shows me wp-include files and wp-content/plugin folder files in source code.
for example: `<link rel=’stylesheet’ id=’gutenify-button-frontend-css’ href=’https://work.paradisetechsoft.com/vastnetworks/wp-content/plugins/gutenify/dist/style-gutenify-button.css?ver=063fd6a7ce8ef2f2c811′ media=’all’ />
<link rel=’stylesheet’ id=’gutenify-buttons-frontend-css’ href=’https://work.paradisetechsoft.com/vastnetworks/wp-content/plugins/gutenify/dist/style-gutenify-buttons.css?ver=81cb1e0e043c48adf989′ media=’all’ />
<link rel=’stylesheet’ id=’wp-components-css’ href=’https://work.paradisetechsoft.com/vastnetworks/wp-content/plugins/gutenberg/build/components/style.css?ver=14.9.0′ media=’all’ />
<link rel=’stylesheet’ id=’wp-block-editor-css’ href=’https://work.paradisetechsoft.com/vastnetworks/wp-content/plugins/gutenberg/build/block-editor/style.css?ver=14.9.0′ media=’all’ />
<link rel=’stylesheet’ id=’wp-reusable-blocks-css’ href=’https://work.paradisetechsoft.com/vastnetworks/wp-content/plugins/gutenberg/build/reusable-blocks/style.css?ver=14.9.0′ media=’all’ />
<link rel=’stylesheet’ id=’wp-editor-css’ href=’https://work.paradisetechsoft.com/vastnetworks/wp-content/plugins/gutenberg/build/editor/style.css?ver=14.9.0′ media=’all’ />
<link rel=’stylesheet’ id=’ilb-icon-list-style-css’ href=’https://work.paradisetechsoft.com/vastnetworks/wp-content/plugins/icon-list-block/dist/style.css?ver=1.0.6′ media=’all’ />
<link rel=’stylesheet’ id=’gutenify-map-frontend-css’ href=’https://work.paradisetechsoft.com/vastnetworks/wp-content/plugins/gutenify/dist/style-gutenify-map.css?ver=dbc2b99ca5e44877e12c’ media=’all’ />`
can anyone help me out how can i fix this, its also causing speed issue on my website.
]]>I updated my WP a while ago, but I installed the classic editor right away so today it’s the first time I’m using Gutenberg.
In the beginning, everything was going smoothly, but now that I’m about to finish editing a post, it’s extremely slow.
Extremely slow as in I type one word now and it shows up one minute later on my screen.
The text I’m trying to type is inside a table, which I also created with Gutenberg.
Any tips on how to make it work normally?
Thanks a lot!!
Bruna
PHP – functions.php
function register_block_editor_assets() {
$dependencies = array(
'wp-blocks', // Provides useful functions and components for extending the editor
'wp-i18n', // Provides localization functions
'wp-element', // Provides React.Component
'wp-components' // Provides many prebuilt components and controls
);
wp_register_script( 'my-block-editor', get_stylesheet_directory_uri().'/js/testing2.js', $dependencies );
}
add_action( 'admin_init', 'register_block_editor_assets' );
function register_block_assets() {
wp_register_script( 'my-block', get_stylesheet_directory_uri().'/js/testing2.js', array( 'jquery' ) );
}
add_action( 'init', 'register_block_assets' );
here is my JS file code.
JS – testing2.js
const { registerBlockType } = wp.blocks;
const { Fragment } = wp.element;
const {
RichText,
BlockControls,
AlignmentToolbar,
} = wp.editor;
registerBlockType( 'example/example-block', {
title = __('Example Block', 'example'),
icon = 'screenoptions',
category = 'common',
attributes = {
content: { // Parsed from HTML selector
source: 'children',
selector: 'p',
type: 'array'
},
textColor: { // Serialized by default
type: 'string'
},
isPinned: { // Pulled from REST API
type: 'boolean',
source: 'meta',
meta: 'example_is_pinned'
}
},
edit = ({ attributes, setAttributes, className, isSelected }) => {
const {
content
} = attributes
return (
<div className={className}>
<RichText
className="example-content"
value={content}
onChange={(content) =>setAttributes({ content })} />
</div>
)
}),
save = ({ attributes }) {
const {
content
} = attributes
return (
<div>
<p>{content}</p>
</div>
)
})
};
]]>Hi,
For some reason, the editor is magically adding strong tags. I remove them, Update the page, and they keep coming back. Not sure what’s causing this.
Before clicking Update: https://www.cyberliciousinc.com/wordpress-support/gutenberg-strong-tag-1.jpg.
After clicking Update: https://www.cyberliciousinc.com/wordpress-support/gutenberg-strong-tag-2.jpg
Thanks in advance for your help,
Ben