WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Menu apply Classes and Page Transition (1 post)

  1. arrrg...
    Member
    Posted 2 years ago #

    Is it possible to apply a class to the anchor tag of a wordpress menu item and not to the list tags that surround the anchor tags?

    because i am wanting to link the wordpress menu to this bit of code in order to create a page transition.

    $(document).ready(function() {
    $('body').css('display', 'none');
    $('body').fadeIn(1000);
    
    $('.trans').click(function() {
    event.preventDefault();
    newLocation = this.href;
    $('body').fadeOut(500, newpage);
    });
    function newpage() {
    window.location = newLocation;
    }
    });

Topic Closed

This topic has been closed to new replies.

About this Topic