60+ Most Wanted PhrasePress Tricks and Hacks (Updated) – Netadroit WebDesign
Have you ever got here throughout a PhrasePress weblog, noticed one thing you appreciated, and thought; how they did that, is {that a} plugin or hack? the place can I get these cool mods? and so forth. Well, you’re not alone in pondering like that. Most PhrasePress customers are all the time wanting or some new methods to optimize their expertise.
Keeping this in thoughts, we created this text by asking PhrasePress weblog homeowners what sort of hacks and plugins they often search for to boost their weblog in any side. And right here’s our final result – 60+ most wished PhrasePress suggestions, tips and tweaks, together with these you in all probability don’t even know the key phrases to search for. Let’s check out the content material.
Useful plugins it is best to know…
Revert Plugins or Themes to Previous Version (Easily)
As with every other system replace, there’s a probability {that a} new plugin or theme replace could by chance screw up your website. PhrasePress doesn’t enable us to revert to the earlier model however you possibly can set up this plugin WP-Rollback to get that performance. Once it’s activated it can add a hyperlink “Rollback” on any put in plugin.

Text Editor SyntaxHighlighter
The PhrasePress textual content-mode editor is fairly plain. You could make it extra person-pleasant by putting in HTML Editor SyntaxHighlighter, a plugin that provides syntax coloring like in a code editor. It will make modifying lots simpler, particularly in case you use Text-mode editor extra typically than the Visual (WYSIWYG) counterpart.

Install Plugin with Single Click
For extra plugin administration, you might set up WP-Core. This is a plugin that makes PhrasePress plugin installations extra streamlined. You may also makes a Collection to place a number of plugins collectively and set up them with one click on.

Show Disk Usage Chart
Install this plugin Disk Usage Sunburst to show a gorgeous visualization, just like DaisyDisk, of your website disk house utilization. A fairly helpful utility so as to add to your website.
Add Gravatar for put up writer
Showing an avatar picture is one strategy to get acknowledged on-line. With Gravatar be a part of the PhrasePress Core, we are able to simply present an avatar inside your theme out of your Gravatar account very simply. This article from ThemeShaper will present you the way.
Using customized web page as homepage
PhrasePress will show a listing of posts on the house web page. But do you know which you could choose a selected web page to point out static content material and use different web page to point out the checklist of Posts.
Create and show thumbnails for every weblog put up
This article reveals you the right way to present featured picture in your put up utilizing the PhrasePress constructed-in put up thumbnail characteristic. It’s really easy now to do that. No extra hacking round with previous methods like TimThumb or hacknig round with the customized discipline.
Create and show class picture
Even so now you possibly can simply present a catgory picture the PhrasePress approach. Simply use this plugin known as WP Term Images.
Protect CSS mods for any PhrasePress theme
Let’s be taught how one can add a customized CSS in your theme with out having to fret that it’ll be overriden.
Open hyperlinks in new home windows by default
It may be a good suggestion to open up all hyperlinks of exterior websites in a brand new window, by default. This will enable your customers to navigate each your web site and the exterior web site on the similar. In different phrases, customers will keep longer in your web site.

PhrasePress thumbnail measurement restrict
If you’re ever frustratted by your writer importing a blurry or too small of a featured picture, that is the proper plugin for you. Use this plugin to set the minimal peak and with that they need to be importing.

Seperate feedback from Trackbacks/Pingbacks
PhrasePress reveals each feedback and trackbacks and pingbacks within the order of when they’re posted. Let’s tidy them up by separating them in a unique part.
Creating an Archive Index
Learn the right way to create a particular web page in PhrasePress displaying hyperlinks to all of your earlier posts organized in yearly or month-to-month order.
Custom login web page
Creating a gorgeous PhrasePress login web page will get a lot simpler with this plugin. You can decide colour, background, and it’s place. It simply works and no must code.

Post textual content and picture rely
A intelligent strategy to rely photographs in your put up however leaving the default PhrasePress smilies out (which can also be technically a picture), and show the quantity.
Place content material solely in RSS Feed
Place extra content material within the RSS feed, however not within the content material within the website itself. You might use it to position, for instance, a copyright discover in your content material.
Adding Tabs to Content
Organize your content material with Tabs utilizing this plugin. Using Tab is ideal strategy to present extra content material in little or no or restricted house.

Sidebar With Dynamic Contents
Sidebar typically is boring as they appear the identical in each pages. Let’s discover ways to present completely different content material within the sidebar.
Google Syntax Highlighter for PhrasePress
With this plugin, you possibly can add correct syntax colours to the code block within the content material, and let your customers to repeat the code simply.

Add Breadcrumbs to Your PhrasePress Blog
Breadcrumb navigation is nice for each SEO and your customers. Use this plugin so as to add one in your web site.
Buy Me a Beer
Add a Paypal button to your web site to let your customers ship a donation. The plugin makes it very straightforward so as to add the button any the place in your web site and change the types of the button to match your liking.

