/* Here I am writing a sample jQuery to hide the navigation menu You can write your own jQuery for this content */ //Hide Navigation bar jQuery(\".navbar.navbar-default\").hide(); "; //Append Custom JS with HTML $html = $content . $customJS; //Return customized HTML return $html; }