Skip to content

Changing the page title in WordPress

//CHANGE POST TITLE function custom_modify_title( $title, $id = null ) { return 'CUSTOM '.$title; } add_filter( 'wp_title', 'custom_modify_title', 10, 2 ); add_filter( 'the_title', 'custom_modify_title', 10, 2 ); Change depending on post type //CHANGE POST TITLE add_filter('the_title','custom_modify_title2'); function custom_modify_title2($data){ global $post;…

Mehr Lesen

How to properly enqueue JQuery UI in WordPress

Wordpress comes along woth many JQuery libraries that are for performance reasons obviously not entirely loaded. But what it you want a custom script to use some of the elements. Then it would be great to use the basic package…

Mehr Lesen
An den Anfang scrollen