Before I move forward, I just wanted to confirm that you do not need to know how to code to make a website and I really think that Wordpress is the best option if your business is NOT a pure web product:
So many people have used Wordpress to do this before. All the bugs have been ironed out for you and all you have to do is concentrate on running your business.
If you are not in these 3 categories, please feel free to jump directly to #learn to code)
The problem with using CMS platforms like Wordpress and their thousands of “off the shelf” plugins is that you may feel limited by the kind of businesses you can build.
I say “feel limited” as although you can more or less build any project with Wordpress, not understanding code will make you dependant on the quality of the plugin’s documentation and its client support.
This is when learning to code can completely change your business. It will give you confidence (it’s really not that difficult) and open your eyes to exciting growth opportunities.
Learning to code is a great idea if :
So basically learning to code is a great idea… let’s give it a go!
When you type “learn to code” on Google, you’ll be overwhelmed by the number of coding languages and learning options available. There are countless forums arguing about the best way to get started. And the first snippets of code you come across and the terms used by developers can be very frightening.
The REAL basics of coding are HTML and CSS. These 2 languages are useful for anybody in web development, design but also any business owner that is interacting with clients online.
HTML gives the structure of a webpage
CSS makes your webpage look pretty
With just HTML and CSS you can build an awesome looking website with hundreds of pages ! However these pages will be static. This means that to change something on 10 pages, you will need to open each page and make the relevant change. And that’s hard work.
For anybody on Wordpress, basic HTML and CSS are more than enough for you to grow your web presence. What you are doing here is understanding the structure of your website and using the power of Wordpress to make your website dynamic.
The very good news for everybody, is that HTML and CSS are dead easy to learn!
HTML is about using tags to structure your webpage.
Lesson #1: If you open a tag <tag> you have got to remember to close it like this </tag>!
Lesson #2 : The html structure of a basic webpage will look like this :
<html>
<head>
</head>
<body>
</body>
</html>
<html></html> : tells everybody this is html
<head></head> : that’s where you put information to tell machines about your website. If you put <title>My Title</title> between <head> and </head>, it will put My Title in the tab of your browser. This code is not seen by the users.
<body></body> : if <head> was for machines, <body> is for your users. It’s where you show the users the content for your website.
Let’s try this. Open notepad and copy :
<html>
<head>
</head>
<body>
</body>
</html>
Save the notepad as index.html
Go to the file and open it in your browser > it’s empty right ?
Now, between <body> and </body> add ‘I love coding’.
Save and refresh … you should see :
Congrats !!!!! You’re coding !!! ;-)
Let’s do one last thing. Add <h1> tags arround ‘I love coding’
It should look like this :
<h1>I love coding</h1>
Save, refresh… is your ‘I love coding’ a lot bigger now?
Congrats again, you’ve just made a title! ;-)
Coding is easy nuh??
Obviously there is a lot more to learn, but hopefully this will show you that coding is that complicated.
Let’s move on to CSS
CSS allows you to link your html tags to design styles. Remember that <h1> tag from above. It’s CSS that tells your h1 tag to go bigger or smaller, or to change color, or to be underlined.
this : between <head></head> in your notepad add:
Save and refresh.
have told your CSS to take anything between h1 tags and make them red!
Again, there is lots more to learn about CSS. But that’s the idea. You create a HTML page with tags. You create CSS that assigns design to the tags.
To move on from here, I’d suggest following a quick tutorial on Codeacademy. The HTML and CSS courses are free and Codeacademy do a good job of making learning quite fun and addictive.
For wordpress owners : yes it’s enough for 90% of business owners. However, if you find yourself more and more frustrated because you can’t build exactly what you want.. then read on...
For others : after HTML/CSS you’ll need to learn another language to make things move on your website.
Deciding the next language to learn can be quite paralysing. You want this new coding skill to be transferable to further projects. It’s a balancing act between learning something that will quickly be useful for you now but also still be current in a few years, so you don’t have to start from scratch.
There are a few decent options for web development, but for anything frontend today Javascript seems like the obvious choice. Javascript is not that difficult to learn and is really powerful. You can more or less do anything. Only Python seems to be more trendy these days, but it’s more a data language than front end. You’ll quickly see that the principles between languages are quite close. Get one language right and then it’s lot easier to learn a second language down the line.
A few definitions :
You give a name to a variable and it holds bits of data. It’s called variable because the elements inside a variable can vary (smart ;-))
It’s a single variable that stores data.
Methods that can be applied to arrays
.push : adds an element at the end of an array
.pop: removes an element at the end of an array
.shift : removes the first element of an array
.unshift : adds an element in the first position of an
.slice (first, last+1) : remove elements from an array is not
.splice(indexstart, how many indexes to remove, 'word to replace'): remove elements after indexstart, and replace them all with a new one.
.join(' ') : join all the arrays together to make a sentence, removing the ,
Functions make things happen. Think about Excel. When you write in cell A4: = A2 + A3. You are writing a function to cell A4 to become the sum of A2 and A3.
Basically with functions, you can play around with data to get the result you want to show. There are a lot of predefined functions that you can put together to create more complexe ideas and calculations.
You can also use functions to interact with other languages like HTML and CSS.
For example :
Whenever a user lands on your website, randomly show them different background pictures.
DOM manipulation is making things move on the front end of a webpage. Start manipulating with Javascript