Comments (2)
Hey man, I had the same issue. I was able to remedy the problem by going into jquery.bxSlider.js and adding a <span>
around the pager number inside of the <a>
tag. In my CSS document, I simply used {display: none;}
on that <span>
and it worked great. Basically, you're hiding the <span>
while the <a>
tag still shows. You can put a background color or an image behind the <a>
tag. Here's how I did it:
Search in jquery.bxSlider.js for this
<a href="" class="pager-link pager-'+i+'">'+i+'</a>
Then, replace that with this
<a href="" class="pager-link pager-'+i+'"><span>'+i+'</span></a>
In your CSS, do this
.pager-link { padding: 0px 10px; background-color:#0066FF; } .pager-link span { display: none; } .pager-active { background-color: red;}
I hope this helps!
RB :-)
from bxslider-3.
Hello Ryan
Excelent!!! Thanks for your help!!! I had a problem similar of Josh Davies!!
Just a sugestion:
In your CSS, do this
.pager-link {} /* Delete paddings to avoid extra spaces
.pager-link span { display: none; }
.pager-active { background-color: red;}
In this part of the current CSS, do this (then all you need to do is setup width and height according your background image size!!! I think itΒ΄s easier!!! )
.bx-pager a {
margin-right: 5px;
color: #fff;
display:inline-block; /* Add this line /
width:20px; / Add this line /
height:20px; / Add this line _/
/_padding: 3px 8px 3px 6px; /* Remove this line /
font-size: 12px;/ /* Remove this line */
zoom:1;
background: url(bx_styles/gray_pager.png) no-repeat 0 -20px;
text-decoration:none;
}
:)
I apreciate a lot your help finding that bit of code inside of jquery.bxSlider.js.
Regards
Nuno
from bxslider-3.
Related Issues (20)
- bxSlider 4.1.2 freezes on touch devices
- bxslider showing blank slides
- Vimeo videos not autoplaying in the slider
- Bxslider not loading HOT 1
- goToSlide(); not working in mode vertical HOT 1
- Multiple cloned sliders being generated with multiple sliders on the same pages
- Hi all, bx slider is not working within a fancybox. can any one help me with this issue?
- reloadSlider() keeps adding onto itself HOT 1
- Issue with colorbox + smoothzoom
- Page refresh brings me to the slider HOT 1
- Removing "alt" from bx-clone (duplicated images when infinite loop is true)
- Touch swipe stops slideshow HOT 3
- bxslider
- Bx slider
- Missing ; semi-colon at the end of jquery.bxSlider.min.js
- fade mode bug > same slide and onSlideAfter not working HOT 1
- Fade mode breaks width HOT 1
- bxslider swipe issue on mobile
- Rapid clicking next/prev displays incorrect pager item below.
- i am working on translating a WordPress website with theme storevilla and the banner dos not appear in the rtl translation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bxslider-3.