Tag - Add

How to Add Dark Mode to Your WordPress Admin Dashboard


Do you want to add dark mode to your WordPress admin dashboard? A dark mode color scheme makes it easier to work during late hours by reducing white light emitting from the screen. In this article, we will show you how to easily add dark mode to your WordPress admin dashboard.

Adding dark mode to WordPress admin area

What is Dark Mode and Why Use it in WordPress?

If you often work late at night, then the bright screen light of your computer causes strain on the eyes. Many apps, websites, and even operating systems come with a dark mode color scheme as an alternative.

Dark mode in macOS

Popular websites like YouTube also offer a dark color scheme. This allows users to watch videos late at night with a more comfortable viewing experience.

YouTube dark theme

WordPress comes with admin color schemes, but none of the default color schemes reduce white light coming from your screen.

Luckily, there is a plugin that solves that.

Let’s take a look at how to easily add dark mode to your WordPress admin area for a more enjoyable user experience during late hours.

Adding Dark Mode to Your WordPress Admin Dashboard

The first thing you need to do is install and activate the Dark Mode plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Users » Your Profile page and check the box next to the ‘Dark Mode’ option.

Enable dark mode

Don’t forget to click on the save changes button to store your settings.

Your WordPress admin area will now switch to the dark mode.

Dark mode enabled

Since ‘Dark Mode’ is not an admin color scheme, you can easily use it in combination with an existing WordPress admin color scheme.

Admin schemes with dark mode

At the time of writing this article, the plugin was not compatible with the upcoming Gutenberg editor. However, when writing posts using the new editor, the plugin switches back to the regular admin colors.

It is expected to work with the new editor in an upcoming version. Meanwhile, you can switch to the classic WordPress editor for a consistent dark mode experience.

We hope this article helped you add the dark mode to your WordPress admin dashboard. You may also want to see our guide on the history of WordPress to see the evolution of WordPress interfaces.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Dark Mode to Your WordPress Admin Dashboard appeared first on WPBeginner.





Source link

Read more...

How to Add a FTP like File Manager in Your WordPress Dashboard


Do you want to add an FTP like file manager in your WordPress admin area? A file manager can help you edit WordPress configuration, themes, plugins, and other files right from your WordPress dashboard. In this article, we will show you how to easily add an FTP like file manager in WordPress.

Adding an FTP like file manager in WordPress

Why You Need an FTP like File Manager in WordPress?

A file manager in WordPress allows you to manage files on your WordPress website directly from your WordPress admin area. It works like a web-based FTP client allowing you to browse and manage files with a simple user interface.

Our recommendation is to always use an FTP client using SSH or SFTP protocols to securely transfer WordPress files.

However, a file manager is helpful when you don’t have access to FTP or cPanel of your website. It works similar to an FTP client, so you can edit, preview, upload, and download the WordPress configuration and other files.

That being said, let’s take a look at how to easily add an FTP like file manager in WordPress.

Adding a FTP like File Manager in WordPress

First thing you need to do is to install and activate the File Manager plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, the plugin will add a new menu item labeled ‘WP File Manager’ in the WordPress admin sidebar. Clicking on it will launch the file manager app, which will show your WordPress files and folders.

WP File Manager

You can find the settings in the toolbar above the files section. This toolbar is similar to the settings in an FTP client. It allows you to preview, edit, upload, download, and delete files or folders.

Toolbar

You can select a file and choose the option in the toolbar to perform an action.

The folders will work the same way as they do in any modern FTP client. You can click on any folder to open and view its contents.

Edit plugin files

You can edit any file using the toolbar menu option. It’ll open the file in a popup, so you can make changes and save it.

Edit file manager

If you don’t want to make changes in the file, then you can click on the preview option to see the code.

You can access the media files in the wp-content » uploads folder. The ‘Upload Files’ option in the toolbar allows you to upload multiple images in 1-click. You can also upload zip files and extract them in the file manager.

