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
<!-- /* use this to add a conditional "comments are closed" notice */ --> | |
<?php comments_open(); | |
if ('closed' == $post->comment_status) : ?> | |
<?php _e('Comments are closed',themedomain); ?> | |
<?php endif; ?> |
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
<!-- /* use this to show if comments are open or closed */ --> | |
<?php comments_open(); | |
if ('closed' == $post->comment_status) | |
{ _e('Comments are closed',themedomain); } | |
else | |
{ _e('Comments are open',themedomain); } | |
?> |
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 this to the theme's functions.php to add rel="nofollow" atribute to comments link */ --> | |
<?php function add_nofollow_to_comments_popup_link () | |
{ return 'rel="nofollow"'; } | |
add_filter ( 'comments_popup_link_attributes', 'add_nofollow_to_comments_popup_link' ); | |
?> |
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
<!-- /* | |
Correction for the french localization of comments_popup_link() function in WordPress 3.1 core: | |
Official translation: « Comment on get_the_title() » becomes « Commentaire sur get_the_title() » | |
I would instead prefer: « Commentaires sur get_the_title() » or « Commentez sur get_the_title() » | |
Reference: | |
wp-includes/comment-template.php:1014 | |
msgid "Comment on %s" | |
msgstr "Commentaire sur %s" |
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
<!-- /* This simple one line snippet will display the total wordpress post count. */ --> | |
<?php echo wp_count_posts()->publish; ?> |
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
<!-- /* To load language files from a subfolder in a theme child, add this in its functions.php file: */ --> | |
<?php | |
load_child_theme_textdomain('parentThemeFolderName', dirname(__FILE__).'/languageSubfolderNameInChildTheme'); | |
?> |
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
<!-- /* hardcoded link to share a URL on facebook */ --> | |
<a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fexample.com">Share on Facebook</a> |
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
<!-- /* Remove version number from wordpress generated source and RSS feed. | |
http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/ | |
*/ --> | |
<!-- /* remove this from header.php remove version from generated page source */ --> | |
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> | |
<!-- /* or add this to functions.php to remove version from generated page source */ --> | |
<?php remove_action('wp_head', 'wp_generator'); ?> |
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
h2 {margin:0 0 2px !important} | |
h3 {margin:4px 0 !important} | |
.topsearch {width:auto !important; margin-top:6px !important; margin-right: 4px} | |
.userbox {height:20px !important} | |
.userbox > .inner {height:auto !important; padding:1px 4px 0 !important} | |
.site {padding:0 4px 0 4px !important} | |
.main {width:79% !important} | |
.secondary {width:19.9% !important; margin-right:4px !important} | |
.push {display:none} |
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
<!-- /* this should placed in header.php in the <head> section (if it isn’t already) to enable plugins and admin bar functionality */ --> | |
<?php wp_head();?> | |
<!-- /* this should be placed in footer.php right before </body> to insert the actual html for the admin bar */ --> | |
<?php wp_footer(); ?> | |
OlderNewer