Friday, September 16, 2022

How to Create a Table of Contents in WordPress Posts and Pages

Do you want to add a table of contents to your WordPress posts or pages?

A table of contents can make navigating a long article easier and improve your site’s SEO. However, they can be tricky for beginners to create.

In this article, we’ll show you how to create a table of contents in WordPress posts and pages.

How to Create a Table of Contents in WordPress Posts and Pages

Why Add a Table of Contents to Posts and Pages in WordPress?

You may have seen the table of contents on websites like Wikipedia. We also use them on WPBeginner for our long guides such as our ultimate guide to WordPress speed and performance.

You can add a table of contents to posts on your WordPress website to make it easier to jump between the sections of a long article.

Not only do they improve the user experience, but they will also help your WordPress SEO. That’s because Google can use the table of contents to automatically add ‘jump to section’ links in search results.

Google Includes Table of Contents Entries in Search Results

A table of contents can also help your post be listed as a featured snippet at the top of the search engine results page. This will help you get the maximum SEO traffic.

Tables of Contents Are Also Used in Featured Snippets

With that being said, let’s take a look at how to create a table of contents in WordPress posts and pages. We’ll show you how to do it automatically with a plugin and manually using anchor links:

Adding a Table of Contents Automatically in WordPress

AIOSEO, also known as All in One SEO, is the best WordPress SEO plugin and it comes with a built-in table of content block for WordPress.

We recommend this method because it saves you time by automatically generating the table of contents based on your subheadings, while also making it completely customizable with editable links.

The first thing you need to do is install the free All in One SEO Lite plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

You just need the free version to easily add a table of contents, but AIOSEO Pro offers even more features to help you rank better in search engine results pages.

Upon activation, you will need to configure the plugin using the AIOSEO setup wizard. For detailed instructions, see our guide on how to set up All in One SEO for WordPress correctly.

Adding a Table of Contents with AIOSEO

You’ll need to create or edit the post or page where you wish to add the table of contents. After that, click the blue ‘+ ’ icon and locate the ‘AIOSEO – Table of Contents’ block.

Add an AIOSEO Table of Contents Block to the Post or Page

Simply drag the block onto the post or page where you wish the table of contents to appear.

Note: Once you add a table of contents, you may notice that the ‘AIOSEO – Table of Contents’ block will be grayed out. That’s because you can only have one table of contents per post or page.

The plugin will automatically identify the headings on the page and add them to your table of contents. If you use different heading levels (say H2 and H3), then lower level headings will be indented to show the structure of your content.

If you are still writing the contents of your post or page, then any headings added to the document will be automatically added to the table of contents.

Customizing the Table of Contents with AIOSEO

There are a few ways you can customize the table of contents to suit your needs. For example, you can click on a heading to rename it. This will rename the heading in the table of contents, but not the article.

Customizing Your Table of Contents

AIOSEO will automatically create anchor links for each heading. You can click on the Link icon to edit the anchor text, and this is changed both in the table of contents and at the heading in the post content.

You can also click the eye icon next to any of the headings to hide it. AIOSEO Pro users can reorder the headings in the table of contents block. Doing so will rearrange the headings in the table of contents, but not in the article.

You will also find a setting for the block in the sidebar. Here you can choose a bulleted or numbered list style for your table of contents.

Your Table of Contents Can Be in a Bulleted or Numbered List

Finally, when you have finished customizing your table of contents, you need to click the ‘Done’ button to save your changes.

Now you will be able to see how the table of contents will look to your visitors.

Your Table of Contents is a List of Links to Headings in the Post or Page

It’s a good idea to add a heading or paragraph above the table of contents. This will make it clear to your readers that they are looking at a table of contents.

When your visitors click a link in the table of contents, they will be taken immediately to that heading in the article. This allows users to jump to the section they’re most interested in.

Anchor link preview

The reason why we like AIOSEO’s table of content feature compared to other WordPress table of content plugin is because it lets you customize the headings and selectively hide headings as needed.

This is a critical feature that most other table of content plugins simply don’t have.

Adding a Table of Contents Manually in WordPress

You can also create a table of contents manually using anchor links, without the need for a plugin. However, this will take more time and effort.

