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
<xsl:template match="channel"> | |
<xsl:for-each select="item[position()<=1"> | |
<xsl:variable name="date"><xsl:value-of select="pubDate"/></xsl:variable> | |
<p class="podcastfile">Latest podcast: <a href="{link}"> | |
<xsl:call-template name="FormatDate3"><xsl:with-param name="date" select="substring-before($date, ' +')"/></xsl:call-template>: <strong><xsl:value-of select="title"/></strong></a></p> | |
</xsl:for-each> | |
</xsl:template> | |
<xsl:template name="FormatDate3"> | |
<xsl:param name="date"/> |
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
<?php | |
add_action('wp_print_styles', 'load_fonts'); | |
function load_fonts() { | |
wp_register_style('googleFonts', 'http://fonts.googleapis.com/css?family=Oswald:700http://<?php echo $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; ?>'); | |
wp_enqueue_style( 'googleFonts'); | |
} | |
//goes in theme/front-end.php |
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
<?php | |
// changing the login page URL | |
function THEMENAME_put_my_url(){ | |
return get_home_url(); // changes the url link from wordpress.org to your blog or website's url | |
} | |
add_filter('login_headerurl', 'THEMENAME_put_my_url'); | |
// changing the login page URL hover text | |
function THEMENAME_put_my_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
<?php | |
// Show login link if a user visits a preview link and is logged out | |
remove_action( 'init', '_show_post_preview' ); | |
add_action( 'init', 'NAME_show_post_preview' ); | |
function NAME_show_post_preview($result='', $id = false) { | |
// if ?preview=true is set | |
if ( isset($_GET['preview'])) { | |
$id = (int) $_GET['preview_id']; | |
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
<?php | |
function POSTTYPE_to_admin_body_class( $classes ) { | |
global $post; global $post_type; | |
$mode = ''; | |
$uri = $_SERVER["REQUEST_URI"]; | |
if (strstr($uri,'edit.php')) { | |
$mode = ' edit-list-'; | |
} | |
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
<?php | |
add_action( 'wp_dashboard_setup', 'NAME_remove_dashboard_widgets', 100); | |
function NAME_remove_dashboard_widgets() { | |
global $wp_meta_boxes; | |
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); |
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
<?php | |
add_action( 'wp_before_admin_bar_render', 'NAME_admin_bar_render' ); | |
function NAME_admin_bar_render() { | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('comments'); | |
$wp_admin_bar->remove_menu('new-content'); | |
$wp_admin_bar->remove_menu('wpseo-menu'); | |
} | |
/** |
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
<?php | |
add_action( 'add_meta_boxes', 'NAME_remove_meta_boxes', 100); | |
function NAME_remove_meta_boxes() { | |
remove_meta_box( 'trackbacksdiv', 'post', 'normal' ); // Trackbacks meta box | |
remove_meta_box( 'postcustom', 'post', 'normal' ); // Custom fields meta box | |
remove_meta_box( 'commentsdiv', 'post', 'normal' ); // Comments meta box | |
remove_meta_box( 'slugdiv', 'post', 'normal' ); // Slug meta box | |
remove_meta_box( 'authordiv', 'post', 'normal' ); // Author meta box | |
remove_meta_box( 'revisionsdiv', 'post', 'normal' ); // Revisions meta box | |
remove_meta_box( 'formatdiv', 'post', 'normal' ); // Post format meta box |
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
<?php | |
add_filter( 'comments_template', 'USEGENERIC_woocommerce_comments', 100); | |
function USEGENERIC_woocommerce_comments( $template ) { | |
$template = STYLESHEETPATH . '/comments.php'; | |
return $template; | |
} |
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 min-width: 100%; to body CSS --> | |
body { | |
min-width: 100%; | |
} | |
<!-- Add 'style="text-align: center;"' and 'align="center"' to wrapper table --> | |
<table id="wrapper" width="100%" height="100%" style="width: 100%; height: 100%; margin: 0 !important; text-align:center" border="0" cellspacing="0" cellpadding="0" bgcolor="#eaeff2" align="center"> | |
<tbody> | |
<tr> | |
<td align="center"> |
OlderNewer