-
AuthorPosts
-
November 29, 2024 at 5:28 pm #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, StefanDecember 5, 2024 at 7:37 am #1472979Hey 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,
IsmaelDecember 5, 2024 at 9:28 am #1472985Hey Ismael,
here is a screenshot of what I mean:
Thanks
StefanDecember 5, 2024 at 9:30 am #1472986December 5, 2024 at 9:30 am #1472987I guess I can’t send the image link?
https://chiway.ch/wp-content/uploads/Screenshot-Chiway-Akademie.pngDecember 6, 2024 at 6:31 am #1473059Hi,
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,
IsmaelDecember 6, 2024 at 9:59 am #1473087Hi 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
StefanDecember 9, 2024 at 7:02 am #1473213Hi,
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,
IsmaelDecember 9, 2024 at 12:57 pm #1473235Hi 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
StefanDecember 10, 2024 at 1:04 pm #1473332Hi,
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,
IsmaelDecember 10, 2024 at 1:22 pm #1473344Hi Ismael,
thanks, thats something I can understand.
So, thanks again und please close the thread.
Best regards
Stefan -
AuthorPosts
- The topic ‘Issue with ajax portfolio within tab element’ is closed to new replies.