You can learn more about anchor links in our guide on how to add anchor links in WordPress.

Typing the Table of Contents

First, you need to add a ‘List’ block where you can add the headings for the table of contents. You can either type the headings into the list or copy and paste them one by one from your article content.

You Need to Type a List of Headings

How to Add Anchor Text to Heading Blocks

Next, you will need to add an anchor attribute to each heading you want to reference in the table of contents. This will let WordPress know where to jump when a visitor clicks the heading in the table of contents.

You should first click on the heading, such as H2 or H3. Then you need to click the ‘Advanced’ arrow in the block settings pane to show the advanced settings.

After that, enter a unique word or phrase without spaces into the ‘HTML anchor’ field. If you like, you can use hyphens to separate each word.

You Need to Create an HTML Anchor Attribute for Each Heading

Then, simply repeat this for all other headings that will be included in the table of contents.

Hint: If you paste the heading into this field, hyphens will be added automatically. This is an easy way to create a unique ID that also clearly represents the heading.

Adding Anchor Links to the Table of Contents

The last step is to link the headings in the table of contents to the HTML anchors you created.

You should highlight the first entry in your List block, and then click the ‘Link’ icon in the toolbar.

Highlight the Heading Text and Click the Link Icon

Next, you should type a hashtag (#), and then type or paste the anchor text for that heading.

The # tells WordPress to jump to that section of the current post. You do not add the domain name or other URL parameters.

Type a Hashtag and Then the Anchor Text

Once that is done, you need to press ‘Enter’ or click the ‘Submit’ icon to create the link.

The anchor link will be added to your table of contents list. When your visitors click this link, they will be immediately taken to that heading in the post or page contents.

An Anchor Link Is Added to the Table of Contents

You can repeat these steps to add anchor links to the other headings in the table of contents.

We hope this tutorial helped you learn how to create a table of contents in WordPress posts and pages. You may also want to learn how to increase your blog traffic, or check out our list of must have plugins to grow your site.

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 Create a Table of Contents in WordPress Posts and Pages first appeared on WPBeginner.


September 16, 2022 at 11:23PM

5 Best Monthly Web Hosting Plans (Starts at $4.95/mo.)

Are you looking for the best monthly web hosting plans?

Most popular web hosting companies offer big discounts on annual, bi-annual, and multiple-year payment terms.

These discounts may be promoted as low monthly payments, but when you go to the checkout page, you’ll pay a hefty amount up front to buy the web hosting.

In this article, we will share some of the best monthly web hosting plans that let you truly sign up for a month-to-month hosting service.

Best Monthly Web Hosting Plans

Why Choose a Monthly Web Hosting Plan?

Many web hosting companies only offer discounts if you buy hosting for a full year or multiple years. That makes it can cost hundreds of dollars just to get started.

Plus, if you don’t like the web hosting service, you may not be able to get a full refund, and you will lose your initial investment.

A true monthly web hosting plan will be cheaper to get started. With a month-to-month hosting plan, you won’t commit to a hosting provider long-term, and it’s easier to move to another web hosting company.

This allows you to choose the best hosting provider with the features you need to host your WordPress website.

And more importantly, you will only pay a low monthly cost for the web hosting service you use.

Without further delay, let’s look at some of the best monthly web hosting plans for small businesses.

1. Dreamhost – $4.95/mo.

DreamHost Web Hosting

DreamHost is one of the most well-known web hosting companies, and they’re an official WordPress-recommended hosting provider. They offer the cheapest month-to-month web hosting plan on the market.

They provide a custom control panel to add your domain name, manage emails, and access web hosting features.

Moreover, DreamHost comes with automated website backups. These daily backups ensure the complete safety of your content.

When it comes to DreamHost’s monthly pricing, their WordPress Starter or Shared plan costs $4.95/month with a free SSL certificate, free website migration, and more. You will have to pay for the domain name separately which is fair.

But if you’re willing to commit for the year, then WPBeginner users can get up to a 72% discount on their Shared plan with a free domain name, free website builder, SSD storage, and more.

Our DreamHost coupon code is applicable on the 1-year and 3-year payment plans.

DreamHost pricing plans and payment options

DreamHost has other web hosting solutions, including VPS hosting, managed WordPress hosting, dedicated server hosting, WooCommerce hosting, and cloud hosting.

Don’t miss our complete DreamHost review for more details on their shared hosting options and pricing plans.

2. Bluehost – $2.75/mo.

Bluehost offer for WPBeginner users

Bluehost is one of the most popular web hosting providers and an officially recommended WordPress hosting partner.

Though they don’t offer a month-to-month web hosting plan, the initial cost is so low that we couldn’t resist adding them to this list.

And you’ll save triple your investment with a free domain name, free SSL certificate, and a BIG discount on your web hosting package.

So if you’re just starting out, we recommend Bluehost as the best web hosting for beginners, startups, and small businesses.

The initial cost for your web hosting plan will be as low as $33 for the first year.

This also includes your free domain name, free SSL certificate, and a cPanel for a one-click WordPress installation.

Bluehost Package

However, on the renewal, you’ll need to pay the full cost for your web hosting plan and domain name. But by then, you’ll be able to grow your business to afford the price.

And if you still want to switch, you can easily move your WordPress site to a new web hosting company for a month-to-month hosting plan. Some web hosting providers also offer free migration services, so you’re safe anyway.

On a side note, we thoroughly tested Bluehost for its features, speed, and uptime. And we recommend it to everyone, all the time.

Most of our WPBeginner users start their websites with Bluehost web hosting and grow their businesses to the next level.

3. Hostinger – $9.99/mo.

Hostinger

Hostinger is one of the leading web hosting companies on the global market. It offers WordPress website hosting, shared hosting, and cloud hosting plans.

The month-to-month shared hosting plan from Hostinger starts at $9.99 for a single website.

If you’re looking for a web hosting plan for multiple sites, then we recommend their WordPress Starter plan. It comes with a free domain name, a free SSL certificate, and free unlimited email accounts.

The Hostinger WordPress Starter plan costs $14.99/month.

You can use WPBeginner’s exclusive Hostinger coupon code to get a discount on your monthly web hosting plan. The Hostinger promo code offers more discounts on longer commitments.

For example, if you choose to pay for up to 48 months, the cost for the WordPress basic hosting plan reduces to $1.99/month.

And WPBeginner users get an additional discount that makes it $1.79/month.

In short, you’ll pay $85.92 at once to get WordPress hosting for four years.

Hostinger pricing plans and payment options

Their shared hosting plans costs similar to WordPress hosting. However, you’ll need to pay an additional setup fee.

Hostinger also offers Virtual Private Server hosting (VPS hosting) plans, Minecraft server hosting, and other solutions. We ran several tests on Hostinger, and here’s our complete Hostinger review that may interest you.

4. SiteGround – $19.99/mo.

SiteGround web hosting

SiteGround is one of the best WordPress hosting provider. Their web hosting is optimized for speed and security. We use SiteGround to host the WPBeginner website.

Among top features, SiteGround offers automatic WordPress updates, free CDN network to improve page load time, custom web application firewall to protect your web server against malware and DDoS attacks, and more.

Their customer support team is available 24/7 to help you with any of your concerns, which you may rarely have with SiteGround web hosting.

SiteGround has data centers all over the world since they use the Google Cloud network. It’s the reason they can provide a 99.9% uptime guarantee on their web hosting platform. Over the years of using their platform, we have never had downtime for WPBeginner site.

The SiteGround’s StartUp plan costs $19.99/month.

It’s an expensive monthly web hosting plan compared to other hosting providers on the list, but it also includes functionality like free site migration, free SSL certificate, eCommerce support, basic WordPress site management, out of the box caching addons, and more.

And WPBeginner’s exclusive SiteGround coupon code lets you buy their WordPress hosting plan with an 80% discount.

This reduces the cost to up to $2.99/month for the StartUp plan.

SiteGround pricing plan and payment options

SiteGround’s discount deal is only valid when you choose to pay for up to 12 months upfront. So you’ll pay $35.88 for 12 months and get access to all their WordPress hosting features. The best part is that they also offer a 30-day money-back guarantee.

Aside from WordPress, SiteGround also has cheap web hosting for other content management systems like Drupal, Joomla, Magento, and basically any other Linux based app.

We have done a detailed SiteGround review which shared performance tests from various locations along with coverage of their additional services like Site Scanner.

5. WP Engine – $27 / mo.

WP Engine WordPress Hosting Homepage

WP Engine is the most popular managed WordPress hosting company in the market. They are typically the go-to choice for large websites, enterprise customers, as well as small businesses and developers who want a fully managed web hosting platform with speed, security, and support.

WP Engine offers monthly cloud hosting plans starting at $27 per month on a month-to-month billing which gives you access to 10GB of disk space, 50GB of bandwidth, 10 premium themes from StudioPress, free automated migration, automated website backups, and more.

All their plans come with advanced developer tools like one-click staging, dev & prod site environments, threat blocking & security, built-in CDN for turbo website speed, transferable sites for easy client handoff, activity log, and more.

WP Engine also offers managed hosting solutions for WooCommerce online stores starting at $56 per month as well as enterprise cloud hosting starting at $600 per month.

But if you use the WPBeginner’s WP Engine coupon code and pre-pay for annual plans, then you will get 3 months free.

WP Engine Pricing Page

WP Engine also offers additional services like automated plugin updates, extra SOC2 level security with managed WAF, site monitoring, and more which can be purchased separately.

We did a detailed performance test of their platform in our WP Engine review that we highly recommend you checking out.

BONUS: Other Popular Month-to-Month Web Hosting Options

6. HostGator: One of the most popular web hosting providers, HostGator offers unmetered bandwidth, a 99.9% uptime guarantee, and more. Their shared hosting plan costs $12.75 per month (including tax).

7. GreenGeeks: The eco-friendly WordPress hosting offered by GreenGeeks comes with multiple types of hosting, including reseller hosting, dedicated hosting for websites, and more. It has built-in caching for fast performance, and the price starts at $10.95 per month. You also need to pay a setup fee of $15 for the first time.

Which Month-To-Month Web Hosting Plan Should I Buy?

If you’re looking for true monthly web hosting with no long-term commitment, then DreamHost has the best monthly web hosting packages.

DreamHost’s top features include free website migration, free SSL, security, and a 97-day money-back guarantee.

With that said, when you’re starting a website, you want to get the best web hosting deal because it’s highly unlikely that you’ll be switching hosting providers every month.

Most people that choose a reliable hosting provider rarely ever switch. In the 13 years of running WPBeginner website, we have switched hosting provider only once and that was after 10 years when we outgrew our previous provider.

So in that case, what’s more important is that you choose a provider that’s giving you the best deal with one year commitment.

We recommend either Bluehost, SiteGround, or Dreamhost for those just starting out.

Bluehost doesn’t offer a monthly web hosting plan but their 12-month plan ($33/for the first year) is one of the cheapest web hosting options on the market, and you get a free domain name worth $12.99.

On the other hand, SiteGround’s StartUp plan on a 12-months upfront payment ($35.88/for the first year) is close to Bluehost’s pricing for the basic plan.

However, SiteGround doesn’t offer a free domain, but their servers are blazing fast since it’s hosted on Google Cloud, and you get tons of advanced performance and security features which is why we use SiteGround for WPBeginner website.

If you’re looking for more managed web hosting provider with enterprise support, then WP Engine is going to be your best bet since they offer monthly web hosting plans for cloud hosting.

Note: At WPBeginner, we regularly look into dozens of web hosting companies that are not listed in this article like A2 hosting, GoDaddy, InMotion Hosting, Cloudways, Namecheap, LiquidWeb (Nexcess), and others. We decided not to list them all in this article because we don’t want to cause choice paralysis. If you choose a host from our recommended list, you won’t go wrong.

We hope this article has helped you find the best monthly web hosting plan. You may also want to check out our guides on the best email marketing services for small businesses, and our ultimate WordPress SEO guide to improve your website rankings.

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 5 Best Monthly Web Hosting Plans (Starts at $4.95/mo.) first appeared on WPBeginner.


September 16, 2022 at 03:37PM

Thursday, September 15, 2022

How to Change the Footer in Your WordPress Admin Panel

Do you want to change the footer message in your WordPress admin panel?

The default footer in the WordPress dashboard simply states that the site has been made with WordPress and displays the version number. You may want to change that so you can credit yourself for developing the theme, advertise a pro version of a plugin, or even add support links for your clients.

In this article, we will show you how to change the footer in the WordPress admin panel.

How to change the footer in WordPress admin

Why Change the Admin Panel Footer?

The default footer in your WordPress website‘s admin area is basic and doesn’t really serve a purpose for most users.

Change the WordPress Admin Panel footer

It has a link to the WordPress home page and displays the version of WordPress you’re currently running. If there’s an update available, the footer link will change to let you get it and update your site.

That’s it, though. You can change it to have links back to your own site, provide some helpful links for your users, or just remove it entirely since the space isn’t seen all that often anyway.

With that in mind, let’s dig in and see how to change the WordPress admin footer two different ways.

To change the footer in the admin dashboard, we’re going to insert a code snippet into our theme’s functions.php file.

Normally, we only recommend pasting code snippets into your WordPress core files for advanced users because even a slight mistake can break your site. Plus, if you update your theme, any changes to the functions.php file will be erased.

That’s why we will be using the free WPCode plugin, which makes it safe for anyone to add code snippets into WordPress files.

First, you will need to install and activate WPCode. For detailed instructions, see our step-by-step guide on how to install a WordPress plugin.

Once that’s done, go to Code Snippets » Add Snippet in the admin dashboard’s left-hand menu.

Simply search for ‘footer’ and hover your mouse over the entry titled ‘Change Admin Panel Footer Text.’

Then, all you need to do is click the ‘Use snippet’ button.

Use snippet in WPCode to change the footer

Next, you’ll be taken to the Edit Snippet screen. WPCode automatically configures settings for snippets that you add from the library.

Next, you just need to change the footer text on Line 5 to whatever you want the new content to say. You will need to use HTML if you intend to include links or anything other than plain text.

WPCode edit snippet to change footer text

When you’ve changed the footer text to your liking, just toggle the switch to ‘Active’ and click the ‘Update’ button.

The new admin panel footer will now be live on your site. It will vary based on your specific changes, but the default WPCode snippet looks like this:

The example admin panel footer for the WPCode snippet

If you like how this code snippet works, you can take a look at the WPCode snippet library found at Code Snippets » Library to see everything that comes included for free with the plugin.

wpcode library

WPCode’s built-in library has dozens of pre-configured snippets. You can probably replace single-use plugins you have on your site. For example, WPCode can disable the WordPress REST API, WP Admin Bar, or media attachment pages.

Another method to change the footer in the WordPress admin is by adding code to your theme’s functions.php file. We recommend this for advanced users only, as even a small mistake can break your site.

For more information, see our detailed guide on how to paste code snippets from the web into WordPress.

First, you will need to connect to your site via FTP or through your WordPress hosting provider’s file manager. Then, head to your site’s /wp-content/themes/your_theme/ directory.

Where to find functions.php
Then you just need to edit the file. You can open it in a plain-text editor like Notepad, or you can use the built-in editor if your host provides one.

Simply copy and paste this code into the functions.php file.

add_filter(
        'admin_footer_text',
        function ( $footer_text ) {
                // Edit the line below to customize the footer text.
                $footer_text = 'Powered by <a href="https://www.wordpress.org" target="_blank" rel="noopener">WordPress</a> | WordPress Tutorials: <a href="https://www.wpbeginner.com" target="_blank" rel="noopener">WPBeginner</a>';
                
                return $footer_text;
        }
);
The code after it was pasted into functions.php

Be sure to change the HTML in the starts with $footer_text in the sample code to whatever you want as your new admin footer.

Finally, save your file. You should see the new footer in your admin right away.

The example admin panel footer for the WPCode snippet

We hope this article helped you change the footer in your WordPress admin area. You may also want to see our guide on how much does it cost to build a WordPress site, or our expert comparison of the best virtual business phone number apps for small business.

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 Change the Footer in Your WordPress Admin Panel first appeared on WPBeginner.


September 15, 2022 at 05:26PM