Support » Plugin: Galleria Galleria » [Plugin: Galleria Galleria] default to thumbnail view

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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();

    I was able to get this to work by adding

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

    to the galleria-galleria.php file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Galleria Galleria] default to thumbnail view’ is closed to new replies.