When your website means business.

Snippets: WP/CP

HTML5 Toggle Search»

First, add HTML5 support to functions.php
CSS3, Search, WP/CP | Type: CSS

Incorporating Dashicons into Content and Templates»

Two approaches for adding dashicons in HTML. A Cheerful Headline <h2 class="dashicons-before dashicons-smiley">A Cheerful Headline</h2> Point That Way <h2>Point That Way<span class="dashicons dashicons-arrow-right"></span></h2> Obviously, CSS would need to be added…
WP/CP | Type: PHP

Move Yoast Metabox to Bottom»

Yoast Metabox is huge, and it gets in the way of a lot of stuff. Move it to the bottom of the edit screen with this handy snippet.
WP/CP, Yoast | Type: PHP

Multiple Templates for Custom Post Type»

Number of possible solutions; have not tested any of them yet. Maybe trying to make this too complicated: what about serving different template parts based on user type? Added Multiple…
CPT, WP/CP | Type: PHP

Namespace; if function exists»

WP-PageNavi CPT LISTING <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(array('query' => $newslist )); //$newslist is name of query for 'news' cpt } else { echo 'Please enable WP-PageNavi!'; } ?> ALTERNATIVELY FOR BLOG…
PHP, WP/CP | Type: PHP

RankMath Functions»

Move RankMath metabox to bottom of the edit screen //change the metabox display location to bottom function rank_math_change_metabox_priority() { return 'low'; } add_filter( 'rank_math/metabox/priority', 'rank_math_change_metabox_priority' ); Remove node from admin…
PHP, WP/CP | Type: PHP

Remove Items from WP/CP Admin Bar»

// Remove items from the admin bar function remove_from_admin_bar($wp_admin_bar) { /* * Placing items in here will only remove them from admin bar * when viewing the fronte end of…
PHP, WP/CP | Type: PHP

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.