Tag - Code

How to Add Call to Action Buttons in WordPress (without Code)


Do you want to add call to action buttons in your WordPress posts or pages?

Buttons are a great way to boost conversions. They are highly noticeable which makes them excellent at redirecting user’s attention to a desired interaction.

For example, you can use a call to action button to navigate users to a transactional page like pricing page, product page, services page, and others on your website.

You can also use call to action buttons to promote special offers, new products, or affiliate links that point to partner websites.

In this article, we will show you how to easily add beautiful call to action buttons in WordPress without writing any code.

Adding Buttons in WordPress Step by Step

Note: This article is for adding custom call to action buttons in WordPress. If you want to add social share buttons, then please see our guide on how to add social share buttons in WordPress.

Adding Buttons in WordPress Posts and Pages (Step by Step)

WordPress makes it super easy to add buttons with a built-in ‘Button’ block.

It is a new feature introduced in WordPress 5.0, along with the new Gutenberg WordPress block editor.

In this article, we will show you three different ways to add call to action buttons in WordPress blog posts and pages. You can pick the solution that best suits your needs.

Feel free to use the table of content below to navigate through this article easily.

Table of Contents:

  1. Adding Buttons in WordPress Posts / Pages Using Default Editor
  2. Creating a WordPress Button in Classic Editor
  3. Adding a Click-to-Call Button in WordPress

Adding Buttons in WordPress Posts / Pages Using Default Editor

This method is easier and recommended for most users. It uses the built-in Button block in the new WordPress editor. If you are still using the older classic editor, then you can skip to the next section.

First, you need to create a new post or edit an existing one where you want to add a button.

On your post edit screen, click on the ‘+’ icon to add a New Block and select the Button block under the Layout Elements section.

Add Button Block in WordPress Block Editor

Next, you should be able to see the button block added to the content editor

Button Block Added to WordPress Post Editor

Simply click on the ‘Add text…’ area and enter your button text.

After that, you need to paste the URL of the page you want to link in the ‘Paste URL or type to search’ field below the button.

Once done, click on the Apply icon.

Enter Button Text and Link in WordPress

If you want to display the button in the center, then you can click on the Align Center icon in your block toolbar above.

Align Center Your Button in WordPress Block Editor

Next, you can customize your button style, change background color, and change text color from the block settings panel on the right side.

Choose Button Style in WordPress Block Settings

There are three button styles you can choose from: default, outline, and squared. You can try each one by clicking on them and choose the one that looks best.

The Color Settings section includes five color variations for both button background and button text. Not only that, but you can also use a custom color of your choice by clicking on the Custom Color option.

Choose Custom Color of your WordPress Button

Once you are happy with the button design, you can save your post or publish to see a live preview.

Here is how it looked on our demo website.

WordPress Button Preview

Bonus: If you want to see how well your buttons are performing, then you should use MonsterInsights. It has built-in event tracking for affiliate links, outbound links, and custom events, so you can see how well your buttons are performing. For more details, see important marketing metrics that you must track in WordPress.

Creating a WordPress Button in Classic Editor

Although Gutenberg block editor is faster and easier, many users still prefer the old Classic WordPress editor. If you are one of them, then you need to find an alternative solution to add buttons on your WordPress site.

There are mainly three options available for adding buttons in WordPress Classic Editor.

  1. Add button in WordPress with HTML / CSS code.
  2. Add button in WordPress with WordPress button shortcode plugin.
  3. Add button in WordPress without using shortcodes.

Of the three options, the first one is the coding method. You will need to write HTML / CSS code and add to your website wherever you need a button. It is not beginner-friendly.

The second option is the most commonly used method. That’s because most of the WordPress button plugins provide shortcodes for adding buttons.

The third option is the best because it allows you to easily add buttons to your posts and pages without having to remember shortcode.

Let’s take a look at how to add buttons in WordPress without using shortcodes.

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

Once you have activated the plugin, create a new post, or edit an existing one. In the editor, you will see a new button in the Visual Editor labeled Insert Button.

Insert Button Icon in Classic WordPress Editor

To insert a new button in your post, you need to click on the Insert Button. This will bring up a popup window where you can design your new button.

Enter Button Text and URL in Classic Editor

First, you need to add your button text and URL. As you add your button text, you can see a live preview in the box below.

Next, you can add nofollow tag to your link and open the link in a new tab by clicking on the checkbox options below.

After that, you can select an icon for your button. If you click on the Icons tab, then you will be able to see the icons that you can add before or after the text in your buttons.

