rlargett
5/29/2015 - 2:09 PM

Del Mar Advanced Footer

Del Mar Advanced Footer

<script>
//** Add this Script to the Custom Head section in the Additional Footer HTML **//
$(document).ready(function() {

    // ADD CLASS TO HOMEBUTTON ANCHOR TAG SO WE CAN TARGET WITH CSS TO ADD FONTAWESOME HOME ICON
    $('nav#main .container #homeButton').parent().attr('class', 'homeButton');

    // pull home url and add an li to the menu
    var homeUrl = $('nav#main .container a:first').attr('href');
    $('nav#main ul li.first').removeClass('first');
    //$('nav#main ul:first').prepend('<li class="first"><a href="' + homeUrl + '">Home</a></li>');
    $('nav#main ul:first').prepend('<li class="first"><a href="' + homeUrl + '"><i class="fa fa-home"></i></a></li>');

    // remove default footer social media icons and replace with fontawesome
    $('footer a img.facebook').parent().attr('class', 'facebookIcon');
    $('footer a img.twitter').parent().attr('class', 'twitterIcon');
    $('footer a img.linkedIn').parent().attr('class', 'linkedinIcon');
    $('footer a img.youTube').parent().attr('class', 'youtubeIcon');

    //$('.page-team h1, nav#main ul li:nth-of-type(2) li:first-child a').html('About Victor Gray');

});
</script>