Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1472583

    Hi,
    on https://chiway.ch/chiway-akademie/#team we have a tab element with ajax portfolios inside. If you open one portfolio entry, the section doesn’t expand so that the portfolio entries are cut.
    The strange thing is: if you go then to another tab and back again the section height has adjusted correctly.
    Can you please take a look?
    Many thanks, Stefan

    #1472979

    Hey westefan,

    Thank you for the inquiry.

    We can’t seem to reproduce the issue on our end. The portfolio items were fully visible when we checked. Did you figure out the issue?

    Best regards,
    Ismael

    #1472985

    Hey Ismael,
    here is a screenshot of what I mean:
    Screenshot issue portfolio
    Thanks
    Stefan

    #1472986

    #1472987
    #1473059

    Hi,

    Thank you for the update.

    We can’t see the screenshot, 404 error. Please try to add this script in the functions.php file to resize the tab section on page load:

    function ava_custom_script_tab_section_resize() { ?>
        <script>
            (function ($) {
                $(document).ready(function () {
                    var targetElement = $('a[data-av-tab-section-title="1"]');
                    if (targetElement.length) {
                        setTimeout(function () {
                            targetElement.trigger('click');
                        }, 1000); // Optional delay to ensure other elements are ready
                    }
                });
            }(jQuery));
        </script>
    <?php }
    add_action('wp_footer', 'ava_custom_script_tab_section_resize', 99);
    

    You can use platforms like Savvyify, Imgur or Dropbox to upload and share the screenshot. Here are the steps to follow:

    1.) Visit the website of your chosen platform, such as Savvyify, Imgur or Dropbox.
    2.) Locate the option to upload a file or an image.
    3.) Select the screenshot file from your computer or device and upload it to the platform.
    4.) After the upload is complete, you will be provided with a shareable link or an embed code.
    5.) Copy the link or code and include it in your message or response to provide us with the screenshot.

    Thank you for taking the time to share the screenshot. It will help us better understand the issue you’re facing and provide appropriate assistance.

    Best regards,
    Ismael

    #1473087

    Hi Ismael,
    thanks, but the problem is not on page load but if something happens within the inner tab section like open an ajax portfolio entry (so everything what makes necessary to resize the inner tab height).
    I’v uploaded the screenshot to the website https://chiway.ch/wp-content/uploads/Screenshot-Chiway-Akademie.png and I tested the link. It really responds with an error?

    I guess it’s the same phenomenon if you send the form on the bottom of https://chiway.ch/diplom-lehrgaenge/akupunktur-und-tuina/ without filling out any field – so you see that due to the error messages the send button slides down and behind the footer because the inner tab section doesnt expand.
    Can you follow my explanations?
    Best regards
    Stefan

    #1473213

    Hi,

    Thank you for the info.

    We adjusted the script a bit. Please try it again:

    function ava_custom_script_portfolio_ajax_resize() 
    { ?>
        <script>
            (function ($) {
                $(document).ready(function () {
                    $('.grid-entry').on('click', function () {
                        var tabId = $(this).closest('.av-layout-tab').attr('id');
    
                        if (tabId) {
                            var targetToggle = $('[aria-controls="' + tabId + '"]');
    
                            if (targetToggle.length) {
                                setTimeout(function () {
                                    targetToggle.trigger('click');
                                }, 1000);
                            }
                        }
                    });
                });
            })(jQuery);
        </script>
        <?php
    }
    add_action('wp_footer', 'ava_custom_script_portfolio_ajax_resize', 9999);
    

    Best regards,
    Ismael

    #1473235

    Hi Ismael,

    concerning the tab section with portfolios inside it works perfect now – many thanks!

    What doesn’t work yet is the resizing of a tab section if a contact form is inside and you make a mistake filling out so that due to error messages the submit button and the error messages disappear (e.g. https://chiway.ch/diplom-lehrgaenge/chinesische-arzneitherapie/ – first tab “Anmeldung”).

    Best regards
    Stefan

    #1473332

    Hi,

    Thank you for the update.

    What doesn’t work yet is the resizing of a tab section if a contact form is inside

    Looks like you’re using a custom contact form from a plugin. The tab section will not respond to the form’s behavior because there are no supporting scripts, or they are not configured to work together. You may need to move the contact form outside the tab section.

    Best regards,
    Ismael

    #1473344

    Hi Ismael,
    thanks, thats something I can understand.
    So, thanks again und please close the thread.
    Best regards
    Stefan

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Issue with ajax portfolio within tab element’ is closed to new replies.