-
AuthorPosts
-
October 31, 2024 at 2:08 pm #1470347
Hi,
on the right 1/2 column of https://chiway.dadanddaughter.design/diplom-lehrgaenge/akupunktur-und-tuina/#inhalte there is an accordeon. Inside of some of them there are expand/collapse areas based on HTML 5 details/summary. Particularly the last one (OdA-Modul M6 – Praktikum) on the bottom there are 2 areas (PB1 Methodenpraxis + PB2 Fallbesprechungen), but the container height doesn’t expand to full text height – the content is cut. How can I solve this to expand the container to show the whole text?
At the bottom of https://chiway.dadanddaughter.design/chiway-akademie/ there is a tab section with portfolios inside. On first page load the portfolio “Team” is cut and doesn’t show full height. When going to next tab and back again the height is correct. What can be the reason?
I read some articles here concerning deep link to a certain tab of a tab section, open this tab and jump to the beginning of the tab section. Is there an up-to-date solution for this?
Many thanks
StefanNovember 6, 2024 at 8:47 am #1470737Hi, anyone an idea?
Thanks, StefanNovember 9, 2024 at 6:35 pm #1470968Hi,
Thanks for your patience, for your team page this css seems to help:#top #main .av-layout-tab-inner { overflow: visible !important; }
but I was not able to find a solution for your first page, I tried many different ideas, and couldn’t find the cause.
Best regards,
MikeNovember 11, 2024 at 11:36 am #1471071Hi Mike,
many thanks! Your css works but causes huge white spaces on an other page with a tab section. I solved this with a restriction to the specific .page-id
(anyhow I wonder why it works when you click on the second tab and go back to Team-tab)The first page problem seems to be a similar issue. If I put the column including the accordeon element outside of the tab section the expansion of the details works. I applied the overflow: visible !important; to this page too and now there is more content visible but not all. Any idea to that?
And maybe you have an actual solution for a deep link to a tab section including jumping to the section and open the tab both.
Thanks again
StefanNovember 11, 2024 at 5:05 pm #1471099Just experienced: now with overflow:visible if you open an ajax portfolio the portfolio overview is cut again…
November 12, 2024 at 2:25 pm #1471154It’s strange, on mobile there are still huge white spaces at the bottom of the tab sections. It seems that the max-height of .av-tab-section-outer-container is generated dynamically, but under which criteria?
November 15, 2024 at 5:52 pm #1471428Help is pretty much welcome!
November 16, 2024 at 4:15 pm #1471471Hi,
Thank you for your patience but I’m not able to view your page now, is a login required now?Best regards,
MikeNovember 16, 2024 at 5:17 pm #1471474Hi MIke,
as we are live now you can look at https://chiway.ch or login to the development site (see private content)
Thanks, StefanNovember 17, 2024 at 4:25 pm #1471501Hi,
Ok thanks, but I have not found a solution, I have asked the team for advice, either I or them will reply when we have more info.
Thank you for your patience.Best regards,
MikeNovember 18, 2024 at 9:44 am #1471544Hi!
Please try to add this script in the functions.php file:
function ava_custom_script() { ?> <script> (function ($) { $(document).ready(function () { $('details[open]').click(function () { var tabId = $(this).closest('.av-layout-tab').attr('id'); console.log(tabId) if (tabId) { var targetToggle = $('[aria-controls="' + tabId + '"]'); console.log(targetToggle) if (targetToggle.length) { setTimeout(function () { targetToggle.trigger('click'); }, 1000); } } }); }); }(jQuery)); </script> <?php } add_action('wp_footer', 'ava_custom_script', 99);
Thank you for your patience.
Regards,
IsmaelNovember 18, 2024 at 6:57 pm #1471592Hi Ismael,
thanks, but the problem is still the same. So maybe its better to go back to the original starting postition:
I removed all overflow:visible from CSS and your script.
(1) You can see here now that only the team tab is cut.
(2) Here the expand doesn’t work in the last accordeon.
Thanks again and best regards
StefanNovember 25, 2024 at 5:04 am #1472100Hi,
Thank you for the update.
We updated the functions.php file and added the modified version of the script. The tab section should now resize correctly when the details tabs are toggled.
function ava_custom_script() { ?> <script> (function ($) { $(document).ready(function () { $('details').on('toggle', function () { if (this.open) { 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', 9999);
Best regards,
IsmaelNovember 26, 2024 at 6:19 pm #1472297Hi Ismael,
many thanks for your effort, but I’m still confused. I guess your code is the solution for expanse/collapse of this:
https://chiway.dadanddaughter.design/diplom-lehrgaenge/akupunktur-und-tuina/#inhalte – and this works!
But when I add your code to functions.php of the live site https://chiway.ch/diplom-lehrgaenge/akupunktur-und-tuina/#toggle-id-11 it doesn’t work in the same way… ?Also: on both sites (development and live) when I open an ajax portfolio entry (https://chiway.ch/chiway-akademie/#team the portfolio overview is cut?
Best regards
StefanNovember 27, 2024 at 7:00 am #1472339Hi,
Thank you for the update.
But when I add your code to functions.php of the live site https://chiway.ch/diplom-lehrgaenge/akupunktur-und-tuina/#toggle-id-11 it doesn’t work in the same way… ?
It seems to be working as expected. The script should force the tab section to resize when the details or summary tab is clicked. Could you provide a short video clip of what is happening on your end?
Also: on both sites (development and live) when I open an ajax portfolio entry
If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
Best regards,
IsmaelNovember 28, 2024 at 4:46 pm #1472524Hi Ismael,
I’m sorry, I checked now again on the live site and it really works as expected (maybe due to caching I didn’t see it the first time).
So please close this thread. For the other issues I open new ones.
Many thanks for your support and best regards
Stefan -
AuthorPosts
- The topic ‘Issues with container height’ is closed to new replies.