Configuring OnClick on the Menu button
hello guys, I created a personalized menu where I would like to click on one of the buttons to display a New Post frame, I tried to get the method specified in the "New Post" block but it doesn't work, can you give me a way to make it work?
-
-
- · Renato
- ·
This function only opens the details if I leave the Post block as visible. The Post block is not visible or active on the page, I would like to click on the button and he would open the post block. imagine a blank page with a "create new post" button and when you click it, the "Create Post" block appears
-
-
·
LeonidS
- ·
You may place the block with this form and then hide it via CSS, then your function will just make it visible. I guess it is easier.
-
·
LeonidS
-
- · Renato
- ·
Ok, in css I can hide the block, so I thought of creating a function in JS so that when I click on the button it changes the CSS property and the block appears, but I don't know where to put the JS code, I'm using Lucid, you know me tell where I put my JS?
-
-
·
LeonidS
- ·
You may place it to:
1) Studio->Designer->Injections->Head section ("global" mode)
2) Place your code into RAW block in the Studio->Pages App, the necessary Module and page area.
-
·
LeonidS