-
AuthorPosts
-
January 27, 2016 at 9:01 pm #573248
Seeking to change the following code :
element.style {
max-height: 643px;
}to: actual image size….
If I “line it out” in browser “Inspect Image” all is perfect…
I attempted to add the element style in the css box as:
element.style {
max-height: 1623px;
}And it has no effect.??
Thanks for your assistance.
Rickster_192January 28, 2016 at 3:01 am #573418Hi Rick!
Your using the nextgen gallery there. You’ll need to contact them to figure out how to change the images sizes.
Cheers!
ElliottJanuary 28, 2016 at 4:38 pm #573833I have also tried using the standard lightbox built into Enfold…
I have no issue removing & not using NextgenCan you please advise on how to change the code from the Enfold files?:
element.style {
max-height: 643px;
}to: actual image size….
If I “line it out” in browser “Inspect Image” all is perfect…
I attempted to add the element style in the css box as:
element.style {
max-height: 1623px;
}January 28, 2016 at 4:40 pm #573834The page using enfold gallery is in private content
January 28, 2016 at 5:02 pm #573856Hey!
Please add following code to Functions.php file in Appearance > Editor
add_filter( 'avf_avia_builder_masonry_lightbox_img_size', 'enfold_customization_change_popup_size' ); function enfold_customization_change_popup_size( $size ) { return 'fullsize'; }
Best regards,
YigitJanuary 28, 2016 at 6:32 pm #573945No changes??? ;-<
January 30, 2016 at 8:43 am #574930Hey!
We are working on your issue please wait while we update the result soon.Please add the below code in Appearance > Editor > functions.php
it removes the inline style of max-height for the lightbox images so they show up in original size if you still have issue please revert back with admin access to your wordpress site in private content so we can login as admin and take a look.
function originalHeight(){ ?> <script> jQuery(window).load(function() { jQuery('.mfp-figure').find('img').each(function() { jQuery(this).css("max-height",""); }) }) </script> <?php } add_action('wp_head', 'originalHeight');
Cheers!
Vinay- This reply was modified 8 years, 10 months ago by Vinay.
January 30, 2016 at 6:54 pm #575054Still no Change.. images are still displaying
Added both lines of code to the function.php:add_filter( ‘avf_avia_builder_masonry_lightbox_img_size’, ‘enfold_customization_change_popup_size’ );
function enfold_customization_change_popup_size( $size ) {
return ‘fullsize’;
}function originalHeight(){
?>
<script>
jQuery(window).load(function() {
jQuery(‘.mfp-figure’).find(‘img’).each(function() {
jQuery(this).css(“max-height”,””);
})
})
</script>
<?php
}
add_action(‘wp_head’, ‘originalHeight’);January 30, 2016 at 8:23 pm #575079Hey!
We would love to help you but sorry we can’t access your site due to some security issue.
Regards,
VinayJanuary 31, 2016 at 12:26 am #575114Please see private notes
January 31, 2016 at 6:57 am #575171Hi!
Please see private content
Best regards,
Vinay- This reply was modified 8 years, 9 months ago by Vinay.
January 31, 2016 at 3:24 pm #575306Hi Vinay.. Country Opened.
January 31, 2016 at 8:19 pm #575397Hi!
To help you anyone of us as quick as possible please also add Greece.
I will be online to maintain the task for repliesBest regards,
BasilisJanuary 31, 2016 at 8:59 pm #575421February 1, 2016 at 5:30 pm #575912Hi!
We are working on your ticket please wait while we update the results here soon.We almost had everything working correctly but unfortunately your server went down and the site is giving a 500 server error
Please let us know when the site is back up so we can finish this installation.
function originalHeight(){ ?> <script> jQuery(window).load(function() { jQuery('.lightbox').on('click',(function() { jQuery('.mfp-figure').find('img').each(function() { jQuery(this).css("max-height",""); }) })); jQuery('.mfp-arrow').on('click',(function() { jQuery('.mfp-figure').find('img').each(function() { jQuery(this).css("max-height",""); }) })); }) </script> <?php } add_action('wp_head', 'originalHeight');
Regards,
Vinay- This reply was modified 8 years, 9 months ago by Vinay.
February 1, 2016 at 10:09 pm #576037Wordpress CRASHED
February 1, 2016 at 10:13 pm #576041I just removed the following lines of code (below) from function.php and the site came back…
add_filter( ‘avf_avia_builder_masonry_lightbox_img_size’, ‘enfold_customization_change_popup_size’ );
function enfold_customization_change_popup_size( $size ) {
return ‘fullsize’;
}/*
* Lightbox image full size
*/jQuery(window).load(function() {
jQuery(‘.lightbox’).on(‘click’,(function() {
jQuery(‘.mfp-figure’).find(‘img’).each(function() {
jQuery(this).css(“max-height”,””);
console.log(‘ image was clicked’);
})
}));
})
jQuery(‘.mfp-arrow’).on(‘click’,(function() {
jQuery(‘.mfp-figure’).find(‘img’).each(function() {
jQuery(this).css(“max-height”,””);
console.log(‘ arrow was clicked’);
})
}));February 1, 2016 at 10:15 pm #576042Please keep me posted…
ThanksFebruary 1, 2016 at 11:52 pm #576118Hi again!
Thanks, We will update you soon.There seem to be a server error 500 this error is not related to wordpress. Please check with your hosting company.
Regards,
Vinay- This reply was modified 8 years, 9 months ago by Vinay.
February 2, 2016 at 1:37 am #576137Thanks but….
I was able to view the site from the fron end as well as log into the WP admin??February 2, 2016 at 11:54 am #576373Hi!
We are working on your ticket please wait while we update the results.We have added the feature you requested for the thumbnails. Since your images are large it will be the original size on the mobile too just check on the phone.
If the main purpose is to display the product ID you can do that by adding it as Image Caption that way the whole image will be visible as well as the Product ID at the bottom of the image.
let us know if you like it to be full size or you like to add the product ID’s as image captions ?
// lightbox fullsize function lightbox_fullsize(){ ?> <script> jQuery(document).ready(function() { jQuery('.avia-gallery-thumb').on('click',' a',function(){ jQuery(document).find('.mfp-wrap figure img').css("max-height",""); console.log(' child Lightbox img '); }); }); </script> <?php } add_action('wp_head', 'lightbox_fullsize');
Regards,
Vinay- This reply was modified 8 years, 9 months ago by Vinay.
February 2, 2016 at 3:37 pm #576488Looks like we are very close to fixing this issue..
Please look at catalog on the nav bar… After images load, single click on image opens light box in perfect size….
If you click on the image or use < or > (next or back) the image reverts to the smaller size… after closing the light box…Single click on any image again opens in perfect size…. If you click on the image or use < or > (next or back) the image reverts to the smaller size.
Can we make it so the click on the image while the light box is open… or use right & left arrows… it proceeds to next image in full size ??
Thanks
RickFebruary 2, 2016 at 4:27 pm #576530Hey!
Yes we can make it that way but it requires more customization. Please give us more time to work on this and we will surely help you customize it just like you want it.
Regards,
VinayFebruary 4, 2016 at 12:01 pm #577710Hi!
We have update the site with the new code and everything looks good to me. Please check it out and let us know how you like it :)
Below is the modified code in functions.php
// lightbox fullsize function lightbox_fullsize(){ ?> <script> jQuery(document).ready(function() { jQuery('.avia-gallery-thumb').on('click',' a',function(){ jQuery(document).find('.mfp-wrap figure img').css("max-height",""); }); jQuery(document).on('click','.mfp-arrow',function(){ setTimeout( function(){ jQuery(document).find('.mfp-wrap figure img').css("max-height",""); }, 180); }); }); </script> <?php } add_action('wp_head', 'lightbox_fullsize');
Cheers!
Vinay Kashyap -
AuthorPosts
- You must be logged in to reply to this topic.