Topic Closed
pinette
2 Posts

Hello,


I have in my template the code: <php common: AddColorBox ();?> typed.


But I must give each photo for this effect the code: name="gallery"  or  name="gallery" rel="gallery_gallery" inflict will not work Colorbox effect.


My question:

how can I colorbox-effect to add to all sides, without to write this code: name = "gallery"> rel = or indented "gallery_gallery" for each photo?


Thanks

sam

PS. I use gpEasy_2.3.3

Edited: 11 years ago#2866

Josh S.
2K Posts
304K Downloads
16 Themes
18 Plugins

You could add some custom javascript to open up colorbox.

    <script>
        $(document).ready(function(){
            $(".class_of_your_choice").colorbox();
        });
    </script>

Then, any links you want to open with colorbox would need to look like this:

<a href="/path_to_image" class="class_of_your_choice">text of link or other html</a>

Here's some more information about colorbox: http://jacklmoore.com/colorbox/

11 years ago#2870

pinette
2 Posts

Hello navi,

Thanks for your answer . I'll try that.

pinnette

Edited: 11 years ago#2876

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Ennetb├╝rgen (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Websi...

Find out more about our Provider Spotlight

Log In

  Register