Forum Replies Created
-
AuthorPosts
-
Andrea Barghigiani
ParticipantAlright guys, once again I found my silly mistake by myself.
The error is pretty stupid and Zac told us about it in the
save()lesson, but I didn’t listen properly 😀Basically I was saving a different HTML element for my block, in the
edit()method I used anh2for my title but later on I willsave()anh3and this was compromising the validation.Hope this can help,
AndreaAndrea Barghigiani
ParticipantAlright I’ve found a way to fixing both of my problems but I am not really happy with the solution.
The issue around the centering of my button required only a little CSS love to solve it but I am not particularly happy with the solution I found for the message.
Before I created a
RichTextwith adivcontainer andpchilds as Zac shows us in the videos, but this didn’t let me use chetitleBoxColorattribute I had. So the solution I found was to transform thedivinto apand now I am able to see correctly the color.But I would like to understand why before wasn’t possible even if the dev tools of my browser said different:

Thank you for the future help.
Andrea Barghigiani
ParticipantProblem Solved
I only had to return an array of elements instead of return them separated only by comma.
-
AuthorPosts
