• Resolved Walf

    (@wallfur)


    There was already a thread about this that was marked resolved, though it really wasn’t, from the user’s perspective.

    A snippet that should do this for all Toggle widgets is as follows:

    <script>
        (function($) {
            $ && $(function() {
                $('.elementor-toggle-item:first-child')
                    .children('.elementor-tab-title')
                        .addClass('elementor-active')
                        .attr({
                            'aria-expanded': 'true',
                            tabindex: '0',
                            'aria-selected': 'true'
                        })
                        .end()
                    .children('.elementor-tab-content')
                        .addClass('elementor-active')
                        .css('display', 'block');
            });
        })(window.jQuery);
    </script>

    You can add it under Admin > Elementor > Custom Code.

    It’d be much better if this was just a setting in the editor.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi

    Could you please elaborate on the issue?

    Which steps have led to this problem or which steps have you tried so far to resolve it?

    Also, if you could provide the following, it’ll be great:

    • A screenshot or screencast ?of the issue
    • The URL of the page where the issue occurs, if it occurs on all pages please mention it.
    Thread Starter Walf

    (@wallfur)

    I find such canned responses insulting. The linked thread explains very clearly what the issue is, in which your team already stated that it’s expected behaviour for the widget.

    Hi

    Please note that through this channel, we can only provide support for Elementor’s existing features and do not provide support for custom code solutions, as it goes out of our support scope.

    Currently, development/custom code queries (custom widgets and functions, Theme Child, custom code and CSS, BETA testing issues, compatibility issues, etc.) have to be directed to our GitHub project, where our developers will be able to assist. Kindly note that our GitHub project is not a support channel; therefore, the response times may vary. We appreciate your understanding.

    To post on our GitHub Repository, follow this guide: Contribution Guidelines.

    Thread Starter Walf

    (@wallfur)

    And another canned response. Failed to notice this was labelled as not a support question, did we?

    Hi

    With the accordion widget, the first tab is opened by default. Here is additional information:?https://elementor.com/help/accordion-widget. But there is no option to keep the tab expanded if another one is opened. Changing this default behavior of the accordion/toggle widget would require custom code which is outside our support scope.

    When it comes to questions related to Elementor code and its inner functioning is best addressed with our developers. If you would like assistance with these kinds of issues, I advise you to visit our GitHub page at https://www.github.com/elementor and submit this query to our developers as they will be able to assist in the best possible way and/or give you advice on how this can be handled.

    Also, for third-party plugins/custom solutions and suggestions you can join the Elementor Facebook Community? where you can find a supportive and helpful community of experienced users that are happy to provide useful tips and tricks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Have first item of Toggle open by default’ is closed to new replies.