Extract zip file

That’s all. We hope this article helped you learn how to add a FTP like file manager in WordPress. You may also want to see our guide on useful WordPress configuration tricks that you may not know.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add a FTP like File Manager in Your WordPress Dashboard appeared first on WPBeginner.





Source link

Read more...

How to Add Social Media Icons to WordPress Menus


Do you want to add social media icons on your WordPress menu? While WordPress does not come with a social media profiles section, you can easily use WordPress navigation menus to add and display social media icons on any widget-ready area in WordPress. In this article, we will show you how to add social media icons to WordPress menus.

How to Add Social Media Icons in Menu

Why You Should Add Social Media Icons to Menus?

The biggest advantage of adding social media icons using WordPress menus is that you have the ability to change the order they appear in with a simple drag and drop interface.

While you can use third-party plugins to display social media icons in your sidebar, most of those solutions aren’t as flexible.

Aside from the easy drag & drop interface, when you add social media icons to WordPress menus, you can display it on any widget-ready area on your site including your sidebar, footer area, below posts, etc.

That being said, let’s take a look on how to easily add social media icons to WordPress menus.

Adding Social Media Icons to WordPress Menus

First thing you need to do is to install and activate the Menu Image plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Appearance » Menus page and create a new menu.

New social menu

Next, you need to add custom links for each social media channel separately in your new social menu.

You will notice that there is a menu image button option under each menu item. You can use it to upload your social media icon here.

Set menu icon

It allows you to upload a different icon on hover with the main icon image to display on mouseover.

After that you can select a size for the social icon. There are multiple options for the image size. Make sure that you select the same size for all your social menu icons, so it doesn’t break the menu area.

Social icon size

Next, you need to select a position to display the name of each social channel with your icon. If you only want to display the social icon without any label, then you need to select the ‘Hide’ option under the Title position setting.

Menu title position

Simply repeat the same to add as many social icons as you need.

Once you are done adding menu items, you need to select the display location for your social menu and click on the ‘Save Menu’ button.

Menu display location

Now you can visit your website to see the social media icons in your WordPress menu.

Social media menu

You can also add the social icon menu in your WordPress sidebar. Simply go to Appearance » Widgets page and drag the ‘Navigation Menu’ widget in the sidebar widget area.

Social menu in widget

In the Select Menu dropdown, you should select the social menu that you created above and click on the ‘Save’ button.

Social menu in sidebar

Note: The above image is displayed for example purposes only. To get the widget to look exactly like that, you will need to add custom CSS.

That’s all. We hope this article helped you learn how to add social media icons to WordPress menus. You may also want to see our guide on how to style WordPress navigation menus.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.





Source link

Read more...

How to Easily Add a Client Feedback Form in WordPress (Step by Step)


Do you want to add a client feedback form on your website? Client feedback is very helpful in improving your products and services. In this article, we will show you how to easily add a client feedback form in WordPress.

Creating a client feedback form in WordPress

Why Do You Need a Client Feedback Form?

A client feedback form or a customer feedback form is a contact form that your customers can use to give direct feedback about your product or service.

Client feedback form

Basically, it helps you gain insight into how your clients evaluate your processes, services, products, and brand. You can then use this feedback to make improvements to your business and win even more customers.

Client feedback form is different than Net Promoter Score® (NPS) surveys which are a popular method of measuring customer loyalty.

That being said, let’s take a look at how to easily add a client feedback form in WordPress.

Step 1. Selecting the Best Feedback Form Plugin

The first thing you need to do is to select a WordPress feedback form plugin.

We recommend using WPForms, which is the best WordPress contact form plugin on the market.

WPForms drag & drop form builder makes it easy for anyone to create an online form (yes even the non-technical folks can use it). That’s why it’s being used on over 1 million websites now.

Since feedback forms are simple forms, you can use the free WPForms Lite plugin to build your form.