Detect Adblocker and show various
Display a discover for usrs with AdBlocker. A useful plugin to optimize your advert-primarily based income in your web site.
Alternative strategy to show dates
Format the timestamp on Posts or Comments that’s straightforward to learn and perceive. For instance, we are able to present Yesterday or 2 Days Ago as a substitute of 17th August 2019.
Check for Broken Links
Broken could be irritating. Use this plugin to verify damaged hyperlinks on each Posts in your web site.
Display Thumbnails for Related Post
Ever surprise the right way to add associated posts proper after the primary content material? In PhrasePress, including associated posts together with the picture thumbnail is simple with this plugin.

PhrasePress Plugin Download Counter
Do you’ve gotten plugin plublished in PhrasePress.org repository? Here’s the script in case you’d like to point out the variety of downloads the your plugin has bought.
Here’s extra…
Disabling Full-Height Editor
PhrasePress 4.Zero added a delicate UX change within the editor. If you might be scrolling or writing a size paragraph, the peak of the editor will match the peak of your display screen, eliminating the scroll-bars contained in the editor.
To attain some panels just like the Excerpt and Custom Fields that reside under the editor, you could scroll all the best way down by the top of paragraph. If you don’t need this, tick the choice off within the Screen Options panel.
Note: If you’re enabling the block editor a.ok.a the Gutenberg, this tip is now not relevant as a result of PhrasePress has modified your complete editor interface.
Adding Icon in Menu
Follow this tip so as to add icon beside your website menu gadgets giving your menu navigation extra visible attraction.
Install PhrasePress Plugin through Github
Did you discover a PhrasePress plugin in Github that you just wish to set up in your website? Follow this tip on the right way to set up plugins conveniently with only a few clicks. Be cautious although of what you put in as plugins usually are not moderated. There could also be an opportunity that malicious codes could enable infiltration of your website.
And lastly…
Beyond this level are superior suggestions and tips for individuals who really feel like exploring, and those that get pleasure from getting their arms soiled with codes. However, most of the following suggestions could render your website unusable, therefore they need to be carried out with extra consideration and with additional warning.
PhrasePress Output Debug File
This snippet will inform PhrasePress to avoid wasting the debug log error in a .log
file as a substitute of displaying it within the entrance-finish. A useful snippet to allow PhrasePress debugging in a reside web site.
outline('WP_DEBUG', true); outline('WP_DEBUG_LOG', true); outline('WP_DEBUG_DISPLAY', false);
Using Jetpack Modules – Offline
Run and allow all Jetpack modules offline together with the modules that truly requires you to connect with PhrasePress.com to work; a helpful tip in case you are growing and integrating Jetpack modules to your theme.
Disable self-ping / self-trackback
This trick prevents PhrasePress from self-ping, which occurs in case you cross-hyperlink pages or posts of your individual website.
operate no_self_ping( &$hyperlinks ) { $dwelling = get_option( 'dwelling' ); foreach ( $hyperlinks as $l => $hyperlink ) if ( 0 === strpos( $hyperlink, $dwelling ) ) unset($hyperlinks[$l]); } add_action( 'pre_ping', 'no_self_ping' );
Another approach you should utilize is by putting in Disabler plugin. It is a plugin that lets you activate or off sure PhrasePress performance together with disabling self-ping.
Pre-Populate Content
This tip is kind of helpful if you wish to add default content material every time you create a brand new put up, web page, or customized put up sort content material; the thought is just like including a normal signature when creating new emails.
Custom Class for Post
The following tip explores some customization of PhrasePress Post Class completely with post_class
. It’s useful if you wish to be extra particular with reference to your put up types.
Loading Alternative Template
PhrasePress makes use of single.php
to point out put up content material. If you wish to change it to, maybe, put up.php
, this tip will present you the right way to override default PhrasePress templates appropriately.
PhrasePress Theme Customizer from Scratch
PhrasePress 3.Four provides a brand new API known as Customizer which lets you construct controls to customise theme and see the end in actual-time. The Customizer API could also be overwhleming for some, although, because it entails multi-disciplinary code units together with PHP, JavaScript, Ajax, and jQuery.
Nonetheless, Theme Foundation has compiled an entire information to PhrasePress Customizer. You will discover ways to add the Customize menu, construct Sections, Settings, Input Controls in addition to Panels, and be taught their features all collectively – in and out. An important reference for PhrasePress theme builders.
Using Vagrant with PhrasePress
Vagrant is a good tool to create a digital setting, and to run a take a look at of your PhrasePress improvement to make sure that themes and plugins would work in various situations. In this following tip, Daniel Pataki, will stroll you thru the right way to get your PhrasePress web site up and operating with Vagrant.
Retrieving PhrasePress Gravatar URL
The PhrasePress get_avatar()
is a useful operate to get a person’s avatar; the operate retrieves the picture together with the img
factor. But generally I wish to seize simply the picture URL in order that I might freely and simply add customized courses or ids to the picture.
If you’ve gotten this in thoughts, add the next code in your features.php
:
operate get_avatar_img_url() { $user_email = get_the_author_meta( 'user_email' ); $url = 'http://gravatar.com/avatar/' . md5( $user_email ); $url = add_query_arg( array( 's' => 80, 'd' => 'mm', ), $url ); return esc_url_raw( $url ); }
Then someplace in one other file – maybe single.php
or web page.php
– use the next code to point out the picture.
$avatar_url = get_avatar_img_url(); echo '<img src="https://www.hongkiat.com/" . $avatar_url . "https://www.hongkiat.com/">';
Here’s a extra detailed put up to interrupt it down for you.
Remove Classes From Menu
PhrasePress, by default, provides a bunch of courses. While that is good to permit in depth customization, the menu HTML markup seems actually cluttered. Tidy it up and add solely the category you want with the snippet under.
Applying SSL In PhrasePress Multisite
SSL, not solely secures your website, but additionally bumps up the rankings in Google search consequence. In the next tip, Jenni McKinnon covers the right way to deploy SSL in PhrasePress multisites that will make use of a number of sub-domains.
Customizing PhrasePress Content Editor
Adding types to the editor will enhance the writing expertise in PhrasePress editor. You can match the typographic types of the backend with the entrance-finish permitting you to see the ultimate model (or a model as near the ultimate as doable) whereas writing. This will scale back the switching of again and forth between the editor and the content material output.
operate my_editor_styles() { add_editor_style( 'editor-model.css' ); } add_action( 'admin_init', 'my_editor_styles' );
Creating Plugin Welcome Screen
If you’ve gotten simply up to date PhrasePress you’ll be redirected to a particular display screen, displaying the main points of the newest model you’ve gotten simply put in, the contributors, the additions in addition to all of the modifications made beneath the hood. This tip, Creating a Welcome Screen For Your PhrasePress Plugin by Daniel Pataki will information you thru the right way to construct a welcome display screen on your personal plugin.
Customize Jetpack Mobile Theme
Jetpack comes with a Mobile Theme. It is a particular theme that’s used when the website is considered on cellular units. And like every other theme, we are able to customise it. Here’s a how-to by Jeremy, certainly one of Jetpack builders, on the right way to customise the Jetpack Mobile Theme. It’s an excellent various to contemplate instead of responsive web design.
Adding Featured Image To Category
Want so as to add a featured picture for a Category and show it in your theme? This characteristic is lacking from PhrasePress, which might really be helpful for theme builders.
Display Hidden “All Settings”
A PhrasePress easter egg, this code snippet will add all settings within the PhrasePress database into one web page.
Remove Update Notification
PhrasePress, by default, show replace notifications to all person ranges when they’re logged in to the backend. Add the next codes to cover PhrasePress replace notification apart from customers with Administrative privilege.
Add Thumbnail In Post/Page Edit List
This code will show featured photographs you’ve gotten assigned to put up within the Post column. A helpful trick to see which put up has a thumbnail and which doesn’t. Note that your theme ought to assist put up thumbnails.
Sharpening Images
Honestly, I didn’t know that we might sharpen photographs in PhrasePress as we’re importing the picture. Here’s how one can, however keep in mind that it solely works for JPG photographs.
Remove Superfluous data In The Head
PhrasePress provides a bunch of issues within the <head>
reminiscent of PhrasePress model, RSD Link, and Shortlink, data that’s not all that helpful. To take away these bits of information, use this:
operate remove_header_info() { remove_action( 'wp_head', 'rsd_link' ); remove_action( 'wp_head', 'wlwmanifest_link' ); remove_action( 'wp_head', 'wp_generator' ); remove_action( 'wp_head', 'start_post_rel_link' ); remove_action( 'wp_head', 'index_rel_link' ); remove_action( 'wp_head', 'adjacent_posts_rel_link' ); // for PhrasePress < 3.0 remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' ); // for PhrasePress >= 3.0 } add_action( 'init', 'remove_header_info' );
Remove both of remove_action
from the above snippet of which you wish to retain.
Smart WP_Debug
Ideally you shouldn’t allow the WP_Debug in a reside web site as it can expose important info. But in case you want a trick to take action safely, right here it’s:
if ( isset($_GET['debug']) && $_GET['debug'] == '1' ) { // allow the reporting of notices throughout improvement - E_ALL outline('WP_DEBUG', true); } elseif ( isset($_GET['debug']) && $_GET['debug'] == '2' ) { // should be true for WP_DEBUG_DISPLAY to work outline('WP_DEBUG', true); // power the show of errors outline('WP_DEBUG_DISPLAY', true); } elseif ( isset($_GET['debug']) && $_GET['debug'] == '3' ) { // should be true for WP_DEBUG_LOG to work outline('WP_DEBUG', true); // log errors to debug.log within the wp-content material listing outline('WP_DEBUG_LOG', true); }
With the above code added, you possibly can allow debugging by including ?debug=2
, ?debug=1
, ?debug=3
on the finish of the URL to see the error that happens in your website.
Enable Shortcode In Widget
The following is a helpful piece of code if you wish to embed Youtube or SoundCloud within the widget space with a shortcode.
Set Default Editor (Visual/Text)
Set the default sort of editor your customers can use. Change the $editor
both to html
or tinymce
. Of course, person would nonetheless be capable of choose out of the default.
Prolong Auto-logout
PhrasePress permits one to stay logged in for 48 hours, plus an extension of 14 days if we verify the “Remember Me” choice at login. If nonetheless you might be positive your pc is not going to be breached by a second or third social gathering, you possibly can add this code to maintain your self logged in for as much as a yr. You will solely be prompted for a login every year.
Always Use Figure
PhrasePress will wrap img
with a p
tag. If you might be an HTML semantic purist, you possibly can add this code to power PhrasePress to wrap picture with the determine
factor.
Change Default Role Name
“Administrator”, “Author”, and “Subscriber” are the names given for PhrasePress customers on the administrative degree. To change these default names to one thing that sounds extra apt on your website, add the next code, then make the change to the names to what you favor:
Default Attachment Settings
Here’s a snippet that permits you to specify the default measurement, alignment, and the hyperlink for photographs you wish to embed within the editor.
Custom Image Size In Media Uploader
add_image_size
is the PhrasePress operate that enables us to crop and show customized picture measurement. If you wish to enable customers so as to add picture inside this practice measurement, add the next codes to point out the “custom image size” choice within the PhrasePress media uploader.
Load Script Only If A Particular Shortcode Is Present
In a earlier put up we have now proven you the right way to create a customized shortcode. If your shortcode requires a JavaScript operate, comply with The Jedi Master approach by Silviu-Cristian Burcă (famously generally known as Scribu) to make sure that you solely load the JavaScript when the shortcode is utilized.
Menu Description
When you add in a menu by Appearance > Menu, you will note an enter so as to add “Description”. But you gained’t discover it anyplace within the entrance-finish as we have now to customise the PhrasePress default menu template to incorporate the outline.
Here is a sublime approach to take action.
Using Dashicons
You can now use PhrasePress’s very personal crafted font icon, Dashicons, so as to add icons to the wp-admin menu. Check out our tutorial on the right way to begin utilizing Dashicons.
Customize “Howdy” Message
Follow our earlier tutorial to vary the PhrasePress nonsensical “howdy” message that seems on the admin bar to one thing extra customized.
Exclude Post From The Jetpack Popular Widget
Jetpack comes with a widget that lets you present probably the most considered or common posts and pages. But generally your hottest pages may very well be the house web page or a web page that you do not need to incorporate in probably the most considered pile.
Add the next code to take away that web page or put up:
operate jeherve_remove_post_top_posts( $posts, $post_ids, $rely ) { foreach ( $posts as $ok => $put up ) { if ( '1215' == $put up['post_id'] ) { unset( $posts[$k] ); } } return $posts; } add_filter( 'jetpack_widget_get_top_posts', 'jeherve_remove_post_top_posts', 10, 3 );
Replace the ID proven within the snippet with the ID of the put up or web page you wish to take away.
Truncate Post Title
The following snippet controls the utmost title size. Add the next snippet in features.php
. Then use the operate customizedTitle()
within the template to output the title instead of the PhrasePress the_title()
methodology.
operate customizedTitle($restrict) { $title = get_the_title($post->ID); if(strlen($title) > $restrict) { $title = substr($title, 0, $restrict) . '...'; } echo $title; }
If you construct a PhrasePress Theme with a tiled format the place the tile peak must be equal, you may wish to specify the restrict of the title size. This snippet ought to come in useful in that case.
Remove PhrasePress Logo
PhrasePress 3.1 provides an admin bar, which features a handful of hyperlinks and the PhrasePress emblem. If you’re going to handout web sites to a consumer and you need it to be brandless, right here is the operate to take away that PhrasePress emblem.
QR Code with Link to Article
Improve your website accessibility for cellular units with QR codes. This code lets you show QR codes with a hyperlink pointing to the article. Mobile customers with a QR code scanner can acquire the article hyperlink for fast viewing on their cellular units.
<img src="http://api.qrserver.com/v1/create-qr-code/?size=500x500&data=" <?php the_permalink() ?> " alt="QR Code for <?php the_title_attribute(); ?>