-
AuthorPosts
-
October 11, 2018 at 10:39 am #1020254
Hi
this is following on from this support thread: https://kriesi.at/support/topic/ajax-window-stopped-working/
there is a lot of erroneous information contained in that thread so better to start again.
The original request was this:
I want the preview items to appear underneath the flags NOT on top.
I was provided with this code to do that (see end) BUT this code is what is breaking the site.
I tried the site this morning and it was no longer working again on mobile phones and I assume safari so I removed that code and it worked fine again, so it is that code, consistently.
I was suggested to try lots of things with caching etc but it’s just something in that code not anything else that is giving the problem.
I have had to switch back to the normal functionality – but if you look at that page you will see that when it opens an item you can no longer see the other items in the tab and whichever way you set the height of the tab you end up either not being able to click on items or a load of space underneath which is no good.
basically the tabs and also this ajax gallery do not work very well or not in the combination I am trying because the theme cannot seem to handle this and something so simple as having the item below the thumbnail – fairly standard for an ajax gallery I would have thought – becomes a major problem.
I had to pull that code today as my client was showing the site today in a big meeting and that code is making the site just not work. I am losing lots of time here…
anyway is it possible to take another look at that code and see where the issue is, or just say that this is not going to work and I will try some other route as at present Enfold is not helping me :)
many thanks!
<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/function ava_custom_script_portfolio_preview() {
?>
<script>
(function($) {
$(document).ready(function() {
$(‘.grid-sort-container’).each( function() {
var preview = $(this).prev(‘.portfolio_preview_container’);
var sort = $(this);
preview.insertAfter(sort);
});
});
})(jQuery);
</script>
<?php
}
add_action( ‘wp_footer’, ‘ava_custom_script_portfolio_preview’, 9999 );function av_larger_quick_css() {
echo ‘<style>#avia_quick_css .avia_control textarea {
min-height: 400px;
}
.avia_sidebar_active #avia_quick_css .avia_description {
width: 30%;
}
.avia_sidebar_active #avia_quick_css .avia_control {
width: 70%;
}
</style>’;
}
add_action(‘admin_head’, ‘av_larger_quick_css’);//set builder mode to debug
add_action(‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug()
{
return “debug”;
}add_action(‘wp_head’, ‘ava_auto_resize’);
function ava_auto_resize(){
?>
<script>
(function($){
var int = window.setInterval(function(){
$(window).trigger(‘resize’);
$(window).trigger(‘av-content-el-height-changed’);
}, 1000);
})(jQuery);
</script>
<?php
}October 17, 2018 at 12:30 pm #1022719Hey smoothbob,
Thank you for using Enfold. We try to help as much as possible.
Changing the behaviour and function of elements might have impact on other elements and stylings and might break the page as a result. It needs lot of testing to ensure it is working on all devices and in all situations.
This is bejond ths scope of support and is customization.
Sorry we are not able to help you this time.
Best regards,
Günter -
AuthorPosts
- You must be logged in to reply to this topic.