Add Icon to your Button in Classic Editor

These icons are actually icon fonts (learn how to use icon fonts in WordPress post editor).

Next, you can choose text color and background color for your button by clicking on the Color box icon.

Change Button Background Color in WordPress Classic Editor

After that, click on the drop-down menu to choose the button style. There are eight different button styles ready for use.

Choose a Button Style in Classic WordPress Editor

Similarly, you can also choose the button size from extra small to extra large.

Once you are satisfied with the look, simply click on the Update button.

You will be able to see your button as it would appear in your post, right inside the post editor.

You can also set button alignment by simply selecting the button text and using the toolbar buttons in the classic editor.

Center Align Your Button in Classic Editor

Double-clicking on the button will bring up the Insert Button popup, and you can re-edit your button if you like.

Once you are happy with its design, you can publish or update your post and see it in action. This is how the fancy button appeared on our demo WordPress website.

Button Preview - Built in Classic Editor

Adding a Click-to-Call Button in WordPress

In addition to the usual call to action buttons, you can also add click-to-call buttons on your website to boost leads and conversions.

A click-to-call button is a specific type of call to action button which allows your users to make a phone call to your team with just a tap.

Using the tap-to-call buttons, your site visitors can instantly talk to your team in person and get the information they need. Whether discussing a quote request, pre-sale information, or support issue, phone calls are quick.

As the number of smartphone users is growing, adding call now buttons are even more relevant nowadays.

If you don’t have a business phone, then you may want to look into getting a virtual business phone number.

With that said, let’s take a look at how to add click-to-call buttons in WordPress step by step.

First thing you need to do is install and activate the WP Call Button plugin. For detailed instructions, you can see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » WP Call Button page to configure the plugin settings and design your click-to-call button.

Sticky Call Button Settings in WordPress

At first, you will see the Sticky Call Button settings. The sticky call button is a conversion optimized feature which moves the call button along with users as they browse your site.

You can start by activating the Call Now Button Status. Simply click on the switch toggle to activate that.

After that, you need to enter your phone number. WP Call Button has a smart phone number field with your country code. Simply select your country and enter your business phone number.

If you don’t have a business number, then you can get one from Nextiva. It is a trusted business VoIP provider.

Next, you can edit your call button text, choose the call button position, and color.

Also, you can select where to show the sticky call button on your website. By default, it shows the call button on all pages and on all devices. You can choose to show or hide the button on certain pages, and show only on mobile devices.

Once you review all the options, you can click on the Save Changes button at the bottom. After that, you can visit your website and see the sticky call now button in action.

WordPress Click to Call Button

Aside from the sticky call buttons, you can also add static call buttons on your WordPress pages, posts, and sidebars using this plugin.

If you are using the new WordPress block editor, then you can easily add the call now button on your pages using the WP Call Button block.

Create a new page or edit an existing page and add the WP Call Button block on your page editor.

Adding WP Call Button Block in WordPress

After that, you can customize the button text, button color, text color, font size, and show or hide the phone icon.

Customizing Call Button in WordPress Page Editor

Once you are happy with its design, you can publish or update your page.

If you are using Classic WordPress editor, then you need to use the Static Call Button generator to get a shortcode. Go to Settings » WP Call Button and click on the Static Call Button menu on the top.

Static Call Buttons in WordPress Settings

Simply customize the button options and then copy the shortcode. After that, you can use the shortcode in any post or page on your website.

WP Call Button plugin also allows you to add the call button on your WordPress sidebar and other widget-ready areas.

Simply go to Appearance » Widegts and drag the WP Call Button widget to a widget ready area where you want to show the call button.

WordPress Call Button Sidebar Widget

Now you can add a title, description, and customize the call button from the Advanced Settings section. Once done, save your widget.

That’s it! If you want to see a more detailed tutorial, then you can check our step by step guide on how to add a click-to-call button in WordPress.

Bonus Tip for Adding Custom Buttons in WordPress

If you want to add completely custom call to action buttons in WordPress, then you’re likely looking for a solution that also allows you to add custom sections as well as custom buttons in your website header, menus, and other areas.

In that case, we recommend using a drag and drop WordPress page builder plugin like Beaver Builder or Divi.

These page builders will help you create custom landing pages with fancy call to action buttons exactly how you want it.

Whatever you do, its important that you track how your buttons are performing because guessing isn’t the best business growth strategy.

