View list-style.css
article ol li { | |
list-style:none; | |
padding:10px 20px; | |
border-bottom:1px solid #ddd | |
} | |
article ol { | |
counter-reset:rowNumber; | |
padding:0!important; | |
background: white; | |
border: 1px solid #ddd; |
View header-triggers.php
<?php if ( md_has_menu() ) : ?> | |
<span id="header-menu-trigger" on="tap:sidebar.toggle" class="header-menu-trigger header-trigger"></span> | |
<?php endif; ?> |
View list-child-pages.php
<?php | |
function gt_list_child_pages() { | |
global $post; | |
if ( is_page() && $post->post_parent ) | |
$childpages = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->post_parent . '&echo=0' ); | |
else | |
$childpages = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->ID . '&echo=0' ); |
View disable-wpcomtoolbar.php
<?php | |
function disable_wpcomtoolbar ( $modules ) { | |
if ( isset( $modules['masterbar'] ) ) { | |
unset( $modules['masterbar'] ); | |
} | |
return $modules; | |
} | |
add_filter( 'jetpack_get_available_modules', 'disable_wpcomtoolbar' ); | |
?> |
View Mdhooks.php
<?php | |
// Display Custom Excerpt below the headline on single posts. | |
function excerpt_single_post() { | |
if ( is_singular( 'post' ) && has_excerpt() ) { | |
the_excerpt(); | |
} | |
} | |
add_action ('md_hook_after_headline', 'excerpt_single_post'); | |
?> |
View dont-make-comment-hyperlink-clickable.php
<?php remove_filter( 'comment_text', 'make_clickable', 9 ); | |
function plc_comment_post( $incoming_comment ) { | |
$incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']); | |
$incoming_comment['comment_content'] = str_replace( "'", ''', $incoming_comment['comment_content'] ); | |
return( $incoming_comment ); | |
} | |
View functions.php
<?php // add everything except for this opening line to your functions file | |
add_filter( 'wp_nav_menu_items', 'sp_add_loginout_link', 10, 2 ); | |
function sp_add_loginout_link( $items, $args ) { | |
// Change 'primary' to 'secondary' to put the login link in your secondary nav bar | |
if ( $args->theme_location != 'primary' ) | |
return $items; | |
if ( is_user_logged_in() ) { | |
$items .= '<li class="menu-item"><a href="'. wp_logout_url() .'">Log Out</a></li>'; | |
} else { | |
$items .= '<li class="menu-item"><a href="'. site_url('wp-login.php') .'">Log In</a></li>'; |
View display-subpages.php
<?php function gt_list_child_pages() { | |
global $post; | |
if ( is_page() && $post->post_parent ) | |
$childpages = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->post_parent . '&echo=0' ); | |
else | |
$childpages = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->ID . '&echo=0' ); | |
View dark-mode.scss
@media (prefers-color-scheme: dark) { body, .blog-teaser, article, .sidebar > *, .has-white-background-color, .style-default .box-style, .style-default .box-style-list ul, .style-default .tagcloud, .style-default #wp-calendar, .header, article div, .amzn-native-product-title-container a, ol, ul, .megamenu, .sub-menu, .content-inner > *{ | |
background:#333!important; | |
} | |
a, li, li a, h1, h2, h3, h4, h5, h6, p, blockquote, format > *, .sidebar > *, .blog-teaser h2 a, div, .content-inner > *{ | |
color:#eee!important; | |
} | |
img{ | |
opacity:0.8; | |
} | |
.header-logo img{ |
View custom-in-search.php
<?php // MAKE CUSTOM POST TYPES SEARCHABLE | |
function searchAll( $query ) { | |
if ( $query->is_search ) { $query->set( 'post_type', array( 'site', 'plugin', 'theme', 'person' )); } | |
return $query; | |
} | |
add_filter( 'the_search_query', 'searchAll' ); | |
?> |
NewerOlder