Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Unable to edit a block after saving #61401
    Andrea Barghigiani
    Participant

    Alright 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 an h2 for my title but later on I will save() an h3 and this was compromising the validation.

    Hope this can help,
    Andrea

    in reply to: Unable to center a button in a CTA block #60915
    Andrea Barghigiani
    Participant

    Alright 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 RichText with a div container and p childs as Zac shows us in the videos, but this didn’t let me use che titleBoxColor attribute I had. So the solution I found was to transform the div into a p and 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:
    Dev Tools says the had the right color.

    Thank you for the future help.

    in reply to: Unable to see InspectorControls, no errors shown #59453
    Andrea Barghigiani
    Participant

    Problem Solved

    I only had to return an array of elements instead of return them separated only by comma.

Viewing 3 posts - 1 through 3 (of 3 total)