Tag: wordpress

  • Scalable WordPress: How to Scale Your WordPress Site for High Traffic

    As an online business owner, you must understand how to scale your WordPress website to handle high traffic. Even if your site performs well, it may slow down or become unavailable during unexpected traffic spikes. Slow or inaccessible websites can drive visitors away, increasing your bounce rate. Eventually, it will harm your site ranking and […]

    Read More…

    The post Scalable WordPress: How to Scale Your WordPress Site for High Traffic appeared first on Hostinger Tutorials.

    Go to source

  • How to Install WordPress on Amazon Lightsail: Complete Guide

    Amazon Lightsail offers affordable VPS instances powered by Amazon Web Services. In this step-by-step tutorial, you’ll learn how to install WordPress on Amazon Lightsail.

    The post “How to Install WordPress on Amazon Lightsail: Complete Guide” first appeared on WP Mayor.

    Go to source

  • How to Embed Discord Widget into WordPress

    Are you looking to embed a Discord widget in WordPress?

    Discord is a well-known VOIP chat application that allows you to build your own communities and enables your users to communicate with each other through text, voice, and video. As of 2022, Discord has about 150 million active users.

    In this article, we will show you how to embed a Discord widget into WordPress.

    How to Embed Discord Widget into WordPress

    Why Should You Add a Discord Widget to Your Website

    Discord chat allows users to communicate with each other over messages, voice calls, and video calls.

    By embedding a Discord widget in your WordPress site, you can provide a way for your users to connect with each other. This widget will display the total members of your Discord server, and it will also provide an invite link for new members to join.

    Your WordPress users will be able to join your Discord chat rooms through the link provided by the widget, so you can build a huge community for your website.

    That being said, let’s see how you can add a Discord widget in WordPress.

    How to Embed a Discord Widget in WordPress

    To embed a Discord widget in WordPress, you must visit the official Discord website. You will need to create a Discord user account and create a Discord server for your community.

    Step 1. Creating a Discord Username and Server

    Once there, simply click the ‘Login’ button present at the top right corner if you already have a Discord account.

    If you don’t have an account, click the ‘Open Discord in your browser’ button.

    Login to your Discord account or create a new account

    You will be then asked to choose a username for your Discord account.

    This will be your handle for others to find you, but you can change your display name on a server-by-server basis.

    Choose a username for your discord account

    Next, Discord will take you to the ‘Channels’ page and then ask for your date of birth.

    Simply enter your details and click the ‘Next’ button.

    Type your date of birth and click Next button

    Then, you’ll be asked to create your first Discord server. Now, you can either create your own template or choose any of the premade ones.

    For this tutorial, we will be using the ‘Gaming’ server template.

    Create a discord server

    After that, you’ll be asked to choose a ‘Server Name’ for your Discord chatroom. You can also upload an image for the server.

    After choosing a name of your liking and uploading an image, simply click the ‘Create’ button to create your Discord server.

    Type a name for your discord server

    Lastly, you’ll be asked to provide your email account and choose a password for your Discord account.

    Once you provide these details, click the ‘Claim Account’ button.

    Provide your email and password

    Now, an email will be sent by Discord to the email account you provided to verify your details.

    Once you verify your account, your Discord server will be set up.

    Email for verification

    Now all you have to do is embed the Discord widget in WordPress.

    For that, first, you need to click the arrow icon present beside your server name at the top of the Discord ‘Channels’ page.

    Click arrow icon beside your server

    This will open up a dropdown menu.

    Here, you simply have to click the ‘Server Settings’ option to open up your Discord server settings.

    Click server settings option

    Once you’re on the ‘Server Settings’ page, click the ‘Widget’ option from the sidebar.

    This will open up the ‘Server Widget’ section where you simply have to toggle the switch present beside ‘Enable Server Widget’.

    Toggle the enable server widget switch

    After that, simply scroll down to the ‘Premade Widget’ section and click the ‘Copy’ button present below the ‘Premade Widget’ option.

    You can now embed the Discord widget anywhere on your website by pasting this code.

    Copy premade widget shortcode
    Step 2. Embedding the Discord Widget in WordPress

    First, go to the WordPress page or post where you want to embed the Discord widget.

    Then, simply choose the ‘Custom HTML’ block from the block editor and paste the code.

    embed shortcode in Custom HTML block

    After that click the ‘Publish’ button at the top to embed the Discord widget.

    This is how your Discord widget will look on your WordPress website.

    Discord widget on your website

    Note that you can embed the Discord widget in any block-enabled area of your themes, such as a sidebar, header, or footer.

    We hope you learned how to embed the Discord widget in WordPress. You may also want to check our top picks of the best VOIP themes in WordPress and our article on the best email marketing services for small businesses.

    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 Embed Discord Widget into WordPress first appeared on WPBeginner.

    Go to source

  • State of the Word 2022: Matt Mullenweg Highlights Gutenberg’s Progress, Announces New Community Tools

    State of the Word (SOTW) watch parties kicked off around the world this afternoon as Matt Mullenweg delivered his annual address to the WordPress community. A small group of people gathered live in New York City to participate while the majority of enthusiasts watched via the livestream. Mullenweg spent an hour reviewing and celebrating the work done across the project in 2022 before taking questions from the audience.

    At last year’s SOTW, Mullenweg spoke about how Gutenberg adoption is growing beyond WordPress and how he believed it could become “bigger than WordPress itself.” In addition to Gutenberg getting rolled out on the bbPress support forums this week to modernize the WordPress support experience, the block editor has found its way into more apps in 2022.

    Mullenweg cited a few examples including Engine Awesome (a Laravel-based SaaS application), the Pew Research Center’s Political Typology Quiz, the web version of Automattic’s Day One app, and the Tumblr post form. He noted that in Tumblr, 99% of the editor is hidden – there’s no sidebar, everything happens inline. Mullenweg said he is hoping Gutenberg can create an “open block standard that can be used anywhere,” where users learn it on one system and it can be applied in other apps.

    For those who had been missing WordCamps, one of the major highlights of 2022 was the return to in-person events. From 2021 to 2022, the number of meetup groups doubled. Only one WordCamp was held in 2021 but that jumped to 22 WordCamps in 2022. Mullenweg highlighted how WordCamps have historically been “the magical ingredient” for onboarding people to contribute and teaching them about WordPress culture.

    For being just one year back into in-person events, WordPress has done well in 2022 with 1,399 release contributors and 652 contributing for the first time. There were 204 people who contributed to all releases in 2022 and 424 who contributed in 2021 and returned in 2022. Some 322 contributors took a break in 2021 and returned in 2022.

    People are also contributing to Openverse, which has indexed more than 22 million images, 1.1 million audio files, and has handled more than 59 million requests in the last 30 days.

    Tools Coming to the Community: New Taxonomies for the Plugin and Theme Directories and Staging “Playground” that Runs WordPress in the Browser

    It wouldn’t be the State of the Word without a few exciting announcements. Mullenweg unveiled a plan to add new taxonomies for the theme and plugin directories that will help users more quickly ascertain the purpose of the extensions they are considering.

    For example, there would be a tag for the type of plugins that a developer might create to solve a problem but may not be intended for wide public use and may not come with dedicated support. Another tag would be designated for “Community” plugins, which Mullenweg said is for software that “belongs to all of us” with the lead developers stewarding it for the next generation. This tag is for plugins that do not have any upsells and invite contributions. Some of these plugins will be canonical plugins, those that are officially supported by core developers and receive attention from the security team. Gutenberg and the importer plugins are a few examples.

    Another tag would be designated for commercial plugins that have some sort of upsell and often include commercial support. Anything with a pro version will fall within this category. Mullenweg said he wants WordPress.org to create an environment where commercial and non-commercial plugins can exist together harmoniously.

    The new taxonomies will be launching in the directories this month and will also eventually make their way into the plugin and theme screens inside the WordPress admin. This will be a major improvement that will give users of all experience levels a better understanding of the extensions they are examining, making it easier to select the right type for their needs.

    Mullenweg also announced WordPress’ official support for the WordPress Sandbox project, which we featured earlier this month. He outlined a plan for what will officially be called “WordPress Playground.” The experimental project uses WebAssembly (WASM) to run WordPress in the browser without a PHP server, making it possible to spin up new playgrounds in just a couple of seconds. This will enable things like a guided, interactive WordPress landing experience where developers can edit code live and see the results right away. It will also make it possible for users to try plugins directly from the directory and may someday be used to allow people to contribute to WordPress core.

    A new website for WordPress Playground is located at https://developer.wordpress.org/playground/ where anyone interested can check out the experimental project for running a WordPress instance entirely in your browser. There’s also a new #meta-playground Slack channel for those who want to join the conversation.

    WordPress turns 20 next year. Mullenweg noted that not many software projects make it that long but WordPress is also growing faster than ever, currently powering 43% of websites according to W3Techs and 32% according to Builtwith. A new website at wp20.wordpress.net will be headquarters for the festivities, including swag, merchandise, and a new Milestones book for the most recent 10 years of WordPress’ history.

    If you didn’t have the chance to catch the State of the Word this afternoon, check out the recording below to hear Mullenweg’s vision for the next phases of WordPress and see demos of all the progress made on block themes and full-site editing in 2022.

    Go to source

  • 5 Best WordPress Job Board Plugins (for 2023)

    Turning your website into a job board platform can be complicated without the right tools; you’ll need a way to track responses, easily remove and add listings, and reviews applicant profiles. Luckily, there are a ton of great WordPress Job Board Plugins that are available so that you can make a beautiful and functional job board in no time.

    What is a WordPress Job Board Plugin?

    A WordPress job board plugin is a way for employers to advertise their vacant positions to job seekers via their WordPress website. It’s an awesome tool to implement because with the right plugin you don’t need to be reliant on external platforms for job listings.

    Plus, adding a functional job board to your website can help gain more traffic and even get additional revenue, if you list positions from other employers on your site. Let’s take a look at some of the best job board plugins available!

    5 Best WordPress Job Board Plugins

    1. WP Job Manager

    WP job manager logo

    WP Job Manager is an incredibly user-friendly WordPress plugin brought to you by people from Automattic. With just a few clicks, you can have a live job portal up and running by adding new pages and shortcodes. It enables recruiters to post their job postings by registering on your website. Job seekers can also manage the jobs they are interested in from a straightforward dashboard.

    Through premium add-ons, you can also use the plugin to publish paid jobs online and earn money from them. Additionally, it features add-ons for managing a resume, monetizing your job board with WooCommerce, sending email alerts, and more.

    Key Features of WP Job Manager:

    • Job listing filters.
    • A user-friendly admin UI.
    • Frontend form submissions.
    • Searchable and filterable job listings via shortcode.
    • Shortcodes work with most themes, including Divi

    You can manage all of your job listings from the WordPress dashboard, and your users can also control their applications from their dashboard.

    WP Job Manager is for you if…

    • You want to create filterable jobs for different categories.
    • You want to monetize your job board.
    • You want to use shortcodes to output jobs in different formats.

    See our complete guide on how to create a job board in WordPress using this plugin.

    WP Job Manager Pricing: Free. Premium features start at $19 / year. | More Information

    2. WP Job Openings

    WP Job Openings logi

    WP Job Openings is another stellar freemium job board plugin. It provides various features for developers to alter the appearance and feel of your customized job board, such as versatile filter choices, two layouts for showing job listings, and two filtering options.

    It’s best used to build and add to your business’s career page. Applications are automatically formatted for readability, and you can see PDF copies of resumes and CVs without downloading each separately. It does, however, compile all applications into a single tab, which can be challenging if you’re posting positions from multiple businesses.

    Key Features of WP Job Openings:

    • Easy setup.
    • Clean grid layout.
    • Unlimited Job Specifications.

    Job board made with WP Job Openings

    The clean grid design makes looking for a specific job super easy for your users.

    Settings menu

    In addition, since WP Job Openings already includes a default form for applicants to submit their applications, building a form requires little to no busy work.

    WP Job Openings is for you if…

    • You want to display open positions using grid or list layouts.
    • You are focused on getting applicants for your site rather than multiple companies.
    • You want unlimited job specifications and filtering options.

    WP Job Openings Pricing: Free. Premium add-ons for $34/yr. | More Information

    3. WPJobBoard

    WPJobBoard is another premium WordPress job board plugin with everything you need to add a powerful career search engine to your webpage. In addition, it has a ton of tools that make it simple to make, manage, and display job listings, resumes, forms, and other materials.

    The ability to customize WPJobBoard is what really makes it stand out. With this plugin, you can modify the plugin’s functionality and customize templates for email notifications and job application forms. The plugin’s PHP Templating Engine allows you to overhaul your job board completely, so it’s tailor-made for your site. Additionally, it has a resume database and an employer interface where users can look for the ideal individual.

    Key Features of WPJobBoard:

    • SEO and social media feautures.
    • Works with any WordPress theme.
    • Drag and drop editor.
    • Great support team

    JBBoard Admin creation page

    The plugin comes with its own free theme and is compatible with all WordPress themes. Additionally, it enables you to receive payments and gives employers membership packages, coupons, and discounts.

    WPJobBoard is for you if…

    • You want a solution with multiple monetization options. (Works with PayPal, Stripe, etc.)
    • You want a solution compatible with any theme.
    • You want access to a simple drag-and-drop editor.

    WPJobBoard: $97/yr | More Information

    4. Simple Job Board

    Simple Job Board banner logo

    Simple Job Board is a short-code-based job board plugin. It allows you to create a system for a highly extensible online job board. Add the [jobpost] shortcode wherever you like on your website to start using the plugin.

    The ability to customize is where this plugin excels. You can design unique application forms for each job opening, and you can create multiple-choice options, designate mandatory fields, and much more. Available in 14 languages, Simple Job Board is ideal if you’re running a multilingual site.

    Key Features of Simple Job Board:

    • Uses a shortcode for complete control.
    • Include unique specifications and requirements for each job post.
    • Categorize reviewed applications for easy management.
    • Review applications and categorize them using multiple statuses.

    Simple Job Board UI

    Simple Job Board provides customers forms, although these options are limited. However, the pro version offers more possibilities.

    Simple Job Board is for you if…

    • You have a website using multiple languages.
    • You want a shortcode solution.
    • You want to be able to short out unsuitable applicants quickly.

    Simple Job Board Pricing: Free. Premium add-ons are available. | More Information

    5. WP Job Portal

    WP Job Portal logo

    WP Job Portal is another great option for a job board plugin. It’s intended to make it simpler and quicker for job seekers to identify the positions that best fit them and for companies to find the most qualified applicants.

    You can quickly narrow down your job postings by filtering results by application title, country, category, and more using a simple auto-fill option. Users can also save jobs they are interested in and go back to apply, and you can check how your listing is doing with a sleek-looking dashboard.

    Key Features of WP Job Portal:

    • Filter system.
    • Custom fields on registration forms.
    • Resume Parsing.
    • Save jobs to refer to them later.

    WP Job Portal dashboard

    WP Job Portal is essentially plug-and-play. It’s compatible with any theme for WordPress, so you know it’ll look great on your site, you can customize various options for both employers and job seekers from the dashboard.

    WP Job Portal is for you if…

    • You want to be able to parse through candidate resumés.
    • You want a high-quality UI.
    • You want a solution that’s setup without needing to make an account on an external platform.

    WP Job Portal Pricing: Free. Basic Add-on is $49/yr. | More Information

    Final Thoughts on WordPress Job Board Plugins

    You can quickly and easily post open opportunities using a WordPress job posting plugin. You can do so with the intention of internal hiring or use your website as a hub for job seekers and finders. This is a fantastic method to increase the number of people that visit your WordPress website, broaden your applicant pool, and perhaps even generate some extra revenue.

    Hopefully, one of the plugins listed above has features you’re looking to use on your site.

    Did we miss anything? Leave a comment telling us below!

    Article featured image by Viktoria Kurpas / shutterstock.com

    The post 5 Best WordPress Job Board Plugins (for 2023) appeared first on Elegant Themes Blog.

    Go to source

  • Create a Leaky Paywall in WordPress

    How do you go about creating an effective soft paywall on your WordPress site?

    The solution is a WordPress plugin called Leaky Paywall. In this article, I’ll demonstrate what it can do for your publishing.

    The post “<strong>Create a Leaky Paywall in WordPress</strong>” first appeared on WP Mayor.

    Go to source

  • How to Duplicate a Page in WordPress (3 Simple Ways)

    As we all know, WordPress is a powerful tool that allows users to build websites. You can create articles (more commonly known as blogs or blog posts), upload documents, manage images and so much more. What started out as a blogging platform, has grown over the years into the content management system (CMS) of choice for more than one-third of the internet.

    However, amidst the many features that WordPress can boast of (like full-site editing), you aren’t able to duplicate a post or page out of the box. It seems like a slight oversight, but not one that we can’t fix ourselves. In this article, we’ll go over three easy ways that you can use to duplicate a page in WordPress.

    Reasons to Duplicate a Page

    There are many reasons why one may want to duplicate a page or post in WordPress. An example might be that you’ve built a really awesome landing page for a new product that you’re launching. However, you may want to do some A/B testing for some Facebook ads that you’re running to promote this product. As opposed to redoing all your hard work again, you can simply duplicate said page, make some slight tweaks and cut your design time all the way down.

    Another reason to duplicate a page is to help with your design process. If you have a really large site, you may need to duplicate a number of pages to add additional content for other members of your team. If you had to re-create each page repeatedly, you could slow down your design process which could lead to timelines being missed. Not to mention that you might leave some of your teammates a tad bit upset. As such, having a quick and easy way to duplicate pages is something that can come in handy in your day-to-day while working on your WordPress website. This is one of the reasons we added the Divi Cloud feature in Divi. With it, you can store all kinds of page layouts and more to speed up the design process.

    Watch Out for Duplicate Content

    Duplicating a page in WordPress should always be a means to an end. You don’t want to have two pages with the same content live on your site. This is bad practice and will have a negative effect on SEO. To learn more, check out our ultimate guide on duplicate content and SEO.

    How to Duplicate a WordPress Page (Step-by-Step)

    Now that we know why one would want to duplicate a page, let’s get into the three different ways that you can duplicate a page on your latest WordPress project.

    1. Duplicating a Page Using a WordPress Plugin

    There are a number of WordPress plugins that can be used to duplicate pages on WordPress. Always bear in mind what features you are looking for as well as the ratings and reviews of a plugin before installing it onto your WordPress website. Bearing all these things in mind, for this tutorial, we’ll be using the free version of the Duplicate Page plugin.

    To install the plugin, follow these steps:

    1. In the left-hand menu, click Plugins, and then click Add New
    2. In the search field that appears at the top right of the screen, type duplicate page
    3. Look for the Duplicate Page plugin, and then click Install Now

    Steps to duplicate a page in WordPress using a plugin

    Once the plugin is installed and activated, navigate to the Pages section of your website. To navigate there, click Pages and then click All Pages from the left-hand menu. Now, you will notice that when you hover over the name of a page, an additional menu item has been added titled Duplicate This.

    Using the newly added Duplicate This button from the plugin just installed

    Once you are ready to duplicate your page, simply click the Duplicate This link under the page listing that you would like to duplicate. That’s it!

    After that, you can edit the new duplicate page as needed. Make sure to edit the permalink for the new page. As it’s a duplicate, the permalink URL will also be copied over so ensure to edit it to match your new content.

    Remember to change your permalinks after duplicating a page!

    It is a good idea to visit the Duplicate Page plugin’s settings to make sure it is functioning the way you need it to.

    Duplicate Page Plugin - Settings Page

    The options allow you to control how you want pages to be duplicated and where you want the duplicate page link to be displayed.

    2. Duplicating a Page in WordPress with Divi

    For Divi users, you can easily duplicate pages (or templates) in WordPress. When using the Divi Builder, you have a built-in option to duplicate (or clone) existing pages in WordPress whenever you create a new page.

    Cloning an Existing Page Using the Divi Builder

    To duplicate a WordPress page in Divi, simply click to use the Divi Builder when editing a new page.

    When you click to use the Divi Builder to edit a page, you will see a popup that gives you three options as to how to proceed with your new page. The option we’re interested in is the third and last option, Clone Existing Page.

    Duplicating a page in WordPress using the Divi new page popup

    Once you select the clone existing page option, you will see all the existing pages within your site that you can choose to clone.

    select duplicate page in Divi Library

    Simply select the page from the list and the page will be duplicated and ready to edit. You won’t need to change the permalink as you’ll be working from a brand new page.

    Using Divi Layouts

    One of the great features of Divi is easy it is to add, create, and manage page layouts. A page layout contains the entire page design and content. Divi comes with over a thousand pre-made page layouts to jumpstart your page design and content. Plus, you can save your custom page layouts in your Divi Library for later use. Or you can save them to your Divi Cloud and duplicate cloud items all in one place. This takes the process of duplicating pages to a whole new level!

    3. Duplicating a Page in WordPress Manually: Copy and Paste

    To duplicate a page in WordPress manually, you can simply go into your page and copy the content within that page. Then paste the content into a newly created page.

    Copy and pasting content also allows you to duplicate the contents of a page in WordPress

    Here’s how to do it. First, navigate to All Pages.

    Navigate to All Pages

    Once you have your list of pages, here’s what happens next:

    1. From the list of pages, hover over the page that you’d like to edit.
    2. Then, select Edit under the page that you would like to duplicate

    Edit all pages

    After you have entered the page editor, do the following steps:

    1. Next, highlight all the content within the main content area.
    2. Using your mouse, move over to the highlighted content and right-click. Then, select Copy from your system menu.
    3. Towards the top of the page, click on the WordPress icon. This will take you back to the All Pages screen.

    Right Click Copy and Go Back to the All Pages screen

    You will now need to create your new page by clicking on the Add New button from this screen.

    Add new page

    Once you have a new, blank page in front of you, using your mouse, right-click, then press Paste. This will bring the content from the former page into this new page. Make any necessary edits that you need to make, and then click Publish from the Publish box at the top right-hand side of the page.

    TIP: If you used any special code within the page, it would be ideal to switch to the text/HTML tab editor to ensure that you are copying the code used on the page, in addition to the written content.

    In Conclusion

    While WordPress doesn’t have an out-of-the-box solution to duplicate pages, it is not something that is out of the question. With handy tools like Duplicate Page plugin and the Divi Builder, plugins and maybe even a bit of code here and there, you’ll be able to speed up your process, create content faster and copy pages across your WordPress install with ease.

    Do you have a favorite method for duplicating pages in WordPress? Let us know in the comments below!

    The post How to Duplicate a Page in WordPress (3 Simple Ways) appeared first on Elegant Themes Blog.

    Go to source

  • 5 Ways to Build Customer Loyalty for your Online Store

    Customer loyalty stems from knowing what your customers want, streamlined checkout and shipping processes, membership programs, and superb service. Regardless of the size of your company or the sector in which it operates, building customer loyalty is essential since a tiny proportion of repeat customers account for a disproportionately significant share of the revenue.

    The post “5 Ways to Build Customer Loyalty for your Online Store” first appeared on WP Mayor.

    Go to source

  • WordPress Security Based on Facts and Statistics

    WordPress can be hacked in many different ways – hackers can be very creative in going after targets. This makes it impossible and dangerous to list all the ways a WordPress website can get hacked, as it may provide a false sense of security. However, we can look at one example that illustrates the process a hacker might typically take to hack a WordPress website.

    The post “WordPress Security Based on Facts and Statistics” first appeared on WP Mayor.

    Go to source

  • How to Change Fonts in WordPress (8 Ways)

    Fonts play an essential role in the design of your website. They set the tone for the design and overall aesthetic and can either enhance or hinder its look and feel. Once you have chosen the font sets for your website, you’ll need to know how to change them. There are multiple ways to change fonts in WordPress. How you change them depends on a number of factors including what type of theme you use, whether you will require a plugin, or if you plan to add them manually. In this post, we’ll discuss each method and show you how to change fonts in WordPress. Let’s get started.

    What are Web Fonts?

    Google fonts

    Web fonts are provided by Google, Adobe, FontSpace, and others. They give you the ability to embed fonts into your website to change the design. Unlike desktop fonts, web fonts are stored in the cloud. When a visitor hits your site, web fonts are pulled in dynamically from the font provider. They are displayed on your website within a matter of seconds when optimized correctly. Web fonts are a quick and easy way to use multiple fonts without having to embed them into your website.

    The 4 Web Font Types

    Similar to desktop fonts, there are four major font types:

    • Serif: Serif fonts are usually only suitable for use on headings because of their embellishments, which are usually located on the top and bottom of each letter.
    • Sans Serif: Alternatively, Sans Serif fonts can be used on both headings and body text because they are clean and easy to read.
    • Script: Script fonts should generally be used sparingly due to their whimsical appearance.
    • Display: Lastly, display fonts are typically bold and chunky fonts, so they should be used in a limited capacity for headings, but never as body text.

    Using Web Fonts in WordPress

    There are a few ways to use web fonts in WordPress. You can embed them manually, use a plugin, or use your theme’s settings, whether it is a full site editing block theme, a generic WordPress theme, or a theme which uses a theme builder. In most cases, developers will resort to using Google Fonts in WordPress because they are free and easy to integrate.

    How to Change Fonts in WordPress (8 Ways)

    How you change fonts in WordPress can be achieved in a number of ways. Certain premium themes like Divi have a built in font manager with Google fonts automatically loaded. Additionally, Divi allows you to enable all Google font subsets in the theme options, in case you want all of them to be included.

    In some other themes aside from Divi, you can use the customizer settings to change the theme’s default fonts. Depending on the theme, there could be limited fonts available with this method. If you are using full site editing (FSE) block themes such as Twenty Twenty-Two, you can add them into the theme.json file. Additionally, you can install a font manager plugin, or use the Gutenberg block editor. Lastly, you can manually add them. Let’s take a look at how to change fonts in WordPress using each method.

    1. Using the Theme Customizer Options to Change Fonts in WordPress

    When using the WordPress theme customizer, there are a few options depending on your theme. As an example, we’ll use the Genesis theme to change the default font. Log in to your WordPress panel. Navigate to Appearance > Customize.

    WordPress customizer

    When the customizer screen appears, click on Typography. There will be two options including Font Manager and Add Typography. Under the first option, click to activate the dropdown menu. From there, you can scroll through or search for a specific font to use on your site. Once you chose a font, click the Add Font button to add the font to your site. You can repeat the steps to add additional fonts that can be assigned to certain elements

    Adding fonts to WordPress

    The second option, Typography Manager allows you to assign fonts that have been added to your site to different areas. In our example, you can add them to the body, site title, site description, menu items, headings, and more.

    This is where you can change fonts as well. First, select the target element you wish to change the font for. Next, select the font family. Choose the font weight, and any text transformation you wish to apply. Then, choose the font size, weight, line height, and letter spacing. Repeat the process for other elements as you see fit.

    Change font in WordPress theme customizer

    2. Changing Fonts Using WordPress Full Site Editing

    Most full site editor themes come preloaded with a few fonts to choose from. Themes such as Blockbase, Emulsion, Aino, and Twenty Twenty-Two give you the ability to change fonts in the theme’s editor. For example, we’ll use the Blockbase theme. To change fonts, navigate to Theme > Editor.

    Aino theme change font

    Next, click the style icon on the top right side of your screen.

    change fonts in WordPress FSE

    Next, click the typography section to change the font for your theme.

    Click typography

    In our example, you can change the text for your site as well as links text.

    select text

    Under font family, click the drop down menu to reveal your font choices. Select the font you wish to apply. You can also choose to set the font size, line height, and appearance. After making a selection, click the save button at the top right of the page to apply your changes.

    Apply change to font FSE

    3. Changing WordPress Fonts with the Block Editor

    Using the block editor, you can change the appearance of your fonts. You can change text and text background color, as well as set a size and appearance. The appearance option generally includes font weight, which is dependent on the font chosen in your theme’s settings.

    There are additional options in blocks with text. Text can be bolded, italicized, and you can set the alignment of your text.

    text module options block editor

    There are additional options to highlight your text, as well as add inline code and images, or strikethrough it. Lastly, you can add subscript charaters, as well as superscript ones.

    block editor additional options

    4. Using a Plugin to Change Fonts in WordPress

    As previously mentioned, generic WordPress themes will need the help of a plugin such as Fonts Plugin | Google Fonts Typography in order to change fonts in WordPress. We’ll walk through the steps to install the plugin, configure it, and show you how to change fonts on your site while using it.

    Navigate to Plugins > Add New. Search for Fonts Plugin | Google Fonts Typography in the search bar. Click Install Now to add the plugin to your website.

    Google Fonts Typography install

    Next, activate the plugin.

    Activate the plugin

    To access the plugin, navigate to Appearance > Customize. When the page reloads, there will be a new section added to your customizer called Fonts Plugin.

    fonts plugin

    Plugin Settings

    font plugin basic settings

    Once you click the tab, there are four menu options including basic settings, advanced settings, font loading, and debugging. Basic settings enables you to choose a default font family from over 1400 Google font options. You can also set a font for headings, as well as buttons and inputs.

    Advanced Settings allow you to change the fonts for branding, which includs your site title and tagline. Under navigation settings, you can change the font for your site’s navigation menus.

    Fonts plugin advanced settings

    Under the Content Typography section, you can change body text, as well as the font for all headings tags individually.

    change font content typography

    The Sidebar and Footer tabs allow yout to change the fonts for those sections of your site, which include both heading and content typography. The last tab, Load Fonts Only, allows you to load certain fonts, but doesn’t automatically add them to an element. This is useful when you want to use fonts only on certain blocks. The Font Loading tab is exclusive to the pro version of the plugin.

    font plugin debugging

    Under Debugging, you can enable the force styles checkbox which will allow you to determine why your fonts aren’t loading. An additional checkbox, disable editor controls, removes the font controls from individual posts and pages. Font display gives you four options including swap, block, fallback, and optional. The Reset All Fonts button will allow you to reset all of the changes you’ve applied in the plugin.

    5. Using the Divi Theme Builder to Change Fonts

    Divi by Elegant Themes

    Divi is one of the most powerful theme builders in the world. When it comes to changing fonts in WordPress, there are a ton of options with Divi. First, it comes standard with built-in Google fonts. Fonts can be used in any module with text options, as well as the theme builder. Divi makes it easy to style fonts, and combined with the theme customizer, you can set fonts globally. Let’s take a look at how to work with fonts in Divi.

    To set fonts as a default font, enable the theme customizer. Start by navigating to Theme > Customize from the WordPress admin panel. When the customizer loads, click General Settings > Typography. There are multiple options available to set body and heading size, as well as line height, letter spacing, font style, heading and body font, and colors for each. Divi has the entire Google font library built in, so choices for font are nearly unlimited.

    Divi theme customizer options

    In addition to the theme customizer options, fonts can be changed at the module level where text is present. As an example, we’ll demonstrate how to change fonts in the text module. Under the design tab, you’ll find all of the text settings available to you. You can change body text, heading text, as well as color and styles for both. If you want to adjust the heading font, simply click into the dropdown menu to activate it. You can change your font, then a number of font styles including the font weight, style, text alignment, color, size, and more.

    Change Divi heading font

    6. How to Add a Custom Font in WordPress Manually

    Thankfully, if you plan to manually load a custom font onto your site, it’s a fairly easy process. That being said, you will need to be comfortable editing theme files. We suggest using a child theme **link to ultimate guild on how to use a child theme** to perform this action, since the slightest error can send your site into a tailspin. Keep in mind that adding a custom font to a generic WordPress theme won’t give you a ton of options, but it will keep your site free of speed-draining bloat. This is useful if you know you plan to only use a couple of fonts, and don’t require a ton of options.

    You’ll need to have a general understanding of how the WordPress file structure works, along with basic coding skills. We’ll be editing a couple of theme files and adding some CSS. Finally, you’re going to need your favorite code editor and an FTP program such as FileZilla.

    For our example, we’re going to add the Google font Roboto. The first step is to head to Google Fonts and find Roboto. Select the font styles you want to embed.

    Change font in WordPress manually

    Adding the Code

    There are a couple of ways to do this, but for our example, we’re going to do it the WordPress preferred way of enqueuing. First, copy the link to the Roboto font. This is included in the embed code from Google and will look like this example.

    https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&amp;amp;amp;display=swap
    

    Next, open FileZilla and connect to your website via FTP. Navigate to /public-html/wp-content/themes/yourthemechild/functions.php. It’s a good idea to use a child theme for this process since you will be editing a core theme file. Note: replace yourthemechild with your child theme’s name.

    open functions php in FileZilla

    Right click on the file to open it. Add the following code at the end of the other code in the file.

    function add_my_font() {	 	 
    wp_enqueue_style( 'add_my_font', 'https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&amp;amp;amp;amp;amp;display=swap', false ); 	 	 
    }	 	 
    add_action( 'wp_enqueue_scripts', 'add_my_font' );
    

    Next, you’ll need to tell WordPress where you want the font to be used. For this, we’ll add a bit of CSS to our child theme’s style.css file. Locate the file in the same folder we worked out of. Add the following code:

    .body, .h1, .h2, .h3, .h4, .h5, .h6 { 
    font-family: 'Roboto', sans-serif;	 	 
     }
    

    This code tells WordPress that you want to use the Roboto font on all body text, as well as all headings on the site. Keep in mind that every theme is different, so if our code doesn’t work for you, reach out to your theme’s developer or use your browser’s inspection tool to locate the specific CSS rule for your fonts.

    7. Adding a New Custom Font in WordPress Full Site Editing Theme

    In full site editing (FSE) themes, it’s no longer necessary to use the @font-face CSS rule to add fonts. In FSE themes, you add the font to the asset/fonts/ folder, then call them in the theme.json file. Let’s go over the steps to add a custom font from Google Fonts to the Twenty Twenty-Two theme, then add the code to the theme.json file to use the font in your website.

    For this example, we’ll use the Roboto font family from Google Fonts. The first step is to download the font from the Google Fonts library. Click the Download Family button at the top right corner of the screen.

    Next, navigate to your WordPress themes files either on a local machine or via FTP. For this example, we’ll use a WordPress install on our local machine. Please note the file location, as you will need to call it in the code we’ll add to the theme.json file later.

    To locate your theme’s font folder, navigate to wp-content/themes/twentywentytwo/assets/fonts. Next, drag the downloaded font folder into the fonts folder of your WordPress install.

    drag font folder

    Next, locate the theme.json file by navigating to wp-content/themes/twentytwentytwo/theme.json.

    theme json file location

    Right click on the file to open it in your favorite code editor. Under the settings section of the theme.json file, scroll down to just past the source sans pro code in the typography settings.

    typography settings theme json

    Adding The Code to Theme.json File

    Next, add the following code after the }, in the Source Serif Pro font section, and before the closing bracket ], of the typography section:

    {
        "fontFamily": "\"Roboto\", sans-serif",
        "name": "Roboto",
        "slug": "roboto",
        "fontFace": [
            {
                "fontFamily": "Roboto",
                "fontWeight": "900",
                "fontStyle": "normal",
                "fontStretch": "normal",
                "src": [ "file:./assets/fonts/roboto/roboto-black.ttf" ]
            },
            {
                "fontFamily": "Roboto",
                "fontWeight": "700",
                "fontStyle": "normal",
                "fontStretch": "normal",
                "src": [ "file:./assets/fonts/roboto/roboto-bold.ttf" ]
            },
            {
                "fontFamily": "Roboto",
                "fontWeight": "200",
                "fontStyle": "normal",
                "fontStretch": "normal",
                "src": [ "file:./assets/fonts/roboto/roboto-light.ttf" ]
            },
            {
                "fontFamily": "Roboto",
                "fontWeight": "400",
                "fontStyle": "normal",
                "fontStretch": "normal",
                "src": [ "file:./assets/fonts/roboto/roboto-medium.ttf" ]
            },
            {
                "fontFamily": "Roboto",
                "fontWeight": "300",
                "fontStyle": "normal",
                "fontStretch": "normal",
                "src": [ "file:./assets/fonts/roboto/roboto-regular.ttf" ]
            },
            {
                "fontFamily": "Roboto",
                "fontWeight": "100",
                "fontStyle": "normal",
                "fontStretch": "normal",
                "src": [ "file:./assets/fonts/roboto/roboto-thin.ttf" ]
            },
            {
                "fontFamily": "Roboto",
                "fontWeight": "900",
                "fontStyle": "italic",
                "fontStretch": "normal",
                "src": [ "file:./assets/fonts/roboto/roboto-blackitalic.ttf" ]
            },
            {
                "fontFamily": "Roboto",
                "fontWeight": "700",
                "fontStyle": "italic",
                "fontStretch": "normal",
                "src": [ "file:./assets/fonts/roboto/roboto-bolditalic.ttf" ]
            },
            {
                "fontFamily": "Roboto",
                "fontWeight": "400",
                "fontStyle": "italic",
                "fontStretch": "normal",
                "src": [ "file:./assets/fonts/roboto/roboto-italic.ttf"]
            },
            {
                "fontFamily": "Roboto",
                "fontWeight": "300",
                "fontStyle": "italic",
                "fontStretch": "normal",
                "src": [ "file:./assets/fonts/roboto/roboto-lightitalic.ttf" ]
            },
            {
                "fontFamily": "Roboto",
                "fontWeight": "400",
                "fontStyle": "italic",
                "fontStretch": "normal",
                "src": [ "file:./assets/fonts/roboto/roboto-mediumitalic.ttf" ]
            },
            {
                "fontFamily": "Roboto",
                "fontWeight": "100",
                "fontStyle": "italic",
                "fontStretch": "normal",
                "src": [ "file:./assets/fonts/roboto/roboto-thinitalic.ttf" ]
            }
        ]
    }
    

    The file should now look like this:

    typography settings final

    Save the file and add it back to the fonts folder by overwriting the file on your local machine or uploading it via FTP.

    Viewing the Font In Twenty Twenty-Two Theme

    With the new font installed into your theme, you can view it by navigating to Appearance > Editor in Twenty Twenty-Two. When the screen refreshes, click the styles button.

    styles button

    Next, click typography.

    typography

    Now you’ll be able to select the new font from the dropdown menu, as well as adjust the font weight and other text styling options for your site.

    roboto font

    8. Adding a New Custom Font in WordPress Using Divi

    Divi makes it easy to upload custom fonts into your website through a text module. Divi accepts both ttf and otf file formats. If you try to upload any other format, you’ll receive an error message.

    To get started, add or edit a page in your Divi website. Next, add or edit a text module in your page. Click on the settings icon in your text module to bring up the module settings.

    text module settings

    Next, click on the design tab, then expand the text settings. Click on the drop-down menu located next to the font name.

    text dropdown

    You’ll see a list of all fonts available in Divi, as well as the current font, and an upload button. To add a new custom font, click upload.

    upload new font

    The upload font popup window will appear. Either click the choose font files button, or drag your ttf or otf font into the drag files here area.

    upload or drag new font

    Next, you’ll want to give your font a name, and click the all checkbox to ensure that all font weights are supported for your font. Once you’ve set the options, click the upload button to add your font to Divi.

    name new font

    We should note that when you add a custom font to your Divi website, it will be made available throughout the site.

    Tips and Best Practices When Changing Fonts in WordPress

    Optimize Your Fonts

    While using Google Fonts or any other web font provider, you should take steps to optimize your fonts. Not doing so can result in a slower website. Simple things like limiting the number of font families being used is a huge page load time reducer. Check out our post Using Google Fonts in WordPress (5 Tips for Optimizing Performance) for more information.

    Choose Good Fonts

    While using web fonts is a great choice, it only matters if you are using the right ones. Take the time to research the best web fonts for your site. Also, consider font pairing choices. It’s probably not a good idea to use two serif fonts together. After all, that can make things super busy and hard to read. To learn about some excellent choices offered by Google fonts, read The Best Free Web Fonts.

    Consider Those With Accessibility Concerns

    In addition to choosing the right font(s), you should be mindful of those who have trouble seeing smaller text. Always use at least 16px for body text, and use a legible font. The same can be said for button text. Make sure that your button text is large and in charge. That is beneficial not only for those with visual impairments, but are good call to action principles as well.

    FAQs For Changing Web Fonts in WordPress

    How many fonts should I use?

    It’s a good idea to keep fonts to a minimum. Only use the fonts that you plan to use. If you want to have options, use a plugin or theme builder that pulls fonts from the cloud, such as in Google Fonts CDN.

    Can I use downloaded fonts in WordPress?

    Yes, but it’s not a simple process. There are a lot of steps involved, and you’ll need some basic coding knowledge to do it. For more information on using downloaded fonts, check out How to Use Downloaded Fonts in WordPress without a Plugin on the Elegant Themes blog.

    Can I change fonts in the Twenty Twenty-Two theme?

    Yes, you can. That being said, there are only two options that come standard with it. Adding fonts to that specific theme isn’t the easiest path and requires editing theme.json and functions.php.

    Are there good options to change fonts in WordPress with plugins aside from the one demonstrated in this post?

    Yes! Check out our list of the 9 Best Typography Plugins for WordPress to see some of our recommendations.

    Wrapping Things Up

    There are a number of ways to change fonts in WordPress. If you’re using a generic theme, the easiest way to do it is to use a plugin such as Fonts Plugin | Google Fonts Typography. Full site editing themes generally give you more than one or two options, but some don’t make it incredibly easy to add more. Consider using a theme builder such as Divi because it gives you the most options. Finally, if you are a hands-on type of developer, or only need a couple of options, adding fonts manually may be right for you.

    How do you change fonts in WordPress? Let us know by commenting below.

    The post How to Change Fonts in WordPress (8 Ways) appeared first on Elegant Themes Blog.

    Go to source