Hi,
I need some help. Here is the scenario:
When user wants to Sign up with Facebook, as A NEW USER to the site, he must say he agrees to terms and conditions. The problem is that the terms and conditions are displayed and the user must scroll to even find the checkbox which is at the middle of the popup, and this is confusing.
So I want the whole terms and conditions text to be display:none, and to put a toggle function to the "Terms and Conditions" if anybody wants to read it, as an option.
I am having trouble defining the p class - tried with
$("p:eq(2)").on("click",".joms-form__group joms-js--fbc-tnc" function(){
$(this).toggle();
});
in the console, but it's not working in the preview.
Please, could you tell me the code, and please, could you tell me where to put this code?
The site is online.
Thank you in advance!
OK I got this code working, I copied that to script.js but this is obviously not the right place.
(function ($) {
$(document).ready(function() {
$(".joms-js--fbc-tnc").on("click",".joms-js--fbc-tnc-toggle", function(){
$("p:eq(4)").toggle();
});
});
}(jQuery));
Help?
Hi,
I suggest you to using template override.
1. copy facebook.firstlogin.php from /components/com_community/templates/jomsocial/layouts/ to /templates/[your frontend template]/html/com_community/layouts/
2. edit it, find this code at line 64
<p class="joms-help joms-js--fbc-tnc-desc" style="display:none">
<p class="joms-help joms-js--fbc-tnc-desc">
Hi,
unfiortunately this is not working.
We edited the code, but we don't have this folder hierarchy so we created folders and copied the file, but nothing changed.
Could you please check on the website, the "Terms and Conditions" are by default closing and opening some div, maybe there is some easier solution if there is only a bug (putting text to this specific div that the button is already toggling)?
Thank you!
Hi Branimir,
please provide me credentials information for:
- joomla administrator login
- htaccess login
- FTP access detail
and revert back any changes that you made before. I need it for debugging your site.
you can put credentials information by editing your first post at this topic. put it at site info form
Regards
Hi,
here the fix: