Before you ask please READ THIS

Layout hidden by default in single album view

edited May 2013 in Hypershot Posts: 38
I would like an opinion about entitled feature : could an Album being displayed with the layout hidden by default, I find it's giving more impact to showcased works when layout is hidden on arrival. As you ApolloGuys provided enough features to browse pictures without needing much more display, would that be a easy/possible trick to code ? Launching the click function on page complete load ? Or after a very short delay timer 1000ms so that the visitor could see the layout disapearing (= knows it exist) ?

I'll be very happy to have some help about that :)
Thanks for your attention.

Comments

  • AirAir
    Posts: 10,970
    Hi:-)

    1. Use this plugin http://wordpress.org/plugins/custom-javascript-editor/
    2. Go to Appearance -> Custom JavaScript
    3. Add this code there:
    
    jQuery(document).ready(function(){
    
        var fs_switch = jQuery('#switch-glass');
    
    	if(fs_switch.length  && jQuery('body').hasClass('single-album')){
        	setTimeout( function(){ fs_switch.click(); }, 3000);
    	}
        
    });
    
    
    With regards.
  • Posts: 38
    Hello :)

    In case you doubt, it works flawlessly :)
    I'll en-fat you with donuts for that ahah !

    Thanks you so much !
  • AirAir
    Posts: 10,970
    Paul said: I'll en-fat you with donuts for that ahah !
    Thanks, there is no obligation to do that, but if you like I don't mind;-)

    If you are happy with this theme please don't forget to rate us on ThemeForest - it helps us a lot! Thanks!

    With regrads.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion