RBA Cash Rate: 4.35% · 1AUD = 0.67 USD · Inflation: 4.1%  
Leading Digital Marketing Experts | 1300 235 433 | Aggregation Enquires Welcome | Book Appointment
Example Interest Rates: Home Loan Variable: 5.20% (5.24%*) • Home Loan Fixed: 5.48% (6.24%*) • Fixed: 5.48% (6.24%*) • Variable: 5.20% (5.24%*) • Investment IO: 5.78% (6.81%*) • Investment PI: 5.49% (6.32%*)

Create Simple Responsive Landing Page Columns In WordPress

Create Simple Responsive Landing Page Columns In WordPress

A few days ago we looked at how to build a naked landing page in WordPress for a basic self-hosted experience. The code we shared removed the header, menu, footer, sidebar, and any other unwanted elements from any WordPress child page (associated with a parent page) for a true landing page experience. While the blank canvas was suitable for a linear landing experience, it's not uncommon to build the landing page in columns to negate the need to scroll for a call-to-action when viewed on a desktop computer. For mobile devices, the responsive columns should stack as if the page was built in a top-to-bottom manner.

First, there are plenty of WordPress plugins and page-builders that'll create nicely formatted columns. While we have our own plugin that we make available to our own clients (BeliefMedia Columns), and we have turnkey-style pages that we build based on populating text-fields, video IDs, and so on, sometimes it's simply easier to build the page manually. The purpose of this article is to demonstrate how easy it is to create two equally-spaced columns without the use of shortcodes. While the pages don't solve the problem of garnishing statistical data in the same way as our premium products, this issue can easily be solved with Google analytics, or by way of a simple function to simply track page views in a session or similar.

If you've enlisted the services of digital marketers and they have utilised third-party landing pages, they're demonstrating their ineptitude by doing so (it's a problem we're seeing over and over in the finance space). The simplicity of self-hosted landing pages is intrinsically connected to the browsing and branding experience, and the self-hosted pages translate to far higher conversions than might be seen on third-party services.

The Result

An example page that might be built using our very basic code is as follows. I've included two examples that were built a few days ago (they've been de-identified).

Example Landing Page

Example Landing Page

If you're somebody that prefers email options to launch in a modal popup, that functionality is available in our Landing Page plugin (with dozens of other features).

Example Thank You Landing Page

Example 'Thank You' Landing Page (Shown after email subscription)

Obviously, as with all web design, all landing pages should be mobile responsive. The above pages stack as follows on a mobile device.

Example Mobile Landing Page

Example Responsive Landing Page

The Code

The following code will work within and outside of WordPress.

Copy the following CSS into your custom function CSS file. If you wanted to conditionally show the CSS only on landing pages you could incorporate it into the PHP function as provided in our article here (under the title of "Hide Distractions From Your Landing Page").

1
* {
2
    box-sizing: border-box;
3
}
4
 
5
.bm-landing-column {
6
    float: left;
7
    width: 50%;
8
    padding: 10px;
9
}
10
 
11
.bm-landing-row:after {
12
    content: "";
13
    display: table;
14
    clear: both;
15
}
16
 
17
@media screen and (max-width: 600px) {
18
    .bm-landing-column {
19
        width: 100%;
20
    }
21
}

Using the text tab of your content editor, use the following code.

1
<?php 
2
<div class="bm-landing-row">
3
<div class="bm-landing-column"><p>    Left column content in here.</p></div>
4
<div class="bm-landing-column"><p>    Right column content in here.</p></div>
5
</div>

Here's what the simple HTML looks like in the WordPress editor.

Landing Page HTML in WordPress Editor

Because we're writing code in the text editor, switching to the visual editor will screw up the code.

Considerations

  • You can funk up the page however you wish with a page background image and whatever other feature floats your boat.
  • If you're using our email plugin, enter the shortcode into either column and it'll scale itself as shown in the above images.
  • If you include video as we've shown in the example image, or you include any other content, ensure it'll scale correctly in a responsive manner on mobile devices.
  • Despite our code providing only a basic landing page experience, it'll often convert far higher than anything fancy. Every feature you add to a landing page potentially distracts from its main purpose.
  • Use Google Fonts and Font Awesome to jazz up the page a little.

Download our 650-page guide on Finance Marketing. We'll show you exactly how we generate Billions in volume for our clients.

  E. Australia Standard Time [ UTC+10, Default ] [ CHECK TO CHANGE ]

  Want to have a chat?
 

RELATED READING

Like this article?

Share on Facebook
Share on Twitter
Share on Linkdin
Share on Pinterest

Leave a comment