Hi there,
We are trying to build a layout where the middle image stays always on top of the other elements around it. It appears that this is feasible for the two elements (images) that are on the top of the website, while the two elements (images) at the bottom stay on top of that middle image.
How can we achieve that the middle image stays always on top?
Best regards
Hey wtechgr,
Thank you for using Enfold.
Please add this in the Quick CSS field:
.home #av_section_1 .flex_column_table:nth-child(3) {
z-index: 99999;
position: relative;
}
Best regards,
Ismael
Thank you so much for your help!
Just one last question please. Is it somehow possible for the landing page to keep the same layout also in smaller resolutions, so that the elemets around always keep the “link” with the logo at the center?
Best regards
Hi,
Please add this in the functions.php file:
add_action('wp_footer', 'ava_new_custom_script');
function ava_new_custom_script(){
?>
<script type="text/javascript">
(function($) {
// disable responsiveness
function a() {
var home = $('body').hasClass('home'),
ww = $(window).innerWidth();
if(!home || ww >= 768) return;
$('html').removeClass('responsive');
}
$(window).load(function() {
a();
});
})(jQuery);
</script>
<?php
}
Best regards,
Ismael