Hey there - I have created a button style that I want to use again and again. I have the following code as a text snippet (textexpander) so I can drop it into a new page when I need it.
However each time I do, and save the page, when I go back in to edit the page the button code is removed. How do I stop this from happening? Thanks.
Code is here as it wouldn’t let me add the code.
https://robinharford.com/wp-content/uploads/generateblocks-button-code.txt
Tom
February 15, 2021, 8:27pm
#2
Hi there,
I’m not seeing any issues with the code itself.
Is the entire block completely gone when you re-open the page? It doesn’t exist at all in the Block Navigation ?
Hi Tom,
Only the button code disappears. The rest remains.
I’ve just added the complete code so you can see it all.
R
Tom
February 16, 2021, 1:10am
#4
And what happens if you add a new button? Does it save ok?
Any chance you can link me to a page that should have the button on it?
Here’s the page with the button on it:
You'll learn the parts of ground ivy used as food and medicine, harvest time, nutrition and other ways humans use this amazing plant - Read more!
Estimated reading time: 3 minutes
Here is a short video walkthrough in the edit area showing the problem happening:
Many thanks.
Tom
February 16, 2021, 7:20pm
#6
Ah, the code itself shouldn’t be displayed in the editor like that - it should actually render the button visually once you paste it in.
What happens if you try to paste the button at the very end of your content?
That worked. All good now Tom. Many thanks.
1 Like