- This topic has 12 replies, 2 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
January 11, 2023 at 2:21 am #2491076
Glasul Vietii
Hy, how can i do this with Generate press?
Method 2 – Form launch button
By including a CSS class (f230ro-launch) in one or more elements, they will launch the custom form on click.This class can be attached to any button or element on the page where you have included the script. The class does not influence existing CSS styles in the site and the display of the button.Example implementation:
<button class="f230ro-lansare">Redirect</button> <script src="https://formular230.ro/share/58b1051c4"></script>To help you out, we’ve also included a button class that will style the element to look like a button (f230ro-button). I’ve also included some subclasses for altering the appearance.
Button initialization examples:
<div class="f230ro-launch f230ro-buton">Redirect</div>So my question is how can i implement this into a button on a page to run this script? (https://formular230.ro/share/58b1051c4)
January 11, 2023 at 5:47 am #2491291David
StaffCustomer SupportHi there,
are you using the Block editor? If so then use a GB Buttons Block, and with the button selected go to Advanced > Additional CSS Class(es) and add the class name there.
January 11, 2023 at 5:57 am #2491305Glasul Vietii
I done that Advanced > Additional CSS Class(es) and add the class name there.
But the script https://formular230.ro/share/58b1051c4 is not on my website.I dont understand how to implement :
<button class="f230ro-lansare">Redirect</button> <script src="https://formular230.ro/share/58b1051c4"></script>January 11, 2023 at 7:06 am #2491413David
StaffCustomer Support1. Go to Appearance > GeneratePress and activate the Elements Module.
2. In Appearance > Elements -> Add New –> Hook.
3. In the Hook text area – add your script eg.<script src="https://formular230.ro/share/58b1051c4"></script>4. Set the Hook to:
wp_footer
5. Set the Display Rules > Location to:Entire Siteor add just the places you want it to fire eg.Posts -> All PostsThen you can add your Button with your CSS Class in the page editor.
January 11, 2023 at 8:03 am #2491610Glasul Vietii
Thanks, i will do some tests and give feedback.
January 11, 2023 at 11:01 am #2491800Glasul Vietii
thank you, is working when i put in CSS class f230ro-lansare , but i want to get to work this:
Button initialization examples:
<div class="f230ro-launch f230ro-buton">Redirect</div>Right now when i hoover on the button it doesnt show up the “little hand”, because the url field on the button i left it empty.
If in Advanced > Additional CSS Class(es) I put f230ro-launch f230ro-buton on page refresh it show up that form, i dont have the time to scroll down, just refresh or load new page and show up the form. I want to show up the form on button click and the button to have that “little hand” on hoover.
January 11, 2023 at 11:12 am #2491805Glasul Vietii
Nevermind is working, stupid of me!!
I typed wrong name of the class, it shout be this: “f230ro-lansare f230ro-buton rotund verde”
Thank you for all the help!
January 11, 2023 at 11:21 am #2491817Glasul Vietii
Ok , the button is working but i when i click to go to another page or article it show up the form on all the page.
I want the form to show up only when i click on that particular button.
What can i change in the hook?
January 12, 2023 at 2:43 am #2492564David
StaffCustomer SupportWhere can i see the issue ?
January 12, 2023 at 3:34 am #2492617Glasul Vietii
I have sent you login details.
January 12, 2023 at 7:47 am #2492846David
StaffCustomer SupportCan you ask the author of that script ?
January 12, 2023 at 7:49 am #2492880Glasul Vietii
I will give a try. May I ask what is the problem? Why it is not working on button click?
Did you login and checked?
Thanks!
January 12, 2023 at 9:15 am #2493141David
StaffCustomer SupportI did look, but the issue will be related to the script which is why you need to talk the author
-
AuthorPosts
- You must be logged in to reply to this topic.