Adding page Title in a custom coded page

function my_doc_title($title, $separator){ if(is_author()) // <- replace this with your custom page; maybe is_page_template(‘myprofile.php’) ? $title = get_the_author_meta(‘display_name’, get_query_var(‘author’)).$separator.get_bloginfo(‘name’); return $title; } add_filter(‘wp_title’, ‘my_doc_title’, 10, 2); (functions.php)

Document.body.scrollTop in WordPress

It would seem that something in WordPress causes a virtual revert to a standards that require cross-browser compatibility, making the same code not work inside and outside WordPress. However, with some code to handle browser-differences (and still avoiding using libraries), the following is what viewport.js looks like now: function height() { if( typeof( window.innerWidth ) … Read more