David Smith
Forum Replies Created
-
Hi @flexer.
You are correct that the docs suggest we should have full backwards compatibility with
add_theme_support('editor-color-palette')
.Are you able to provide a code example of your colour palette in order that we can replicate the issue more easily?
I’ll ask one of the team working on this to see if they can identify whether or not this is a bug.
Forum: Plugins
In reply to: [Gutenberg] A bug that add several repeating css in content bottomHi @hozefasmile.
I don’t believe this is a “bug” but rather it’s intentional behaviour of Global Styles generating per-block layout styles.
These are generated in this area of the code:
https://github.com/WordPress/gutenberg/blob/trunk/lib/block-supports/layout.php
You can find out more about the layout config at:
Is this feature causing problems for you or were you just curious? Please do let us know.
I’ll ask folks working on the feature to see if they can chime in here as well.
Thanks again.
Forum: Plugins
In reply to: [Gutenberg] Blocks can’t be added at the top of pagesYes that does make sense. Thanks for confirming.
There are also 700 pull requests in Github. Is there a team of people going through them?
The Gutenberg project is part of the WordPress open source project and thus is contributed to by a large number of people – some of whom have more time to dedicate than others.
People are always looking at Issues and working through Pull Requests but with a project this large it’s inevitable that some will gain traction quicker than others.
If this Issue is particularly important to you and you have the means to do so it would be great if you could raise a PR to fix the issue.
If not then please do feel free to drop into the next Core Editor chat and raise the issue there. That will help it to get more attention.
Forum: Plugins
In reply to: [Gutenberg] force a wrapped image to stack on mobileHi Gary,
If you are using the latest Gutenberg Plugin then the built-in Media + Text block is the way to go on this one.
It comes with a “Stack on mobile” option which allows you to choose to stack the image and text on smaller viewports.
You can also adjust the layout of the image (left/right) and vertical alignment (top/bottom). Whilst the image block & paragraph block combination is usually sufficient, in specific circumstances such as yours the Media+ + Text block provides greater control over your content.
I recorded a quick video to illustrate what I mean. I hope that helps?
Forum: Plugins
In reply to: [Gutenberg] LIGHTBOXHi @akiraanastasia.
By default the Gutenberg editor doesn’t come with a lightbox option for either Gallery or Image blocks.
You can however change where the images link to as shown in the screenshot below:
Perhaps changing the
Link to
option toNone
is what you are looking for?If not could you post either:
* a link to the page where you are seeing the problem.
* a screenshot showing what you are seeing on your websiteIf you are seeing an actual lightbox effect, then I would recommend contacting the Theme authors for support as it’s likely as this may be an issue with your Theme.
Forum: Plugins
In reply to: [Gutenberg] White space between blocksHi @narddog. Without seeing the site in question it’s difficult to provide advice here.
You can use the Spacer block to add additional space above/below blocks but I think you want to remove space right?
If you can provide a link to the site or even just copy the blocks directly out of your editor so your setup can be replicated that would help.
Otherwise, I would try
– adding a specific class to the blocks in question using the “Advanced” panel in the inspector panel on the far right of the editor.
– using the Customizer (Appearance
->Customizer
) to change the CSS to target that custom class.Let us know if you can share any additional information.
Forum: Plugins
In reply to: [Gutenberg] Query: Found Search And Replace for Block EditorHi @qph9697,
I’m afraid I’m unable to say how a Chrome extension will modify things. Typically they can only operate on what’s available in the browser and shouldn’t have access to things like your WP database.
That said, always take a backup of your site before you use a tool such as this.
A search and replace Plugin for an article sounds like a great idea for a Plugin. Hopefully someone will build it soon.
Best of luck with your site.
Forum: Plugins
In reply to: [Gutenberg] How to reduce space between lines of text on the homepageHi there @asterix786,
Let’s see if we can help.
If you look at the headlines under the ‘Content Marketing Blog’ section on your phone, you will see a yawning space between the first and second line of the headline.
I couldn’t see a large space such as you describe. Could you possibly post a screenshot of what you are seeing and a URL to the exact page you are referring to?
Also, how do i change the colours of the ‘learn more’ button to: purple background and white text. Right now, it’s black background and purple text. Only when I hover the cursor does it show the colours I want.
You should be able to do this in the inspector controls for the button block which are on the right hand side of the editor screen.
Here’s a video to help.
All the best.
Forum: Plugins
In reply to: [Gutenberg] column stack on mobileHi Gary. Ah I see you are not using the Gutenberg Plugin but rather the version of Gutenberg that is currently merged into WordPress Core.
In which case you won’t have that toggle available until WordPress 5.9 which is late this year.
Alternatively you could (at your own risk) install the Gutenberg Plugin which gives you the latest features every two weeks, but you should be aware then you’d be running on the bleeding edge of things and you might experience some instability.
In terms of the CSS I would advise setting
flex-direction: column
on the wrapping<ul>
. You should apply that in a suitable media query.You could also check out this CSS Tricks article which is all about styling the Columns block and even has a section on handling responsive.
I hope that helps and good luck!
@monica5 It looks like @talldanwp has being doing his best to try to help you. This is a complex problem to debug at arms length, especially as the error is:
– not immediately traceable to any given feature or code (the error refers to React which is not strictly “Gutenberg”).
– not happening in a fresh WordPress installation with the Gutenberg Plugin activeAs a result of the two items above it is highly likely that this is due to a Plugin conflict which – as you may be aware – is something outside of the ability of the Gutenberg contributors’ ability to fix.
If you haven’t already I would highly recommend you do the following:
– Follow this guide (or similar) to set up a local WP installation on your local machine.
– Install and activate the Gutenberg Plugin only.
– Remain on the Twenty Twenty theme.
– Export all content from your production website using the WordPress export function and import it into your local WP installation.
– Check your local site language settings match those of your production site.
– Open a new Post and see if you can replicate the error.If you cannot replicate then this is not an error generated by Gutenberg itself.
I would then recommend you try to install the Theme you are running on your Production site on your local site. Does the error still occur?
I would then suggest installing the Plugins you have active on your Production site on your local site. You should do this 1 by 1 each time checking if the error still occurs in the editor.
This should help you to narrow down the problem.
Apologies if you feel this is repeating things. We’ve happy to try to help you but it isn’t possible to patch Gutenberg (or even ascertain whether it needs a fix) unless we can narrow down the source of your issue.
Look forward to hearing from you.
All the very best.
Forum: Plugins
In reply to: [Gutenberg] Gutenberg conflictsHi @stethostalk
Sorry to hear you’re having trouble.
I discovered that Gutenberg conflicts with Bunyad AMP plugin provided by my theme (Contentberg).
I can not remove that AMP plugin. What should I do? please help
You will need to contact the authors of the Bunyad AMP Plugin and ask them to test their Plugin is compatible with the version of the Gutenberg Plugin you are using.
If – as you suggest – it is not, then they will have to make some fixes.
I hope they are able to assist you.
All the very best
Forum: Plugins
In reply to: [Gutenberg] Gutenberg editor unavailableSorry to hear you’re having trouble with Gutenberg. Firstly, before we go any further, please fully backup your site and/or use a staging site to help debug this issue.
but I can’t now edit it or any other page with the block editor
Please could you post the error information you’re getting? If Gutenberg crashes there is usually an option to “Copy Error”. If you can paste the output here that would help.
Also please try deactivating all of your Plugins except Gutenberg to see if the error remains. If it is not happening when all your Plugins are disabled then please re-enable the Plugins 1-by-1 until the error happens again. This will help you to locate the source of the problem.
Please do let us know how you get on.
Please note that it’s highly likely that your issue is not the same as other forum posters so it’s important we assess it on its own merits.
Many thanks.
Forum: Plugins
In reply to: [Gutenberg] Blocks can’t be added at the top of pagesHi @a4jpcom.
I’m still not 100% about the exact issue you are refering to but I think you mean that once you add some initial blocks there is no “inserter” (that’s the + icon) above the first block. Therefore it’s not possible to add a block above the first one.
That might be concern shared by others so I would recommend creating an Issue on Github. If you can provide screenshots or videos that will help Gutenberg contributors to look into and potentially address your issue. It can also help you to build momentum behind the need for the change.
In the short term however you might already be aware that there is an “Add above” option in the “3 dots menu” on the block toolbar.
That should allow you work around this.
I hope that helps?
Forum: Plugins
In reply to: [Gutenberg] How to add a div wrapper outside of blocks in backend editor?Hi @pepe80,
Nice work on figuring out how to do this PHP side on the front end.
To effect the editor you’re going to need to use some hooks in JavaScript to modify the output. If you’re not sure how to do that then the Handbook has some useful guides to get you started to enqueuing JS for the editor.
The hook I think you’re looking for is the filter editor.BlockListBlock. This allows you to modify the block’s wrapper component containing the block’s edit component.
You can then use this to add a wrapper div around each block.
I recorded a quick screencast to show you how to add a wrapper around blocks in the Gutenberg editor.
I hope that helps?
Thanks
Forum: Plugins
In reply to: [Gutenberg] column stack on mobileHi Garry,
Let’s see if I can help you.
I want to stop this block from stacking the images on mobile.
I’ve made a quick video for you which shows how to stop the block from stacking on mobile.
This did work but there is no longer any space between the images:
I took a look at the link you provided and everything is looking pretty good now. Did you solve your issue?
Thanks