篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html Del Mar高级页脚相关的知识,希望对你有一定的参考价值。
<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>