Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #5 from jmr06005/master
Fixing programs page title
  • Loading branch information
jmr06005 committed Feb 15, 2018
2 parents 5ddf370 + 034c094 commit 060ae01
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions uc-abroad.php
Expand Up @@ -129,8 +129,28 @@ function program_archive_page_template( $archive_template ) {
}
return $archive_template;
}

add_filter( 'archive_template', 'program_archive_page_template' );

//Modify title
add_filter( 'pre_get_document_title', 'abroad_title', 50);
add_filter( 'wds_title', 'abroad_title', 50);

function abroad_title( $title ) {
//echo $title; exit;
if ( is_post_type_archive('program') ) {
$title = 'Programs | '.get_bloginfo( 'name' );
}
return $title;
}

//Add title tag theme support
add_action( 'after_setup_theme', 'graduateschool_title_tag' );
function graduateschool_title_tag() {

add_theme_support( 'title-tag' );
}


function abroad_scripts() {
wp_enqueue_script( 'abroad-js', plugin_dir_url( __FILE__ ) . '/abroad.js', array( 'jquery' ));
Expand Down

0 comments on commit 060ae01

Please sign in to comment.