Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 16h 14m 44s
Claim 50% off
Solved Templates

LUXYORT template

Asked by Latypov Albert 4 years ago Last activity 4 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

Accepted answer

Marked as the solution
Ofi Khan Staff

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

2 more replies

Latypov Albert Asked this

Thank you it works correctly!

Ofi Khan Staff

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.

Log in to reply.