We recommend using MonsterInsights. It has built-in event tracking for affiliate links, outbound links, and custom events, so you can see how well your buttons are performing. For more details, see important marketing metrics that you must track in WordPress.

We hope this article helped you to learn how to add buttons in WordPress easily. You may also want to see our list of the best WordPress plugins and 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.



Source link

How to Add Header and Footer Code in WordPress (the Easy Way)


Have you ever been asked to add some code snippets to <header> or <footer> section of your WordPress website?

Often you are asked to add header and footer code in WordPress when trying to integrate with web services like Google Analytics, Facebook Pixel, Google Search Console, etc.

You may also come across WordPress tutorials that might ask you to add some custom CSS or Javascript code to your WordPress header or footer.

By default, WordPress doesn’t provide an option to insert code in your website’s header and footer. Luckily there is an easy solution for beginners.

In this article, we will show you how to easily add header and footer code in WordPress. The goal is to safely add the code without directly editing your WordPress theme files.

How to Add Header and Footer Code in WordPress

The Best Way to Add WordPress Header and Footer Code

If you want to add WordPress header and footer code, there are three possible solutions:

  1. Manually, by editing you theme’s header.php and footer.php files
  2. With your theme’s built-in header and footer code feature
  3. Using a plugin

The first option is not beginner friendly because it requires you to add header and footer code by directly editing the header.php and footer.php files manually.

Another disadvantage of using this method is that your code will be removed if you install an update to your theme.

The second option is using your theme’s built-in feature. Some WordPress themes like Elegant Themes and Genesis Framework by StudioPress offer a built-in option for quickly adding code and scripts to your WordPress header and footer.

If you are using a theme with a built-in feature, then it seems like a safe and simple solution. However if you change your theme, then all the code snippets added to your website will be gone. This includes site verification in Google Search Console, website analytics via Google Analytics, etc.

This why we always recommend users to use the third option, a headers and footers plugin. This option is by far the easiest and safest method to add header and footer code in WordPress.

After a lot of request from readers, our team has built a 100% free Insert Headers and Footers plugin to let users easily add code to the header and footer in WordPress.

Insert Headers and Footers

Here are some benefits of using the Insert Headers and Footers plugin:

1. Easy, Fast, and Organized: It lets you add codes to your site’s header and footer easily and quickly. Plus, it keeps you organized by allowing you to store all your footer and header codes in one place.

2. Prevents Errors: It helps prevent errors which may occur if you edit your theme files manually.

3. Upgrade or Change Your Theme Without any Worry: The plugin will save your header and footer code in a separate place, so you can update or change your theme without worrying about the code being erased.

With that said, let’s see how to easily add header and footer code in WordPress using Insert Headers and Footers plugin.

Adding Code to Header and Footer in WordPress

First thing you need to do is 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.

Once the plugin is activated, go to Settings » Insert Headers and Footers from your admin panel. After that, you will see two boxes for adding code to header and footer.

Insert Headers and Footers plugin settings

Simply paste the code in one of the two boxes. Once done, don’t forget to click the Save button to store your changes.

The plugin will now automatically load the code in the respective locations on your WordPress site.

You can always edit and remove any code that you don’t want to keep.

You’ll need to keep the plugin installed and activated at all times. Deactivating the plugin will stop adding all custom code to your site.

If you accidentally deactivate the plugin, the code will still be safely stored in your WordPress database. You can simply reinstall or reactivate the plugin, and the code will start appearing again.

Note: You may have to clear your WordPress cache after saving changes, so the code properly appears on the front-end of your website.

We have found the biggest reason why a lot of beginners use the Insert Headers and Footers plugin is to add Google Analytics to their website. For that, we actually recommend using the free MonsterInsights plugin. It’s the best Google analytics plugin for WordPress which helps you properly setup Google analytics tracking with just a few clicks, and it shows you helpful stats right inside your WordPress dashboard.

We hope this article helped you to learn how to add header and footer code in WordPress easily. You may also want to see our comparison of the best email marketing services and the best business phone services.

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 Header and Footer Code in WordPress (the Easy Way) appeared first on WPBeginner.



Source link

How to Easily Display Code on Your WordPress Site


Do you want to display code in your WordPress blog posts? If you tried to add code like regular text, then WordPress will not display it correctly.

WordPress runs your content through several cleanup filters each time you save a post. These filters are there to make sure someone does not inject code via post editor to hack your website.

In this article, we will show you the proper ways to easily display code on your WordPress site. We will show you different methods, and you can choose the one that best fits your needs.

