WordPress Menu apply Classes and Page Transition (1 post)

  1. arrrg...
    Posted 3 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');
    $('.trans').click(function() {
    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