Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #980499

    Hi
    how can I make the ajax preview panel open below the item thumbnails instead of above them?

    this was started here by somebody but I do not see the solution

    thanks

    #980890

    Hey smoothbob,

    Thank you for using Enfold.

    Revert the modifications back to default and then use this script in the functions.php file instead.

    function ava_custom_script_portfolio_preview() {
    	?>
    	<script>
    		(function($) {
    			$(document).ready(function() {
    				$('.avia-fullwidth-portfolio').each( function() {
    				var preview = $(this).find('.portfolio_preview_container');
    				var sort = $(this).find('.grid-sort-container');
    				preview.insertAfter(sort);
    			});
    			});
    			
    		})(jQuery);
    	</script>
    	<?php
    }
    add_action( 'wp_footer', 'ava_custom_script_portfolio_preview', 9999 );
    

    You have to remove the browser cache or make sure that the script files are updated.

    Best regards,
    Ismael

    #981066

    Hi Ismael

    thanks for that. I added it to the child theme functions and cleared the cache but it still opens above the thumbnail

    thanks

    Ian

    #981533

    Hi,

    Did you toggle the css/js compression in the Enfold > Performance panel? The same script works on my installation. Please provide a link to the page with the portfolio element.

    Best regards,
    Ismael

    #981636

    Hi

    Delete old CSS and JS files? Is checked.

    here is the link

    thanks

    #981645

    the link again

    #981860

    Hi,

    Thanks for the update.

    The previous script was intended for full width portfolio grid. Please try this one instead.

    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 );

    Post the login details if the script didn’t work.

    Best regards,
    Ismael

    #982094

    perfect. thanks!

    #982731

    Hi smoothbob,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #988732

    you can close this thanks!

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.