Hello There,
The idea is to take the page title, replace some of their element and show it into class div "projectname".
Currently, i have the — replace by Projet - but i would like to delete the Sitename and not show it into "projectname" div ( but still show it into page title).
Page title is set like this
<?php
$title = get_bloginfo('name');
if(!is_front_page()){
$title .= ' — '.trim(wp_title('',false));
}
?>
My script is set like this
Frontend.GlobalEvents.on("newpage",function(e,l,t){
if("project"===l){
var a=document.title.replace("—","<i>Stuff - </i>");
jQuery("li.projectname").html(a)}
The idea is to take the page title, replace some of their element and show it into class div "projectname".
Currently, i have the — replace by Projet - but i would like to delete the Sitename and not show it into "projectname" div ( but still show it into page title).
Thanks