Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the acf domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the codepen-embed-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-account-protection domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-activity-log domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-admin-ui domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-assets domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the jetpack domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-backup-pkg domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-blaze domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-block-delimiter domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-boost-core domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-boost-speed-score domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-classic-theme-helper domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-compat domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-config domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-connection domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-explat domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-external-connections domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-external-media domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-forms domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-image-cdn domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-import domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-ip domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-jitm domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-jwt domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-licensing domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-masterbar domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-my-jetpack domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-newsletter domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-password-checker domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-paypal-payments domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-plugins-installer domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-post-list domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-post-media domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-protect-models domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-protect-status domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-publicize-pkg domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-search-pkg domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-stats domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-stats-admin domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-subscribers-dashboard domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-sync domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-videopress-pkg domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-waf domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-wp-abilities domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-wp-build-polyfills domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170
Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the woocommerce-analytics domain. Please see Debugging in WordPress for more information. in /home/dh_432dct/themedev.thepixelpixie/wp-includes/functions.php on line 6170 Enabling HTML in your category & taxonomy descriptions | Pixie Nerd Theme
HomeWordPressEnabling HTML in your category & taxonomy descriptions
Enabling HTML in your category & taxonomy descriptions
You may not be aware of it, because most themes don’t make use of it, but did you know that you can include your category descriptions and images in themes? Well, you can. AND, not only that, you can allow html tags within those category/taxonomy descriptions!
First, let’s ensure that your theme can use this feature (this is assuming you’re using a fully custom or child theme. If not, you risk these changes being overwritten with any future updates from the theme developer)
Setting up your theme to allow for category/taxonomy descriptions
Open your category.php file within your theme files. Now choose where you’d like your category description to appear (a common place is right below the category title tag itself):
<h1 class="title"><?php printf( __( 'Category Archives: %s', 'appthemes' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>
<?php
// this part is new
$cat_desc = category_description();
if ( ! empty( $cat_desc ) ) {
echo apply_filters( 'category_archive_meta', '<div class="cat-desc">' . $cat_desc . '</div>' );
}
?>
Want the same thing for a custom taxonomy? Just replace category_description() with term_description(). And if you’re really wanting to get fancy, use tag_description().
See, here’s the thing: I wish more people were using these category, term and tag descriptions in their themes. Not only are they simply a good way to provide extra descriptive content for each category, term and tag, but those extra descriptions are also a fantastic way to incorporate more of your keywords and phrases to help with your Search Engine Optimization (SEO) efforts. So get ON that!
Now, what you may end up noticing is that when/if you try to enter any html tags into those descriptions, they will often disappear once you’ve saved it (sometimes simple tags for bold and italic and the like will get saved, but most anything else will disappear).
Enabling HTML in those descriptions
You can enable html in those category/term/tag descriptions though.
In your themes functions.php file, enter the following lines:
// allow html in category and taxonomy descriptions
remove_filter( 'pre_term_description', 'wp_filter_kses' );
remove_filter( 'pre_link_description', 'wp_filter_kses' );
remove_filter( 'pre_link_notes', 'wp_filter_kses' );
remove_filter( 'term_description', 'wp_kses_data' );
IMPORTANT NOTE: Note that this code removes the native security features that WordPress applies to those fields. If you have quite a few authors with access to your site, or run a large multi-site blog, this could end up creating a security risk since malicious code could also be inserted. Large sites with multiple authors will probably want to forgo allowing html in those description areas. If you’re a normal-sized site, with only a handful of authors though, you should have no issues. I trust that you already have other security measures in place anyhow, such as iThemes Security or similar (there are both free and pro versions available).