How to easily display code in WordPress posts

Method 1. Display Code Using The Default Editor in WordPress

This method is recommended for beginners and users who don’t need to display code very often.

Simply edit the blog post or page where you want to display the code. On the post edit screen, add a new code block to your post.

Add code block to your WordPress posts

You can now enter the code snippet in the text area of the block.

Add code to your blog post

After that, you can save your blog post and preview it to see the code block in action.

PHP code displayed in WordPress

Depending on your WordPress theme, the code block may look different on your website.

Method 2. Display Code in WordPress Using a Plugin

For this method, we will be using a WordPress plugin to display code in your blog posts. This method is recommended for users who often display code in their articles.

It gives you the following advantages over the default code block:

  • It allows you to easily display any code in any programming language
  • It displays the code with syntax highlighting and line numbers
  • Your users can easily study the code and copy it

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

Upon activation, you can go ahead and edit the blog post where you want to display the code. On the post edit screen, add the ‘SyntaxHighlighter Code’ block to your post.

SyntaxHighlighter code block

You will now see a new code block in the post editor where you can enter your code. After adding the code, you need to select the block settings from the right column.

SyntaxHighlighter code block settings

First, you need to select the language for your code. After that, you can turn off line numbers, provide first line number, highlight any line you want, and turn off the feature to make links clickable.

Once you are done, save your post and click on the preview button to see it in action.

Code displayed with syntax highlighting

The plugin comes with a number of color schemes and themes. To change the color theme, you need to visit Settings » SyntaxHighlighter page.

SyntaxHighlighter settings

From the settings page, you can select a color theme and change SyntaxHighlighter settings. You can save your settings to see a preview of the code block at the bottom of the page.

Code block preview

Using SyntaxHighlighter with Classic Editor

If you are still using the old classic WordPress editor, then here is how you would use SyntaxHighlighter plugin to add code to your WordPress blog posts.

Simply wrap your code around square brackets with the language name. For example, if you are going to add PHP code, then you will add it like this:

[php]
<?php
private function get_time_tags()
$time = get_the_time('d M, Y');
return $time;

?>
[/php]

Similarly, if you wanted to add an HTML code, then you will wrap it around the HTML shortcode like this:

[html]
<a href="example.com">A sample link</a>
[/html]

Method 3. Display Code in WordPress Manually (No Plugin or Block)

This method is for advanced users because it requires more work and does not always work as intended.

It is suitable for users who are still using the old classic editor and want to display code without using a plugin.

First, you need to pass your code through an online HTML entities encoder tool. It will change your code markup to HTML entities, which will allow you to add the code and bypass the WordPress cleanup filters.

Now copy and paste your code in the text editor and wrap it around <pre> and <code> tags.

Adding code manually in classic editor

Your code would look like this:

<pre><code>
&lt;p&gt;&lt;a href=&quot;/home.html&quot;&gt;This is a sample link&lt;/a&gt;&lt;/p&gt;
</pre></code>

You can now save your post and preview the code in action. Your browser will convert the HTML entities and users will be able to see and copy the correct code.

Manually displaying code in WordPress

We hope this article helped you learn how to easily display code on your WordPress site. You may also want to see our ultimate list of the most wanted WordPress tips, tricks, and hacks.

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 Display Code on Your WordPress Site appeared first on WPBeginner.



Source link

How to Easily Create a Custom WordPress Theme (without Any Code)


Do you want to create a custom WordPress theme from scratch?

In the past, you had to follow the WordPress codex and have a decent coding knowledge to build a custom WordPress theme. But thanks to new WordPress theme generators, now anyone can create a completely custom WordPress theme within an hour (no coding knowledge needed).

In this article, we will show you how to easily create a custom WordPress theme without writing any code.

Creating a custom WordPress theme without writing any code

Creating a Custom WordPress Theme for Beginners

Unlike static HTML sites, WordPress themes are a set of template files written in PHP, HTML, CSS, and JavaScript. Typically, you would need to have a decent understanding of all these web design languages or hire a web developer to create a custom WordPress theme.

If you hired a developer or agency, then the cost of a custom WordPress theme can reach thousands of dollars.

Since many small business owners couldn’t afford the high costs of a custom WordPress theme, a lot of them just settled for the default themes that came with WordPress.

Those who didn’t want to settle and wanted customizations either used a drag & drop WordPress page builder, or they used a theme framework to build a custom theme.

