Skip to content

Commit

Permalink
Merge pull request #140 from MITLibraries/pw-60
Browse files Browse the repository at this point in the history
Adds opengraph partial to slim header
  • Loading branch information
matt-bernhardt authored Nov 1, 2023
2 parents 78fe991 + 6b4b820 commit 53b6720
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/app/themes/mitlib-child/header-slim.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<!--<meta name="viewport" content="width=device-width" />-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php get_template_part( 'inc/header', 'opengraph' ); ?>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
Expand Down
11 changes: 11 additions & 0 deletions web/app/themes/mitlib-parent/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,17 @@ function customize_body_class( $classes ) {
}
add_filter( 'body_class', 'Mitlib\Parent\customize_body_class' );

/**
* Defines a new value for the length of the excerpt.
*
* @param int $length Number of words to include in the excerpt.
* @return int The maximum number of words to include from the excerpt.
*/
function custom_excerpt_length( $length ) {
return 100;
}
add_filter( 'excerpt_length', 'Mitlib\Parent\custom_excerpt_length', 999 );

/**
* ============================================================================
* ============================================================================
Expand Down

0 comments on commit 53b6720

Please sign in to comment.