WP Facebook Messenger

FACEBOOK MESSENGER FOR WORDPRESS Fastest way to get connected For any sellers and business owners!

Woocommerce

WOOCOMPOSER Page Builder for WooCommerce WooCommerce Page Builder is The Quickest Way to Create from Product Detail Page to Thank-You Page and Everything in Between.

Facebook Live Chat For Wordpress

FACEBOOK LIVE CHAT FOR WORDPRESS The Very First Step of The 2017 Facebook Marketing Strategy

Yoast SEO

WordPress out of the box is already technically quite a good platform for SEO.

Contact Form 7 Multi-Step

CONTACT FORM 7 MULTI-STEP Featured on our Best WordPress Plugins Adding steps for your complex form The best solution to keep the form clean and simple to your visitors

Friday, December 15, 2017

ADD AND REMOVE THE WIDGET IN THE WORDPRESS WORK


ADD AND REMOVE THE WIDGET IN THE WORDPRESS WORK

When it comes to widgets in WordPress, you probably think of the widgets that appear on your site. However, the widget I mentioned in this article is not for displaying outside the website but as a widget within the admin page, which is located in the Dashboard as shown below.
ADD AND REMOVE THE WIDGET IN THE WORDPRESS WORK
And in this tutorial I will show you how to delete the default widgets as well as create a new widget in the admin page to use it to display some of the information you want.

How to delete the default widget in the admin page

If you are like me, the widgets in the admin page almost do not use it a long time because it is too little information, just as we should delete it to avoid seeing it again.
To do this, we will create a function and hook it into the action hook named wp_dashboard_setup.
01
02
03
04
05
06
07
/**
 * Delete the default widget in the admin page
 */
 function tp_remove_default_admin_widget() {
 }
add_action( 'wp_dashboard_setup', 'tp_remove_default_admin_widget' );

And then in this function we use the remove_meta_box function to delete the widget here. We use this function because these widgets are meta boxes created for page type called dashboard. For example, if you want to remove the WordPress News widget, you have the following:
01
02
03
04
05
06
07
08
09
/**
 * Delete the default widget in the admin page
 */
 function tp_remove_default_admin_widget() {
     remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );
 }
add_action( 'wp_dashboard_setup', 'tp_remove_default_admin_widget' );

Similarly, you can see a list of the default dashboard names here and want to delete which one then copy that into your function.
In case you want to remove the welcome display in the Dashboard, you must use remove_action (), and place the code outside of your function.
01
remove_action( 'welcome_panel', 'wp_welcome_panel' );

How to create a widget in the admin page

Usually when creating a website for a customer, we may need to use the Dashboard to post a reminder notice, or advanced features such as getting the latest news on our site, or updating the price of gold. Something, ... depending on the level of your code.
In this tutorial I will teach you how to create a simple widget and a widget to display the latest posts on your page via RSS.
We first create a separate function and hook it into the action hook named wp_dashboard_setup. And in this function we use the function wp_add_dashboard_widget () to create a new widget.

01
02
03
04
05
06
07
/**
 * Create widget in admin page
 */
 function tp_create_admin_widget_notice() {
    wp_add_dashboard_widget( 'tp_notice',
'Reminder notes','tp_create_admin_widget_notice_callback' );
 }
add_action( 'wp_dashboard_setup',
'tp_create_admin_widget_notice' );

In the above paragraph, we have:

01
wp_add_dashboard_widget( 'tp_notice', 'Reminder notes',
'tp_create_admin_widget_notice_callback' );

Inside:
tp_notice: ID of the widget, the ID must not be the same as the other widgets.
Reminder notes: The title of the widget
tp_create_admin_widget_notice_callback: The name of the function that it will execute in this widget, where you can understand what this function contains which is displayed in the widget whose ID is tp_notice.
Okay, now let's create the function tp_create_admin_widget_notice_callback() that we have declared above to display the content of the generated widget. In this function we temporarily display a simple text.
01
02
03
04
05
06
07
function tp_create_admin_widget_notice_callback() {
    echo '
This is sample content in the tutorial on how to create a
simple widget in the admin page.
';
}

Save and the results we have:
ADD AND REMOVE THE WIDGET IN THE WORDPRESS WORK
If you want to create a widget to display the list of the latest articles on your website or any website, see the instructions in the article Build Your Own WordPress Dashboard Widget for Any RSS Feed.
Since you have full access to the PHP code in this section, you can create your own content here.


The mechanism of use is just that. But hopefully once you know the simplest things, you'll be able to easily find better ways to use widgets in the more useful administration page.

Thursday, December 14, 2017

ADD COMMENT FEATURE WITH SOCIAL NETWORK ACCOUNT

ADD COMMENT FEATURE WITH SOCIAL NETWORK ACCOUNT

Today's social networks are becoming more popular, as the big ones like twitter, facebook quickly approach and conquer the user, with millions of users around the world, social networking has always been a topic for internet services to tap into the potential for business and development. However, with small websites or blogs, how does social networking benefit you and how to exploit it effectively?
In this article, I will mention a basic way to exploit the potential from the social network for websites, blogs Connect your users between social networking and blog or your wordpress website.
ADD COMMENT FEATURE WITH SOCIAL NETWORK ACCOUNT

benefit

When someone needs to register a member / comment on your website / blog  they must fill out the form and register, this will take time and boring the reader, so if your wordpress blog allows the use of social networking accounts to log in then the user will save more time. At the same time, users also manage their accounts more easily and they will also enjoy a lot more.
Moreover, facebook now has the feature of displaying their activity, that is, if they have a comment or like, the activity will also appear on their page, it receives more traffic from other members. But this feature is only available if you use facebook comment.

Plugin                                                                                          

With the huge plugin archive of wordpress, you will easily find the pluign that will allow you to add the wordpress login feature by social networking accounts. Now you do not need to manually program and work with complex social networking APIs. Underneath you will list the best plugins to do this for you.

Disqus

This is a separate comment system, not using the default comment system of wordpress, it also includes a log-in feature for commenting through social networking accounts and having mail notifications when someone responds to a comment. This is a pretty good plugin that you recommend to use it.
ADD COMMENT FEATURE WITH SOCIAL NETWORK ACCOUNT

social login

This plugin allows the display of links with icons to the reader login by social networking account right at the comment frame, login page, registration page and sidebar. The highlight of this plugin is very easy to use and supports a lot of different social networks. At the same time the service of this plugin is also very good, always update the latest version when wordpress update new version
However, for members to use the registration feature, you must turn on the registration feature at setting ---> general and mark the item "can anyone register"
ADD COMMENT FEATURE WITH SOCIAL NETWORK ACCOUNT

Facebook

This is a plugin for wordpress released by facebook, Only with this plugin you can let users interact with your blog or website wordpress most fully when letting you integrate like button into blog or wordpress website, comment by facebook account, post on fanpage, tag friends in the post .... If you just want to target facebook users, this plugin really can not be ignored.
ADD COMMENT FEATURE WITH SOCIAL NETWORK ACCOUNT


Social comment

Do you want to use Disqus comment, Google plus comment, Facebook comment without having to install many plugins? If you install this plugin you will have all 3 comment systems without much customization.
ADD COMMENT FEATURE WITH SOCIAL NETWORK ACCOUNT

Last words

This article also briefly talk about the benefits of interacting social networking accounts with wordpress and introduce some plugins to help you do this job easily. However, the virtual world of social networking is very vast and the potential for exploiting the benefits is not limited. Come here, have you tried these plugins yet?

If you know more about this free and good plugin then do not hesitate to share it with everyone. Wish your blogs grow.

related articles

 
loading...