lightbox not loading
-
I installed the simple lightbox plugin and selected the ‘enable in widget option’ but it does not load. I used the siteorigin image widget and linked the image but the lightbox does not launch.
The page I need help with: [log in to see the link]
-
Hi, please provide more details so that your issue can be fully evaluated:
- Are you using a page builder plugin? If so, please provide a link to the plugin.
- Is the SiteOrigin widget added to the post itself, or a site-wide widget area? Please provide screenshot of the widget’s settings.
- Screenshot of SLB’s settings page
- Code used in theme template used for page.
Thank you.
yes I am using the site origin page builder:
https://www.saminadagger.com/staging/wp-admin/options-general.php?page=siteorigin_panelsyes it an image widget added to the project post itself (I took a screenshot but I don’t have an option here to attach it)
I dont know what ‘SLB’ settings are?
here is the code for the page..
<div id="pl-1603" class="panel-layout" ><div id="pg-1603-0" class="panel-grid panel-has-style" data-style="{"gutter":"30px","row_stretch":"full","cell_alignment":"flex-start","equal_column_height":"no","padding_top":"100px","padding_bottom":"50px","background_image":false,"background_image_position":"center top","background_image_style":"parallax","use_background_video":"","video_overlay":"none","fade_in":true,"pause_after":"120","pause_play_button":true,"pauseplay_xpos":"right","pauseplay_ypos":"top"}" ><div class="siteorigin-panels-stretch panel-row-style panel-row-style-for-1603-0" style="padding-top: 100px; padding-bottom: 50px; " data-stretch-type="full" ><div id="pgc-1603-0-0" class="panel-grid-cell" data-weight="0.5" ><div id="panel-1603-0-0-0" class="so-panel widget widget_sow-headline panel-first-child" data-index="0" data-style="{"background_image_attachment":false,"background_display":"tile","animation_offset":"10","animation_iteration":"1"}" >[siteorigin_widget class="SiteOrigin_Widget_Headline_Widget"]<input type="hidden" value="{"instance":{"headline":{"text":"Novel Excerpt","destination_url":"","tag":"h1","color":"#353535","hover_color":false,"font":"Raleway:500","font_size":"40px","font_size_unit":"px","align":"left","mobile_align":"left","line_height":false,"line_height_unit":"px","margin":false,"margin_unit":"px","so_field_container_state":"closed","new_window":false},"sub_headline":{"text":"","destination_url":"","tag":"h3","color":false,"hover_color":false,"font":"default","font_size":false,"font_size_unit":"px","align":"center","mobile_align":"center","line_height":false,"line_height_unit":"px","margin":false,"margin_unit":"px","so_field_container_state":"open","new_window":false},"divider":{"style":"none","color":"#EEEEEE","thickness":1,"align":"center","mobile_align":"center","width":"80%","width_unit":"%","margin":false,"margin_unit":"px","so_field_container_state":"closed"},"order":["headline","divider","sub_headline"],"fittext_compressor":0.84999999999999997779553950749686919152736663818359375,"_sow_form_id":"8371988986250abbbba749660632375","_sow_form_timestamp":"1649454023815","fittext":false,"so_sidebar_emulator_id":"sow-headline-160310000","option_name":"widget_sow-headline"},"args":{"before_widget":"<div id=\"panel-1603-0-0-0\" class=\"so-panel widget widget_sow-headline panel-first-child\" data-index=\"0\" data-style=\"{"background_image_attachment":false,"background_display":"tile","animation_offset":"10","animation_iteration":"1"}\" >","after_widget":"<\/div>","before_title":"<h3 class=\"widget-title\">","after_title":"<\/h3>","widget_id":"widget-0-0-0"}}" />[/siteorigin_widget]</div><div id="panel-1603-0-0-1" class="so-panel widget widget_sow-editor panel-last-child" data-index="1" data-style="{"padding":"0px 30px 0px 0px","background_image_attachment":false,"background_display":"tile","animation_offset":"10","animation_iteration":"1"}" ><div class="panel-widget-style panel-widget-style-for-1603-0-0-1" ><div class="so-widget-sow-editor so-widget-sow-editor-base"> <div class="siteorigin-widget-tinymce textwidget"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> </div></div></div></div><div id="pgc-1603-0-1" class="panel-grid-cell" data-weight="0.5" ><div id="panel-1603-0-1-0" class="so-panel widget widget_sow-image panel-first-child panel-last-child" data-index="2" data-style="{"class":"wplightbox","background_image_attachment":false,"background_display":"tile","animation_offset":"10","animation_iteration":"1"}" ><div class="wplightbox panel-widget-style panel-widget-style-for-1603-0-1-0" >[siteorigin_widget class="SiteOrigin_Widget_Image_Widget"]<input type="hidden" value="{"instance":{"image":1606,"image_fallback":"https:\/\/www.saminadagger.com\/staging\/wp-content\/uploads\/2022\/04\/NovelExcerpt.jpg","size":"full","size_width":"","size_height":"","align":"default","title_align":"default","title":"","title_position":"hidden","alt":"","url":"https:\/\/www.saminadagger.com\/staging\/wp-content\/uploads\/2022\/04\/NovelExcerpt.jpg","bound":true,"rel":"","_sow_form_id":"5644143266250acd573719205580764","_sow_form_timestamp":"1649770785675","link_title":false,"new_window":false,"full_width":false,"so_sidebar_emulator_id":"sow-image-160310002","option_name":"widget_sow-image"},"args":{"before_widget":"<div id=\"panel-1603-0-1-0\" class=\"so-panel widget widget_sow-image panel-first-child panel-last-child\" data-index=\"2\" data-style=\"{"class":"wplightbox","background_image_attachment":false,"background_display":"tile","animation_offset":"10","animation_iteration":"1"}\" ><div class=\"wplightbox panel-widget-style panel-widget-style-for-1603-0-1-0\" >","after_widget":"<\/div><\/div>","before_title":"<h3 class=\"widget-title\">","after_title":"<\/h3>","widget_id":"widget-0-1-0"}}" />[/siteorigin_widget]</div></div></div></div></div></div>
Hi, some notes for clarification:
Please provide a screenshot of Simple Lightbox’s (SLB) settings page.
Screenshots can be uploaded and shared via any free image hosting service (e.g. Imgur, etc.)
SLB supports standard WordPress widgets. Though another plugin may refer to something as a “widget”, it may not be supported if it is not actually a standard WordPress widget.
I need to see the code for the theme template used for page (not the page’s source from the browser) to fully evaluate your issue.
Thanks.
here is the URL of the requested screenshots – slb and widget settings:
please confirm how I copy the code from the theme template. this code was copied from the example page from the attached screen shot – in edit function:
<div id="pl-1603" class="panel-layout" ><div id="pg-1603-0" class="panel-grid panel-has-style" data-style="{"gutter":"30px","row_stretch":"full","cell_alignment":"flex-start","equal_column_height":"no","padding_top":"100px","padding_bottom":"50px","background_image":false,"background_image_position":"center top","background_image_style":"parallax","use_background_video":"","video_overlay":"none","fade_in":true,"pause_after":"120","pause_play_button":true,"pauseplay_xpos":"right","pauseplay_ypos":"top"}" ><div class="siteorigin-panels-stretch panel-row-style panel-row-style-for-1603-0" style="padding-top: 100px; padding-bottom: 50px; " data-stretch-type="full" ><div id="pgc-1603-0-0" class="panel-grid-cell" data-weight="0.5" ><div id="panel-1603-0-0-0" class="so-panel widget widget_sow-headline panel-first-child" data-index="0" data-style="{"background_image_attachment":false,"background_display":"tile","animation_offset":"10","animation_iteration":"1"}" >[siteorigin_widget class="SiteOrigin_Widget_Headline_Widget"]<input type="hidden" value="{"instance":{"headline":{"text":"Novel Excerpt","destination_url":"","tag":"h1","color":"#353535","hover_color":false,"font":"Raleway:500","font_size":"40px","font_size_unit":"px","align":"left","mobile_align":"left","line_height":false,"line_height_unit":"px","margin":false,"margin_unit":"px","so_field_container_state":"closed","new_window":false},"sub_headline":{"text":"","destination_url":"","tag":"h3","color":false,"hover_color":false,"font":"default","font_size":false,"font_size_unit":"px","align":"center","mobile_align":"center","line_height":false,"line_height_unit":"px","margin":false,"margin_unit":"px","so_field_container_state":"open","new_window":false},"divider":{"style":"none","color":"#EEEEEE","thickness":1,"align":"center","mobile_align":"center","width":"80%","width_unit":"%","margin":false,"margin_unit":"px","so_field_container_state":"closed"},"order":["headline","divider","sub_headline"],"fittext_compressor":0.84999999999999997779553950749686919152736663818359375,"_sow_form_id":"8371988986250abbbba749660632375","_sow_form_timestamp":"1649454023815","fittext":false,"so_sidebar_emulator_id":"sow-headline-160310000","option_name":"widget_sow-headline"},"args":{"before_widget":"<div id=\"panel-1603-0-0-0\" class=\"so-panel widget widget_sow-headline panel-first-child\" data-index=\"0\" data-style=\"{"background_image_attachment":false,"background_display":"tile","animation_offset":"10","animation_iteration":"1"}\" >","after_widget":"<\/div>","before_title":"<h3 class=\"widget-title\">","after_title":"<\/h3>","widget_id":"widget-0-0-0"}}" />[/siteorigin_widget]</div><div id="panel-1603-0-0-1" class="so-panel widget widget_sow-editor panel-last-child" data-index="1" data-style="{"padding":"0px 30px 0px 0px","background_image_attachment":false,"background_display":"tile","animation_offset":"10","animation_iteration":"1"}" ><div class="panel-widget-style panel-widget-style-for-1603-0-0-1" ><div class="so-widget-sow-editor so-widget-sow-editor-base"> <div class="siteorigin-widget-tinymce textwidget"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div> </div></div></div></div><div id="pgc-1603-0-1" class="panel-grid-cell" data-weight="0.5" ><div id="panel-1603-0-1-0" class="so-panel widget widget_sow-image panel-first-child panel-last-child" data-index="2" data-style="{"class":"wplightbox","background_image_attachment":false,"background_display":"tile","animation_offset":"10","animation_iteration":"1"}" ><div class="wplightbox panel-widget-style panel-widget-style-for-1603-0-1-0" >[siteorigin_widget class="SiteOrigin_Widget_Image_Widget"]<input type="hidden" value="{"instance":{"image":1606,"image_fallback":"https:\/\/www.saminadagger.com\/staging\/wp-content\/uploads\/2022\/04\/NovelExcerpt.jpg","size":"full","size_width":"","size_height":"","align":"default","title_align":"default","title":"","title_position":"hidden","alt":"","url":"https:\/\/www.saminadagger.com\/staging\/wp-content\/uploads\/2022\/04\/NovelExcerpt.jpg","bound":true,"rel":"","_sow_form_id":"5644143266250acd573719205580764","_sow_form_timestamp":"1649770785675","link_title":false,"new_window":false,"full_width":false,"so_sidebar_emulator_id":"sow-image-160310002","option_name":"widget_sow-image"},"args":{"before_widget":"<div id=\"panel-1603-0-1-0\" class=\"so-panel widget widget_sow-image panel-first-child panel-last-child\" data-index=\"2\" data-style=\"{"class":"wplightbox","background_image_attachment":false,"background_display":"tile","animation_offset":"10","animation_iteration":"1"}\" ><div class=\"wplightbox panel-widget-style panel-widget-style-for-1603-0-1-0\" >","after_widget":"<\/div><\/div>","before_title":"<h3 class=\"widget-title\">","after_title":"<\/h3>","widget_id":"widget-0-1-0"}}" />[/siteorigin_widget]</div></div></div></div></div></div>
Hi, it appears that the “SiteOrigin Image” widget injects excess whitespace and newlines when creating the image link, which prevents the link from being detected by SLB.
See this existing ticket for more details on the issue and to track its progress.
Several other widgets were tested with SiteOrigin, and only the “SiteOrigin Image” widget appears to be affected. Using any of the other widgets to add image links is recommended (e.g. Image, SiteOrigin Editor, Custom HTML, etc.).
Hi, I switched from ‘siteorigin image’ to ‘image widget’ and all the images load and expand now in SLB! however there is one image that appears smaller in the lightbox than the actual size here:
https://www.saminadagger.com/staging/project/starbucks/Hi, you can disable SLB’s “Resize lightbox to fit in window” option if you want images to be displayed at their original size, rather than be automatically scaled to fit in the browser window.
- The topic ‘lightbox not loading’ is closed to new replies.