Floating button
- Posted by JCRojas (4) Offline
Hi
Thxs for this super and simple extension
I would like the menu to be opened by default, so no need to click on the main button to make the other buttons appear
But I would like to keep displayed the main button, so the user has always the possibility to close it and to re-open again
Everything is ok, I'd liike just to customise the initiial status
Is it possible anywayy ?
Thxs again
JC
3 years 10 months ago #1
by JCRojas
Thxs for this super and simple extension
I would like the menu to be opened by default, so no need to click on the main button to make the other buttons appear
But I would like to keep displayed the main button, so the user has always the possibility to close it and to re-open again
Everything is ok, I'd liike just to customise the initiial status
Is it possible anywayy ?
Thxs again
JC
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5261) Offline
Hi JC, It's possible but you will need to modify the javascript code.
3 years 10 months ago #2
by TemplatePlazza
Please Log in or Create an account to join the conversation.
- Posted by JCRojas (4) Offline
Hi,
Good and quick answer. I had no doubt that it was possible
Moreover, I'm looking just to change the initial status, without changing anything else
But I'm not sure what's the file to modify
Could you please tell me the file to change ?
Thxs a lot
JC
3 years 10 months ago #3
by JCRojas
Good and quick answer. I had no doubt that it was possible
Moreover, I'm looking just to change the initial status, without changing anything else
But I'm not sure what's the file to modify
Could you please tell me the file to change ?
Thxs a lot
JC
Please Log in or Create an account to join the conversation.
- Posted by JCRojas (4) Offline
Hi,
I tried to take a look on module files
I suppose you are talking about files “script.js” and “script.min.js”
In folder mod_floating_buttons/assets/js/
But I really don’t see what and where has to be modified
Can you please help me ?
Thxs a lot
JC
3 years 10 months ago #4
by JCRojas
I tried to take a look on module files
I suppose you are talking about files “script.js” and “script.min.js”
In folder mod_floating_buttons/assets/js/
But I really don’t see what and where has to be modified
Can you please help me ?
Thxs a lot
JC
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5261) Offline
Hi Jcrojas,
I think you don't have to change the script.js. I didn't tested yet, but if you know to code javascript, you can create an additional jquery script that click the button automatically when the page is loaded. You can put the code in your template or in the module itself.
You can use something like this :
3 years 10 months ago #5
by TemplatePlazza
I think you don't have to change the script.js. I didn't tested yet, but if you know to code javascript, you can create an additional jquery script that click the button automatically when the page is loaded. You can put the code in your template or in the module itself.
You can use something like this :
jQuery( document ).ready(function() {
jQuery("#floatingbtn .jfab_main_btn").click();
});
Please Log in or Create an account to join the conversation.
- Posted by JCRojas (4) Offline
Hi,
Not only it is working, but it is so simple !!!
I’ve just added your code to the end of the file “mod_floating_buttons.php”
And that’s all !!!
This could be a very simple evolution of the module
Also, I saw that some people are asking for “_blank” possibility for each link
This could be also a nice supplementary feature
I had this issue too; I solved it by putting an intermediate php page that redirects to a new window
Thxs a lot
JC
3 years 10 months ago #6
by JCRojas
Not only it is working, but it is so simple !!!
I’ve just added your code to the end of the file “mod_floating_buttons.php”
And that’s all !!!
This could be a very simple evolution of the module
Also, I saw that some people are asking for “_blank” possibility for each link
This could be also a nice supplementary feature
I had this issue too; I solved it by putting an intermediate php page that redirects to a new window
Thxs a lot
JC
Please Log in or Create an account to join the conversation.