Prev Button flicks when page loads

Permalink Browser Info Environment
Thanks for the great add-on guys! For some reason when I load my page my prev image button shows up then disappears. Then when I click to go to the next image button it shows up again.

Is there a way for the prev image button to not flicker and just stay off until I click the next image button ?

Type: Discussion
Status: New
bryanlewis
View Replies: View Best Answer
bryanlewis replied on at Permalink Reply
bryanlewis
Anyone? I've noticed that the back button in the gallery is there until all of the picture/page loads. Any ideas would be great.
frz replied on at Permalink Reply
frz
example URL?
bryanlewis replied on at Permalink Reply
bryanlewis
Hummm I'll PM you. I don't really want to advertise that.
ryan replied on at Permalink Best Answer Reply
ryan
Hey Bryan,

So the red arrow shows up until the document.ready javascript call that is fired when the page is loaded. This is done because the the logic to display or not display the arrow is in javascript and it's particularly evident on your site because you're loading some pretty large images before the document is "ready"


I'm not 100% sure this'll work, but you could add this line to your css:
span.ccm-imageSlider-prevBtn {display: none; }
(preferably you'd use a selector, something so this is only on the home page and not for all image sliders..)

If it never shows up again after you start scrolling you'll have to take this approach:

- override the view.php template from the image slider package by copying it to /blocks/image_slider/view.php, then:

Around line 27 where the previous button is output:
add a "display: none; " to the style attribute

That'll make it hidden by default then jquery will just show it when it's needed.
bryanlewis replied on at Permalink Reply
bryanlewis
That worked perfectly! Thanks a great deal Ryan! I appreciate it!

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.