Wordpress Html5 Integrate Telerik
Wordpress Html5 Integrate Telerik
Mario Peshev
CTO @ Devrix TMS @ OnTheGo
About me
ThemeForest author Open Source trainer
Specialist at OnTheGoSystems
Building
custom themes, plugins, extending premium solutions based on the WP platform; WPTRT member
2
Java/PHP/Python background
OnTheGoSystems
WordPress
Super mega powerful!
(surprise, surprise)
Over 70 000 000 websites
online (both
Start
We want to integrate our HTML sliced
design
into WordPress
The end results are:
Dynamic functionality
Working menus, areas, blocks, comments and other CMS-related elements
Warning!
Super important
A PSD is not:
CMS integration
Every CMS has its
own specifics and expectations in terms of markup to draw the appropriate design and slice it properly
WordPress
Lets integrate!
Our target
Some random free HTML5 template
11
Step 0
Make sure that:
Code is valid and understandable Code is reusable Template markup seems WP-compatible
Note: some super basic
PHP knowledge is
required
12
Step 1
Download the HTML template Browse
HTML CSS
JS
Flash
Fonts
13
Step 2
Setup development environment XAMPP,
LAMP/WAMP/MAMP
Create a database Install WordPress
my video)
Create a new folder in
14
Step 3
Add the required files there:
style.css index.php
These are the two mandatory files for a
WordPress theme
15
Step 4
Add an appropriate
heading to style.css:
16
Step 5
Migrate your
are 2 options:
Include them in header with normal <style> tag
17
Step 6
Add header.php, footer.php and sidebar.php Separate the common parts
18
Step 7
Fix all static
Step 8
Add the style.css
Fill
in the index.php code for all pages (everything left besides header/footer code
21
Step 9
Clear out all static
page content from your markup (the demo texts title and static content)
22
Step 10
Use predefined tags, such as:
23
Step 11
Move index.php to home.php or front.php if
24
Step 12
Define sidebar
25
Step 13
Add sidebar to a page
26
Step 14
Define menu
register_nav_menus
27
Step 15
Add the menu to a block in the markup
theme_location is sufficient
28
Step 16
Call
comment_form() or comments_template():
29
Step 17
Enjoy!
30
Whats next?
Once youre ready
Add some complex plugins for more functionality Integrate some APIs to social networks or remote services Work on the next theme of yours
31
Recommended Plugins
Types and Views WPML WooCommerce BuddyPress
S2Member
Contact Form 7 / Gravity
Forms
32
Theme-Check plugin
Become a Pro
WPORG
Get popular and well provide a
WordPress
Questions?
http://me.peshev.net/ http://html5course.telerik.com