Logo Swap?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2304
    anchormd
    Member

    Is there a way to swap logo images from static (when all the way scrolled up) to when the navigation line become sticky (as you scroll down)? I would love to be able to use a different form of our logo as it becomes sticky.

    Thank you!

    #2330
    livemesh
    Keymaster

    Yes, it is possible. Pls add the following JS to the js/main.js file at line number 79 this way –

    handler: function (direction) {
                            if (direction == "down") {
                                $("img.standard-logo").attr('src','http://yourdomain.com/sticky-logo.png');
                            }
                            else {
                                $("img.standard-logo").attr('src','http://yourdomain.com/regular-logo.png'); /* Restore back the old logo when moving up */
                            }
                            if (lavaLamp !== null) {
                                lavaLamp.moveLava();
                            }
                        }
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Extinct Theme Support’ is closed to new topics and replies.