While WordPress theme frameworks made building a WordPress theme easier, they are a solution for developers, not an average website owner.

On the other hand, WordPress page builder plugins made it super easy to create custom page layouts using a drag & drop interface, but they were limited to layouts only. You couldn’t build custom themes with it.

Until Beaver Builder, one of the best WordPress page builder plugins decided to solve this problem with their add-on called Beaver Themer.

Beaver Builder best WordPress page builder plugin

Beaver Themer is a site builder add-on that allows you to create custom theme layouts using a drag and drop interface and without learning to code.

Let’s take a look at how to use Beaver Themer for easily creating a WordPress theme.

Setting up Beaver Themer to Build a Custom Theme

Beaver Themer is an add-on plugin for Beaver Builder, so you will need both plugins for this article.

First, you need to install and activate the Beaver Builder and Beaver Themer plugins. For more details, see our step by step guide on how to install a WordPress plugin.

Beaver Themer allows you to create a custom theme, but you will still need a theme to start with. We recommend using a light-weight theme that includes a full-width page template to act as your starter theme.

You can find many such themes in WordPress.org theme directory. Most modern WordPress themes include a full-width template. Our top picks are:

  • Astra – A free light-weight all-purpose WordPress theme that comes with built-in support for Beaver Builder.
  • OeanWP – Another popular free multi-purpose WordPress theme that comes with full page builder support.
  • StudioPress themes – All of their themes are compatible with Beaver Builder and would work great with Beaver Themer.

For the sake of this tutorial, we will be using Astra, which is light-weight and easy to customize WordPress theme.

Setting up Your Theme for Beaver Themer

When building a custom WordPress theme with Beaver Themer, it’s important to make sure that Beaver Themer has access to the full body of the page (from edge to edge).

This is the default Astra layout. As you can see that this layout includes a sidebar which can be difficult to work with when using Beaver Themer.

Default theme layout with a sidebar

You can change that by visiting the admin panel of your website and then navigate to Appearance » Customize page. From here, you need to switch to the Layout » Sidebars tab.

Turning off sidebars in your theme

Once there, simply select ‘No Sidebar’ under the default layout option and click on the Publish button to save your changes.

Your theme will now start using a layout with no sidebars. This is the best layout to use with Beaver Themer.

Theme layout with no sidebars

This full-page layout allows Beaver Themer to use every inch of the screen, so you can create a beautiful end-to-end visual experience.

Most WordPress themes include a template file for full-width pages. If you are using some other theme, then you may find an option to remove sidebars in your theme settings.

If you cannot find it, then contact your theme developer and they may be able to help you with that.

Once you have set up your theme to a full-width layout, you are ready to create your custom WordPress theme using Beaver Themer.

Quick Beaver Themer Fundamentals

Beaver Themer works on top of Beaver Builder. As a page builder plugin, Beaver Builder allows you to drag and drop items to a page to create custom layouts.

It has the following items that you can use in your layouts:

  • Template: A collection of columns rows, and modules that make up an entire page layout.
  • Columns: Vertical layout modules that help align content horizontally.
  • Rows: Horizontal collection of multiple modules
  • Module: An item that outputs specific information such as title, text block, table, gallery, etc.

Simply edit a page in Beaver Builder and then click on the add button at the top right corner. You can then drag and drop columns, rows, modules, to your page and start editing them right away.

Using Beaver Builder

If you don’t want to start from scratch, then select from a list of pre-made templates to begin with.

Beaver Builder templates

Beaver Builder also allows you to save your layouts and then use them later as templates.

To learn more see our article on how to create a custom page layout using Beaver Builder.

However, we don’t just want to create page layouts. We want to create a complete custom theme.

This is when Beaver Themer comes in.

It adds another item to Beaver Builder called ‘Themer Layout’.

Themer Layout

Themer layouts allow you to create custom layouts for the header, footer, content areas, 404 page, and other template parts.

These are the building blocks of all WordPress themes and by using them you’ll be able to create a custom theme that fits your needs.

Using Beaver Themer Templates to Create a Custom WordPress Theme

In the following instructions, we’ll walk you through the steps it takes to build the most popular custom theme elements. By the time you’re done, you’ll have completely transformed your base theme into a fully custom WordPress child theme.

Building a Custom Header for Your Theme

Let’s start with your website’s header area. A custom header is an essential component of a theme and building one can be tricky using traditional methods.

Luckily, Beaver Themer has header features built in. You can either use the pre-created template or use the menu and image modules with a two-column layout.

