Okay
  Public Ticket #3119498
Error caused by layer slider
Closed

Comments

  • Kristopher Stocker started the conversation

    We recently swtiched from layer slider to slider revolution. (because of the video capabilities) Layer slider has left script on our pages where the slider bar used to be, and we believe may be affecting slider revolution now.  (the videos are not working properly due to an error)

        We think the BeTheme has somehow selected layer slider as the default slider app which is causing issues. If you go to our homepage you will see a blank bar above the slider. This is where layer slider used to be. Then if you go to the "Our Team" or "Contact Us" pages you will also see a blank slider bar above our current slider.

    Here is a the chain of events from our end.

    At one point in time during the slider app transition we had both apps installed to the website. You could see two slider bars on the front page. One for layer slider and one for slider revolution. On some of the pages there would be a blank (black) slide bar where layer slider used to be.  

    Eventually we deactivated layer slider and deleted it from our website. The blank slide bar became a script that said something like {layerslider:id} something like that. It's currently not there so Im not 100% what the script said. Anyway now its back to just a blank bar where layer slider used to be. 

    Another reason I believe layer slider was selected as a default is that a layer slider bar popped up on pages that we didn't manually insert a slider to on the backend.

    The question is, is there a way to deactivate layer slider as the default app in betheme? 

    I saw a thread that had a similar problem and the suggestions was to insert an html code that disabled layer slider on the back end. Im hoping there is another solution.  Please let us know any insight. Thank you.

  •  73
    John replied

    Hi Kristopher,

    Thank you for getting in touch with us. My name is John, and I'm happy to assist you today. I appreciate your patience while we've been working towards your ticket.

    I've checked your site, and the issue isn't related to LayerSlider. When a plugin is disabled (in this case, LayerSlider), it wouldn't be able to make any changes on your site. 

    The leftover code is called a shortcode. It's one of the many ways you can embed plugin content in WordPress. It's not a script, and you don't have to worry about inserting an HTML code. If someone suggested that, it was a bad recommendation. 

    Your theme likely used the shortcode to embed LayerSlider, and it's possible that it remained there even when the plugin was disabled until you removed it since it's a theme feature independent from LayerSlider. It seems now that everything is okay on that front.

    From what I can tell, the blank part is the theme's header area, and it's not related to LayerSlider. It's possible that it would hide itself in other circumstances, so you may need to check your theme settings. It's also possible that BeTheme would display that part of the template in all cases. The difference may be that LayerSlider was inserted into that part of the theme, while Slider Revolution is inserted in a different way at another place. I'd suggest looking for a "Header Slider" section when you try to edit a page.

    LayerSlider is definitely not interfering with Slider Revolution, and it's not even installed at the moment so we can rule that out completely. The errors you receive are related to CORS, a web browser security feature that specifies from which domains a website can load content. There's no restriction in place by default, so it's been set somewhere previously. In your case, it's affecting the video, which is coming from a CDN service with a different domain name. That's probably the reason why you experienced issues with both LayerSlider and Slider Revolution. There's no known issue in LayerSlider that affects videos; you shouldn't have experienced it in the first place.

    To change CORS settings, you should either check any security or site optimization solution you may use or contact your web hosting company.

    Best Regards,
    John | Kreatura Dev Team

  • Kristopher Stocker replied

    John,


    Thank you for the detailed reply. I'll take a closer look at everything you mentioned to see if any of that helps. I wanted to get this reply out to you right away. 


    I started seeing the script pop up again today. If you go to this page you can see it  https://stjohnsdogwalkers.com/services/  

    at the very top a bar will flash that says this exactly for about half a second. [layerslider id="2"]


    It just did it about 20 times consecutively at the top of the screen so hopefully you can check it out while it's still there. Just keep refreshing the page and it flashes every time.


    Thank you for looking into this.

    Kris


  • Kristopher Stocker replied

    John,


    Quick thought. If that blank bar was the header bar then shouldn't the bar also be on our  /services page?

    Instead of the "header" bar in this spot we have the flashing script.


    Kris


  •  73
    John replied

    That bar may be displayed when you enable something on the page or in your theme settings. It likely depends on certain factors, like if you choose a header area content, for example, a slider. The theme author or their documentation may offer further insights on this.

    I can see the shortcode. It's added by your theme, and it's displayed because LayerSlider is disabled/removed, so WordPress cannot find the content associated with it. Normally, these small text snippets are replaced with the actual content they are referencing, which is no longer available in your case. You can safely remove it if you see it anywhere when editing the page, or look for a slider chooser where you can deselect it from being added to your page.

    Best Regards,
    John | Kreatura Dev Team