This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Add support for custom header | |
add_theme_support( 'custom-header', array( | |
'width' => 1000, // width of the image | |
'height' => 70, // height of the image | |
'header-selector' => '.site-header', // sets it to the <header> element | |
'wp-head-callback' => 'lunarwp_modify_custom_header', // callback so we can modify the css added to the <head> | |
'header-text' => false, | |
) ); | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('genesis_post_title_output', 'lunarwp_remove_page_title', 10, 1); | |
/** | |
* Remove the Page Title section from all pages | |
* | |
* @since 1.0.0 | |
* | |
* @return string Page Title or empty sting (for pages) | |
*/ | |
function lunarwp_remove_page_title($output) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('genesis_post_title_output', 'lunarwp_add_icon_to_post_title', 10, 1); | |
/** | |
* Add icon to the Post Title | |
* | |
* @since 1.0.0 | |
* | |
* @param string $title Post Title HTML | |
* @return string Amended Post Title HTML | |
*/ | |
function lunarwp_add_icon_to_post_title( $title ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('genesis_attr_entry-header', 'lunarwp_attributes_entry_header'); | |
/** | |
* Add attributes for header entry-header element. | |
* | |
* @since 1.0.0 | |
* | |
* @param array $attributes Existing attributes. | |
* @return array Amended attributes. | |
*/ | |
function lunarwp_attributes_entry_header($attributes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* JavaScript|jQuery functions | |
* | |
* Load into child namespace | |
* | |
* @category LUNARWP Core | |
* @package Assets | |
* @subpackage JS | |
* @since 1.0.0 | |
* @author LUNARWP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.scrollup { | |
background: url(assets/images/icon_top.png) no-repeat 0 0; | |
width: 40px; | |
height: 40px; | |
text-indent: -9999px; | |
@include opacity(0.30); | |
position: fixed; | |
@include rem(bottom, 50px); | |
@include rem(right, 100px); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('genesis_title_comments', 'do_shortcode', 20 ); | |
add_filter('genesis_title_comments', 'lunarwp_add_comment_total_to_comment_title', 10, 1); | |
/** | |
* Add the comment count to the title | |
* | |
* @since 1.0.0 | |
* | |
* @param string $title | |
* @return string Amended comment title | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('genesis_title_comments', 'do_shortcode', 20 ); | |
add_filter('genesis_title_comments', 'lunarwp_add_comment_total_to_comment_title', 10, 1); | |
/** | |
* Add the comment count to the title | |
* | |
* @since 1.0.0 | |
* | |
* @param string $title | |
* @return string Amended comment title | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$output .= apply_filters( 'genesis_post_info', '[post_date] ' . __( 'by', 'genesis' ) . ' [post_author_posts_link] [post_comments] [post_edit]' ); |
OlderNewer