LUXYORT Template - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

LUXYORT Template

LA

Latypov Albert

Template 3 years ago

Installed a demo of the LUXYORT template. On the registration page, the fields for entering the name and password are displayed differently from what you have on the demo page on your site. When you click on the input field, the name of the field goes up. And my field name does not go up

0
3 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #46897

Hello latypov2

Apology for the inconvenience. It will be fixed in the next update. Please use this JavaScript to Template Options -> Custom Code -> Custom JavaScript

jQuery(function($) {
    // floating form
    $(".form-control").on(
        "focus",
        function() {
            if ($(this).prev()[0].localName === "label") {
                $(this).prev().addClass("focused");
            }
            if ($(this).prev()[0].localName === "span") {
                $(this).parent().parent().prev().addClass("focused");
            }
        }
    );

    $(".form-control").on(
        "blur",
        function(e) {
            if ($(this).val().length === 0) {
                if ($(this).prev()[0].localName === "label") {
                    $(this).prev().removeClass("focused");
                }
                if ($(this).prev()[0].localName === "span") {
                    $(this).parent().parent().prev().removeClass("focused");
                }
            }
        }
    );
});

Best regards

0
LA
Latypov Albert
Accepted Answer
3 years ago #46907

Thank you it works correctly!

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 3 years ago #46912

You are welcome. Please accept the answer that helped you. It will be then easier to find the solution for the other users with the same issue. There is a button to accept answer after each comment.

I have a humble request too. It would be very kind of you if you can manage some moment to give us feedback on Joomla Extension Directory. This will inspire us to improve.

0