Thank you @kaavyaiyer for the answer,
I posted the question on different forums and the only solutions offered was using vanilla javascript in a hook to modify the HTML structure after the page loads.
I have already followed tutorials on how to create blocks under Gutenberg. Even if I managed to go to the end of the tutorials I have to admit that I am still not comfortable with the concept and that I can hardly deviate from what was proposed.
Having to install node and scaffold packages to be able to “just” create a block seems infinitely more complicated to me than inserting a few lines of code in PHP in my single page for example.
Even if I m confi with Vanilla JS or Jquery I m not yet with React (So I know what to learn).
In the 2022 theme I spotted the inc/patterns folder which contains PHP pages and generates block-patterns.
Maybe that could be a solution too.
-
This reply was modified 2 years, 8 months ago by noerve.