Welcome To Arif ar Blog

5 WordPress Tips/Tricks/Hacks Every Blogger Must Know (2018,2019)

1. Add one or more footer widget areas
Not every WordPress websites support footer
widgets. So this tweak will help you add multiple
footer widgets into your WordPress theme. Read
the tutorial here.
2. Customize log in page
Adding a few tweaks on your functions.php file will
let you customize your log in page. Here’s what you
need to do.
a) In your current theme directory ( ../wp-content/
themes/your-theme-name ), add a folder called
“login”. Create a css file inside the login folder and
name it custom-login-styles.css
b) Next, add the following code into your
functions.php file
function my_custom_login() {
echo '<link rel="stylesheet" type="text/css" href="' .
get_bloginfo('stylesheet_directory') . '/login/custom-
login-styles.css" />';
}
add_action('login_head', 'my_custom_login');
Simply customize your CSS file, custom-login-
styles.css. This will reflect on the log in page.
3. Add custom page into WordPress
It is possible to custom design a page with simple
HTML/CSS, and installs it to your WordPress site.
All that needed is to simply add the following code
into the top of your custom HTML page.
<?php /* Template Name: Squeeze */ ?>
After adding the code, save the page as
squeeze.php and upload it to your current theme
folder (../wp-content/themes/your-theme-name ).
Once the file is uploaded, create a new page and
choose the template Squeeze under ‘Page
Attributes’. Publish the page to see it live.
4. Add infinite scroll WordPress trick
Automatically load new content when the reader
scrolls down and approaches the bottom of the
page. Actually infinite scroll is a Jetpack plugin
feature. If you’re using a well coded theme like the
default WordPress theme, your theme will support
infinite scroll.
Install the Jetpack plugin, enable infinite scroll
feature and add the following code to your
functions.php file.
add_theme_support( 'infinite-scroll', array(
'container' => 'content',
'footer' => 'page',
) );
5. Disable post revisions
‘Post revisions’ is one of the best WordPress
features. However, some users might not need this
feature especially for those who have limited
database space.
To disable the feature, add the following code to
wp-config.php file
define('AUTOSAVE_INTERVAL', 120 ); // seconds
define('WP_POST_REVISIONS', false );
This code will disable all the future revisions, and it
extends the autosave interval from 60 to 120
seconds. It means your post will be autosaving
every 120 seconds.

Share This

0 Response to "5 WordPress Tips/Tricks/Hacks Every Blogger Must Know (2018,2019)"

Post a Comment

Any Problem Comment Please

exmine.cloud site review

New Bitcoin Mining Site Lunch Just Registered Get Free 250Gh/s Hashpowar Minimum Withdraw : 0.002 btc Join Now : https://exmine.cloud/sig...