Jump to content

[Resolved] Deleted Slider - Need help plaese


Chris_St

Recommended Posts

Hi, I thought I was in real trouble here.

I was using the standard welcome page that comes with the installation. There was a slider on it that I wanted to use so I replaced all the images with my own.

Problem was they all aligned left. I attempted to fix this by selecting all the images and then clicked justify. That did not work. I then noticed that there they were set as a bulleted list so I took the bullets off. Now the slider is gone and there are just images stacked in a list format. Putting the bullets back did not work.

I got the slider back by making another installation of Cube Cart, going to the documents and selecting / copying the source in the editor for the home page and then pasting it into my "live" page. The slider is now back but I am also back to images aligning left instead of centred.

Can someone please tell me how to get the images centred?

Regards, Chris 

https://australianartforsale.net/

slider1.jpg

Link to comment
Share on other sites

That positioning is hard coded into the BXSlider javascript.

There is a way to get away from float:left, and that is to have BXSlider "fade" the images.

But, getting away from float:left gets us float:none. I don't have small images to see what this does, but please let us know.

In the skin template main.php, find near the bottom:

$('.bxslider').bxSlider({auto:true,captions:true});

Change to:

$('.bxslider').bxSlider({auto:true,captions:true,mode:'fade'});

These are the options for the BXSlider: http://bxslider.com/options

Link to comment
Share on other sites

The file CubeCart uses is /skins/foundation/js/vendor/jquery.bxslider.min.js

However, finding and editing something specific in mini-fied javascript is incredibly difficult.

I suggest you download the BXSlider package, add the regular javascript file into this folder. Open this file in a programmer's text editor and search for the word 'float'. That code will be where you will add/edit your custom CSS rules.

Rename the existing jquery.bxslider.min.js to something else, rename the regular file to jquery.bxslider.min.js, then force your browser to reload all the page's resources (images, css, javascript -- usually by CTRL-F5) to get the new file.

 

Link to comment
Share on other sites

Should have. It did for my installation.

It could be because your browser is still using the unedited cubecart.default.css file it has in its internal cache. Please confirm you have forced your browser to reload the page's resources.

 

Did you remove what was added? I don't see it in the cubecart.default.css file I fetched from your site.

Link to comment
Share on other sites

I had removed it as it seemed to be doing nothing, however you were correct.

I had cleared history and used Ctrl F5 and also tested it in Opera instead of Chrome (which I normally use) but forgot I have Cloudflare installed and needed to purge the cache there. I have now done this and it all images are centered now, so problem solved.

 Thanks for all your assistance, Chris

https://australianartforsale.net

 

Link to comment
Share on other sites

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.

×
×
  • Create New...