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 #2169
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
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.
Kan Nguyen6 years, 1 month ago #2205This reply has been marked as private.6 years, 1 month ago #2254
Please open file noo-property.php: noo-citilights/framework/admin/noo-property.php
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.
Kan Nguyen6 years, 1 month ago #2273
( Oups... I copy-pasted my answer from webmail... sorry for the tag soup, could you delete my previous msg ? )
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
but no enqueueing for nivo-lightbox.
So I added it right after :
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 !
Attached in case you need further investigation: the original noo-property.php file I use, before I started customizing code6 years, 1 month ago #2287
I 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.
Kan Nguyen6 years, 1 month ago #2449
I 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.
You must be logged in and have valid license to reply to this topic.