Now that you have chosen a plugin, the next step is to install it and start creating a client feedback form.

Step 2. Install a Feedback Form Plugin in WordPress

First thing you need to do is install and activate the WPForms plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit WPForms » Add New page to create your feedback form.

Add new form

It will launch the WPForms form builder. Simply start by adding a name for your feedback form and then select the ‘Suggestion Form’ template.

Create a feedback form

WPForms will now load the form template with basic feedback form fields already added to it. You can click on any field to edit it or drag & drop to change their order.

If you want to add a new field, then you can simply select it from the left side of the screen and drag it over.

Change field order

Once you are done, click on the ‘Save’ button to store these settings.

Step 3. Configuring Form Notifications and Confirmation

After creating the feedback form in WordPress, the next step is to configure the form notifications and confirmation.

While confirmation is for the user, form notifications will be for you. You’ll receive an email when a client submits the feedback form on your website.

WPForms allows you to manage both of these settings and customize them as you want from the ‘Settings’ tab within WPForms builder.

First, you can edit the form confirmation settings. Simply go to ‘Confirmation’ tab and select a confirmation type from the dropdown to change the settings.

Confirmation type

If you choose to display a thank you message, then there’s a pre-built message below the confirmation type section. You can change this message to add your own. You can also redirect users to a separate thank you page or a different URL from the confirmation type dropdown.

Next, you can go to the ‘Notifications’ tab. It has the default settings that are ideal for a feedback form and may not need any changes.

Notifications

By default, it will send all the feedback form notifications to the admin email of your WordPress website. If you want to send the notifications to another email address, then you can simply add it in the notifications setting. You can also add comma separated emails to send notifications to multiple email addresses.

Step 4. Adding the Client Feedback Form to Your Website

Now your feedback form is ready, and you can add it to your WordPress website.

Simply edit a WordPress post or page where you want to add the form or create a new one.

On the post edit screen, you’ll notice the new ‘Add Form’ button above the text editor. Clicking on it will bring up a popup where you need to select the feedback form you created earlier.

Add form

When you click on the Add Form button in the popup, it will add the feedback form shortcode to the post editor. You can go ahead and save or publish your post / page.

Next, you can visit your website to see the client feedback form in action.

Client feedback form preview

Step 5 (Optional). Adding Client Feedback Form in the Sidebar

WPForms comes with a widget that you can use to add your client feedback form in the sidebar or any other widget area in WordPress.

You need to go to Appearance » Widgets page in your WordPress admin area. On this page, you can drag and drop the WPForms widget in the sidebar widget area.

Sidebar form widget

Simply add a title for the feedback form widget and select your form to show it in the sidebar. Make sure to click on the ‘Save’ button.

You can now visit your website to see your client feedback form displayed in a sidebar widget.

Sidebar feedback form

We hope this article helped you learn how to easily add a client feedback form in WordPress. You may also want to see our guide on how to create a donation form or how to create a survey in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Easily Add a Client Feedback Form in WordPress (Step by Step) appeared first on WPBeginner.





Source link

Read more...

How to Add a Click-to-Call Button in WordPress (Step by Step)


Do you want to add a click-to-call button in WordPress? As more people visit your website using their smart phones, adding a tap-to-call button makes it easy for them to contact you. In this article, we will show you how to easily add a click-to-call button in your WordPress website.

Adding a click to call button in WordPress

Why Add Click-to-Call Button in WordPress

Many small business websites rely on customers to contact them for quotes, pre-sale information, or support.

That’s why we recommend adding a contact form to all website owners.

However, depending on the industry some users may want to speak with a person right away.

As mobile web traffic increases around the world, often users find it more convenient to just tap-to-call and get the information they need.

If you’re just starting a business, then we recommend looking into a professional business phone service, so you can do call forwarding, share numbers with employees, and answer calls using your cell phones from anywhere (instead of a landline).

That being said, let’s take a look at how to easily add a click-to-call button in WordPress.

