WordPress.org

Ready to get started?Download WordPress

Forums

Galleria Galleria
default to thumbnail view (3 posts)

  1. kathyforer
    Member
    Posted 2 years ago #

    In the Twelve theme, I'd like the default view to be thumblinks as in https://getsatisfaction.com/galleria/topics/twelve_theme_how_to_have_thumbnails_page_show_on_load_instead_of_1st_image
    Where would I put the extend function? I've guessed with galleria.js and galleria.twelve.min.js and am coming up with a grey screen or no change at all.

    Thanks.

    http://wordpress.org/extend/plugins/galleria-galleria/

  2. kathyforer
    Member
    Posted 2 years ago #

    I also tried adding

    function galleria_thumblinks(){
     echo '<script type="text/javascript">
    $(document).ready(function() {
    	Galleria.loadTheme('/galleria-themes/galleria.twelve.min.js');
    	$("#gallery").galleria({
    		width:720,
    		height: 520,
    	});
    Galleria.ready(function() {
        this.$('thumblink').click();
    });
    </script>';
    }
    add_action('wp_head', 'galleria_thumblinks');

    to my Thematic childtheme but can't get rid of a syntax error expecting ',' or ';' seemingly focused on this.$('thumblink').click();

  3. kathyforer
    Member
    Posted 2 years ago #

    I was able to get this to work by adding

    Galleria.ready(function() {
        this.$('thumblink').click();

    to the galleria-galleria.php file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.