NooTheme Premium WordPress Theme › Forums › CitiLights › No lightbox gallery on property page
- This topic has 6 replies, 2 voices, and was last updated 6 years, 1 month ago by
monsieurk.
-
AuthorPosts
-
6 years, 2 months ago #1994
Congratulations for this impressive theme.
I installed it on my real estate website, but the lightbox effect does not work on property pages. Is there a setting I must turn on somewhere in back office ?
I checked the nivo-lightbox files were present in framework/vendor/nivo-lightbox/ ,
I found in framework/functions/noo-enqueue-***.php they are supposed to be included,
but the nice popup effect still does not work on property pages.What else can I check ? Where can this come from ?
6 years, 1 month ago #2169Hello,
I'm sorry for late response.
Can you give me URL to your site, I'll check it for you. If your site is on local, please check one of the following:
- These js file is loaded on your page: http://<your site url>/wp-content/themes/noo-citilights/framework/vendor/nivo-lightbox/nivo-lightbox.min.js
- There is javascript error on the property detail page.
You can use the developer tool on your browser ( F12 with Chrome, Firefox ) to check this. Please let me know if you see any problem.
Best regards,
Kan Nguyen
6 years, 1 month ago #2205This reply has been marked as private.6 years, 1 month ago #2254Hi,
Please open file noo-property.php: noo-citilights/framework/admin/noo-property.php
Function: display_detail
Line around 3472 ( differ from version ).Then check if at the start of that file you see these code:
<code>wp_enqueue_script('noo-property-map'); wp_enqueue_script('noo-property'); wp_enqueue_script( 'vendor-nivo-lightbox-js' ); wp_enqueue_style( 'vendor-nivo-lightbox-default-css' );</code>
The two lines with lightbox is used to load Nivo Lightbox script and default style.
If you see these code and it still doesn't work, please give me FTP account, I need it to check the problem on your code.
Best regards,
Kan Nguyen
6 years, 1 month ago #2273( Oups... I copy-pasted my answer from webmail... sorry for the tag soup, could you delete my previous msg ? )
Hi Ken,
I added some lines of code in this file to customize the appearance of some mandatory informations in my country, but even before I touched it, the file noo-citilights/framework/admin/noo-property.php was only 3164 lines long;
and in that file the function display_detail only mentions “lightbox” for generating the image gallery code :
lightbox-item” data-lightbox-gallery=”gallert_” href=…>
At the beginning of the function I can see
wp_enqueue_script(‘noo-property-map’);
wp_enqueue_script(‘noo-property’);
but no enqueueing for nivo-lightbox.
So I added it right after :
wp_enqueue_script(‘vendor-nivo-lightbox-js’);
wp_enqueue_style(‘vendor-nivo-lightbox-default-css’);
And … IT WORKS ! Thanks for your efficient help, this is great, but I am still worried : why were those 2 lines absent from the noo-property.php source file I downladed ? Is there something wrong with the noo-citilghts theme version I am using ? … Please tell me if I should expect other misteries !
Best Regards,
Romain
Attached in case you need further investigation: the original noo-property.php file I use, before I started customizing code
6 years, 1 month ago #2287I think the reason is you're using an older version of our theme. I remember having a bug about it but it's much older version, I think it's version 1.0.x while we have version 1.6.2 now.
It's great that it works on your site. If you have problem, please let me know.
Best regards,
Kan Nguyen
6 years, 1 month ago #2449I bought the theme a couple of months ago, I did not imagine you were moving so fast ! Thanks for your help : my website is ok now.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.