Method 1. Adding a Click-to-Call Now Button in WordPress Using Plugin

This method is easier, but the downside is that it will only display click to call button on mobile devices. You can use Method 2 in this article to add phone number on all devices.

First thing you need to do is install and activate the Call Now Button plugin on your site. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Call Now Button page to configure plugin settings.

Call Now Button settings

First, you need to check the box next to button status to enable it. After that you can go ahead and enter the phone number you want people to call.

Optionally, you can provide text to display or hide the icon. If you leave it blank, then the plugin will show a call button with the phone icon.

You can click on the ‘Advanced Settings’ link to further configure the call now button to add tracking, control position, and limit appearance.

Advanced call now button settings

The first option under advanced settings is to change the button color. You can use this option to match your theme’s color scheme.

After that, you can enable Google Analytics tracking which will allow you to see how users interact with the call button in your Google Analytics reports.

Lastly, you can selectively show or exclude button from specific WordPress posts and pages.

Don’t forget to click on the save changes button to store your settings.

Once you are done, you can visit your website on a mobile device to see the call button in action.

Mobile button preview

Method 2. Manually Add Click to Call Button in WordPress

This method allows you to manually add click to call buttons and links anywhere on your WordPress website.

The easiest way to add a clickable phone number to your website is by adding them like this:

<!--This link will work on Android and iPhone. It will be visible to desktop users but will result in an error when clicked -->

<a href="tel:+15555551212">+1 (555) 555-1212</a> 
 
<a href="tel:15555551212">Call Me</a>

These links will open the phone app on mobile devices. On desktop computers, Mac users will see an option to open the link in Facetime, whereas Windows 10 users will see the option to open it in Skype.

You can also use HTML to add an image or an icon next to the click-to-call text link.

Let’s take a look at how to do this.

First, you need to visit the Media » Add New page and upload the image you want to use. After uploading the image, you need to click on the ‘Edit’ link to proceed.

Upload phone icon

This will bring you to edit media screen where you need to copy the file URL. You will need it in the next step.

You can now edit the post, page, or custom HTML widget where you want to display the click-to-call phone icon. In the edit area, you can now add the phone icon image wrapped inside the tel: link.

<a href="tel:+15555551212"><img src="https://example.com/wp-content/uploads/2018/10/phoneicon2.png" alt="Call us" /></a> 

Once done, you can visit your website to see the click-to-call link with the image you uploaded.

Click-to-call button with image icon

You can further customize this by adding more text before or after the link, and use custom CSS to style it.

Click to call button with more text and CSS style

Adding a Click-to-Call Link to WordPress Navigation Menus

You can also add the click-to-call link to your WordPress navigation menu.

Simply go to Appearance » Menus page and click on the custom links tab from the right column. Now you can add the phone number in the link field in the following format:

tel:+155555555

After that, add the text you want to display and then click on ‘Add to menu’ button.

Add click-to-call link to navigation menu

Next, visit your website to see your click to call link in action.

Call link in navigation

Want to add an image icon next to your click-to-call link in the navigation menu? See our article on how to add image icons with navigation menus in WordPress.

We hope this article helped you learn how to add a click-to-call button in WordPress. You may also want to see our guide on how to create a free business email address.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add a Click-to-Call Button in WordPress (Step by Step) appeared first on WPBeginner.





Source link

Read more...

How to Easily Add JavaScript in WordPress Pages or Posts (3 Methods)


Do you want to add a JavaScript in your WordPress pages or posts? Sometimes you may need to add a JavaScript code to the entire website or into specific pages. By default, WordPress does not let you add code directly in your posts. In this article, we will show you how to easily add JavaScript in WordPress pages or posts.

How to easily add JavaScript in WordPress posts and pages

What is JavaScript?

JavaScript is a programming language that runs not on your server but on the user’s browser. This client-side programming allows developers to do a lot of cool things without slowing down your website.

