Jump to content

[Resolved] Bxslider not working


Trudy
 Share

Recommended Posts

Welcome Trudy! Glad to see you made it to the forum.

Let's review a few things about BXSlider:

In the skin template main.php, near the bottom, there should be at least this:

<script src="{$STORE_URL}/skins/{$SKIN_FOLDER}/js/vendor/jquery.bxslider.min.js" type="text/javascript"></script>

Then, later in the code:

<script>
   {literal}
   $('.bxslider').bxSlider({auto:true,captions:true});
   {/literal}
</script>

Then, in your Homepage document (typical where the images are), there must be this:

<ul class="bxslider">

Note the class value.

Finally, make sure that the file exists where the <script src> tag says it is.

If, for some reason, javascript crashes, then this slider effect may not start. So, we need to make sure of that.

 

Link to comment
Share on other sites

Ok, yes, it's offline.

In order to see what may be going on, we will need to see the store online.

One way to do this is to send me a PM with admin credentials. You can create a new admin with absolutely no permissions what-so-ever.

But being a logged-in admin, the storefront will be viewable.

 

Link to comment
Share on other sites

I see that you are using the eTone skin. This skin does not come with the BXSlider plugin.

If you are running CC6, then you have the Foundation skin available.

Find the file:

/skins/foundation/js/vendor/jquery.bxslider.min.js

Copy to the folder:

/js/plugins/

Find the file:

/skins/foundation/css/jquery.bxslider.css

Copy to the folder:

/js/styles/

I also do not find the following, so be sure to add it:

In /skins/e-tone/templates/main.php, find near the bottom:

<![endif]-->
{/literal}
  
{if $COOKIE_DIALOGUE}


Change to:

<![endif]-->

<script>
$('.bxslider').bxSlider({auto:true,captions:true});
</script>

{/literal}
  
{if $COOKIE_DIALOGUE}

 

I now see that the files to have been copied over (JS and CSS) are where they are supposed to be. That leaves the edit to the template file.

After having edited a template file, be sure to clear the cache (admin, Maintenance, Rebuild tab, Clear Cache).

Link to comment
Share on other sites

  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...