In order to get to this header area, first, we’ll need to set up a header layout in Beaver Themer. Visit Beaver Builder » Add New page and provide a title for your header.

Creating a custom header layout

After that, select ‘Themer Layout’ as the type and ‘Header’ as the layout option. Once you’re done click on the ‘Add Themer Layout’ button to continue.

This will bring you to the layout settings page. From here you need to select ‘Entire Site’ as the location where the header template will be displayed on.

Layout settings

Next, click on the ‘Launch Beaver Builder’ button to open the builder interface.

Beaver Builder will launch with a basic single column and two-row header layout as a starting point.

Header layout

You can use the same Beaver Builder drag and drop tools to change the background, colors, text, etc. You can also add other modules, load pre-made templates, and add rows / columns by clicking on the add button at the top right corner.

Once you are satisfied with the design, click on the Done button to save or publish your layout.

You can now visit your website to see your custom theme header in action. As you can see, we have applied the header layout to our custom theme.

Custom header in your custom theme

Aside from the header, it will not you show any content yet, and you will likely see your base theme’s footer area.

Let’s change this.

Building a Custom Footer for Your Theme

You can create a custom footer for your theme using the Beaver Themer just like you created a custom header.

Head over to Beaver Builder » Add New page and provide a title for your footer layout. Next, select ‘Themer Layout’ as the type and ‘Footer’ as the layout option.

Footer layout

Click on the ‘Add Themer Layout’ button to continue.

This will bring you to the layout settings page. From here you need to select ‘Entire Site’ as the location that the template will be displayed on.

Footer layout settings

After that click on the ‘Launch Beaver Builder’ button to open the builder interface.

Beaver Builder will launch with a footer layout using three columns. You can use this layout as a starting point and start editing.

Editing your footer layout

You can add modules, text blocks, or anything else you want. You can always change colors, fonts, add a background image, and more.

Once you are satisfied with the design, click on the Done button to save or publish your layout.

Building Content Area for Post and Pages

Now that we’ve created headers and footers for every page and post on the website, it’s time to build the post or page body (the content area).

We’ll start off in much the same way that we built the header and footer by adding the ‘Singular’ layout in the Add New page.

Creating posts and page layouts

Next, you will choose where to display this layout. You can choose singular to use it for all single posts and pages, or you can choose posts or just the pages.

Singular layout settings

After that click on the ‘Launch Beaver Builder’ button to open the builder interface.

Editing singular layout

Beaver Builder will load a sample singular layout with post/page title at the top, followed by content, author bio box, and comments area.

You can point and click to edit any of these items or add new modules, columns, and rows as needed.

Once you are satisfied with the layout, click on the Done button to save and publish your changes.

You can now visit your website to see it in action.

Theme layout with content

Creating Archive Layouts for Your Custom Theme

Now that your custom theme has started to shape up, you can move on to creating layouts for other parts of your website. Archive pages are where WordPress displays your categories, tags, author, and monthly archives.

Let’s create a layout for archive pages in your custom theme.

You’ll start by visiting Beaver Builder » Add New page and providing a title for your archive layout.

Creating an archive layout for your custom theme

After that, select ‘Themer Layout’ as type, and ‘Archive’ as the layout option. Click on the ‘Add Themer Layout’ button to continue.

This will bring you to the layout settings page. From here you need to select ‘All Archive’ as the location that the template will be displayed on. You can also create separate layouts for each individual archive type like date, search results, category, tags, etc.

Archive layout settings

After that click on the ‘Launch Beaver Builder’ button to open the builder interface.

Beaver Builder will launch with a basic single column archive layout. It will display archive title at the top, which is followed by posts.

Editing Archives layout for your theme

You can point and click on any item to edit its properties. You can also add new modules, rows, and columns as needed.

After that, click on the ‘Done’ button to save and publish your changes.

Creating Other Layouts for Your Custom WordPress Theme

Beaver Themer also allows you to create layouts for other pages in template hierarchy, for example, 404 page, template parts, search results page, and more.

Using the built-in drag and drop functionality of Beaver Builder, you can easily create your own custom WordPress theme from scratch without ever writing code. This is truly the most beginner friendly WordPress theme development method in existence.

We hope this article helped you learn how to create a custom WordPress theme without learning to code. You may also want to see our guide on how to speed up your WordPress website for better SEO and user experience.

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 Create a Custom WordPress Theme (without Any Code) appeared first on WPBeginner.



Source link