If you want to embed a video player, add a calculator, or some other third-party service, then you will be often asked to copy and paste a JavaScript code snippet into your website.

A typical JavaScript code snippet may look like this:


<script type="text/javascript"> 

// Some JavaScript code

</script>

<!-- Another Example: --!>  

<script type="text/javascript" src="http://www.wpbeginner.com/path/to/some-script.js"></script>


Now, if you add a javascript code snippet to a WordPress post or page, then it will be deleted by WordPress when you try to save it.

That being said, let’s see how you can easily add JavaScript in WordPress pages or posts without breaking your website.

Method 1. Add JavaScript Site-Wide Using Insert Headers and Footers

Sometimes you will be asked to copy and paste a JavaScript code snippet into your website to add a third-party tool. These scripts usually go to the head section or at the bottom before the </body> tag of your website. This way the code is loaded on every page view.

For example, Google Analytics installation code needs to be present on every page of your website, so it can track your website visitors.

You can add such code to your WordPress theme’s header.php or footer.php files. However, these changes will be overwritten when you update or change your theme.

That’s why we recommend using a plugin to load javascript on your site.

First, you need to install and activate the Insert Headers and Footers plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Insert Headers and Footers page. You will see two boxes, one for the header and the other for the footer section.

Insert Headers and Footers plugin settings

You can now paste the JavaScript code you copied to one of these boxes and then click on the save button.

Insert Headers and Footers plugin will now automatically load the code you added on every page of your website.

Method 2. Adding JavaScript Code Manually Using Code

This method requires you to add code to your WordPress files. If you haven’t done this before, then please see our guide on how to copy and paste code in WordPress.

First, let’s take a look at how to add code to your WordPress site’s header. You will need to add the following code to your theme’s functions.php file or a site-specific plugin.


function wpb_hook_javascript() {
    ?>
        <script>
          // your javscript code goes
        </script>
    <?php
}
add_action('wp_head', 'wpb_hook_javascript');

Adding JavaScript to a Specific WordPress Post or Page Using Code

Let’s suppose you only want to load this javascript on a specific WordPress post. To do that, you will need to add conditional logic to the code. Take a look at the following example:



function wpb_hook_javascript() {
  if (is_single ('16')) { 
    ?>
        <script type="text/javascript">
          // your javscript code goes here
        </script>
    <?php
  }
}
add_action('wp_head', 'wpb_hook_javascript');


If you take a closer look at the code above, you will see that we have wrapped javascript code around conditional logic to match a specific post ID. You can use this by replacing 16 with your own post ID.

Now, this code would work for any post type except for pages. Let’s take a look at another example except this one will check for a specific page ID before adding the javascript code to the head section.


function wpb_hook_javascript() {
  if (is_page ('10')) { 
    ?>
        <script type="text/javascript">
          // your javscript code goes here
        </script>
    <?php
  }
}
add_action('wp_head', 'wpb_hook_javascript');

Instead of is_single, we are now using is_page to check for page ID.

We can use the same code with slight modification to add javascript code to your site’s footer. Take a look at the following example.


function wpb_hook_javascript_footer() {
    ?>
        <script>
          // your javscript code goes
        </script>
    <?php
}
add_action('wp_footer', 'wpb_hook_javascript_footer');

Instead of hooking our function to wp_head, we have now hooked it to wp_footer. You can also use it with conditional tags to add Javascript to specific posts or pages.

Method 3. Adding Javascript Code Inside Posts or Pages Using Plugin

This method will allow you to add code anywhere inside your WordPress posts and pages. You will also be able to select where in the content you want to embed the javascript code.

First, you need to install and activate the Code Embed plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to edit the post or page where you want to add the javascript. On the post edit page, click on the ‘Screen Options‘ button and check the ‘Custom Fields’ option.

Show custom fields meta box

Now scroll down and below the post editor, you will see the ‘Custom Fields’ metabox where you need to click on the ‘Enter new’ link.

Add a new custom field

The custom field name and value fields will now appear.

You need to provide a name for the custom field with a CODE prefix (for example, CODEmyjscode) and then paste the javascript code in the value field.

Adding a JavaScript code to a custom field

Don’t forget to click on the ‘Add Custom Field’ button to save your custom field.

Now you can use this custom field to embed the JavaScript code anywhere in this post or page. Simply add this embed code anywhere in your post content.

{{CODEmyjscode}}

You can now save your post or page and view your site. You will be able to see the javascript code by using the Inspect tool or by viewing the page source.

Tip: These methods are for beginners and website owners. If you are learning WordPress theme or plugin development, then you need to properly enqueue JavaScript and stylesheets to your projects.

We hope this article helped you learn how to easily add JavaScript in WordPress pages or posts. You may also want to see our list of extremely useful tricks for the WordPress functions file.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.





Source link

Read more...

How to Add Age Verification in WordPress


Do you want to add age verification to your WordPress website? Some website owners may want to ask their site visitors for age verification before accessing content due to the nature of content and the legal requirements. In this article, we will show you how to easily add age verification on your WordPress site.

Adding age verification to a WordPress website

The first thing you need to do is install and activate the Age Gate plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, the plugin adds a new menu item labeled Age Gate to your WordPress admin area. Clicking on it will take you to plugin’s settings page.

Age Gate settings

First, you need to enter the required minimum age for verification. After that, you can choose whether you want to apply the age verification restriction on all or selected content.

The ‘Varied Age’ option allows you to select different minimum age requirements for different posts and pages on your website.

For age verification, the plugin provides three options. You can display a form where users can enter their age, drop down boxes, or simple Yes/No buttons.

You can also allow users to remember the age verification or go ahead and enable ‘Remember me’ option by default. This would save your users from seeing the age verification message each time they visit your website.

Once you’re done configuring the settings, go ahead and click on the save changes button to store your settings. You can now visit your website to see the age verification screen in action.

Default age verification notice

The default age verification screen doesn’t look very good. Let’s take a look at how to customize it and make it look better.

Customizing Age Verification Screen and Message

The Age Gate plugin allows you to easily customize the appearance of the age verification screen and even include your own message.

First, click on the ‘Messaging’ tab on the plugin’s settings page. From here, you can change the age verification message. You can provide a title, description, terms and conditions, privacy policy, and any other information you want to display.

Change age verification messaging

Don’t forget to click on the save changes button to store your settings.

Next, you need to switch to the ‘Appearance’ tab on plugin’s settings page. From here, you can change background color, foreground color, background image, text color, and more.

Appearance settings for age verification screen

After changing the appearance settings, don’t forget to save your changes.

You can now visit your website in a new browser window using incognito mode to view the age verification screen in action.

More colorful age verification screen

Advanced Age Verification Settings

If you are having trouble with your age verification screen page, then switch to the ‘Advanced’ tab on plugin’s settings page.

The most likely issue you may see are caused by conflicts with your WordPress caching plugin or the caching enabled by your WordPress hosting service.

In that case, Age Gate comes with a JavaScript version that you can enable from the Advanced tab.

Advanced age gate settings

You can also enable other advanced settings from this page like Gutenberg support, adding custom CSS rules, and enabling anonymous age verification.

Setting Age Verification Screen for Specific Posts

If you chose ‘Varied Ages’ or ‘Selected Content’ options in the plugin’s settings page, then you can enable age verification for individual posts and pages.

Simply edit the post or page, and you will see the age restriction options under the publish meta box.

Age verification options for posts and pages

If you run an online store, then you can also use this option for specific products on your site.

We hope this article helped you learn how to add age verification in WordPress. You may also want to see our complete WordPress security guide to keep your site safe and secure.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Age Verification in WordPress appeared first on WPBeginner.





Source link

Read more...