How to convert html website to wordpress theme? - wordpress

i want to convert my html website to the wordpress. But can you please talk me that how i can convert and connect the other pages with the main page???

I'm going to start from the point of view you already have Wordpress and are ready to start.
You can't take your existing HTML website and just add it to WP.
What you need to do is to build your own custom theme, that matches your current HTML files, using the already existing WP templates and files.
Best way is to duplicate an existing theme to play/manipulate so that you don't break WP. The last thing you want to do, having no experience, is to mess with and break the default theme and be unable to get it back again without a full re-install.
RE 'connect the other pages with the main page' WP allows you to have static pages and set them as your home page and/or anywhere else you want. With these pages you can also set up different templates within your theme if you need to.
Wordpress have all this help available here:
Wordpress creating static pages and custom templates

Its not really that simple. You should read about WP theming. Here's the start:
https://codex.wordpress.org/Theme_Development
Check codes from other themes to see how to output basics. Theming has a lot of parts, but to ouput custom html you will need these files:
style.css
functions.php
index.php
single.php
With those you should have an basic blog output with core WP functionality.

Related

Wordress - How to work with non wordpress theme

I'm new to wordpress, and I want to know if it is possible to put a theme bought on shapedtheme.com for example on an existing wordpress.
And if so, how to do it. I don't know where to put the code of the theme. I saw the wordpress page builder with text, but I see tags with [] and not <>.
I saw on this thread that pages can be linked to php files. I don't see how.
I have full access to the hosting service's filesystem and can see all wordpress files.
I would also like to transpose the theme header and footer and if possible, use the theme cards to adapt to blog articles written in wordpress.
How can I do this ?
I searched for tutorials on google or related threads on SO with no luck.
Any ressource would be appreciated.
Thanks to anyone who will take the time to read/answer this post.
No, you can't use a non-WordPress theme in a WordPress installation since WordPress will look for specific templates and pass certain objects to the template to be displayed.
You could adapt it to work with WordPress, though. Here's the theming guide to get you started.
But you'll probably be able to find a WordPress-ready theme with the features you want. This is the WordPress theme directory link for themes using bootstrap.
Unless you go for a from-scratch development of a pure php theme, and you need some level of theme customization I'd strongly suggest looking into child themes, as it'll allow you to update the base theme minimizing the changes you'd have to do to yours.
The [ ] syntax you mention are shortcodes, small, safe php functions that can be executed by inserting them in the editor, templates, etc, and provide kind of an api that exposes WordPress or plugins functionality.
And regarding your link, OP already has a WordPress theme, but is looking for a way of using a different, specialized template on specific pages. This template still has to follow to certain WordPress conventions.

Is it possible to copy a CMS theme design to transfer to wordpress

I tried researching it but do not find a direct answer I am trying to move a kentico cms website to wordpress but would like to know if it is possible to copy the kentico theme design to then place it within my new wordpress website?
Thank you all feedback and suggestions welcomed.
Not without manually changing some parts around and adding the WordPress related functions, no.
While you'll probably be able to copy your CSS file, you will have to do the basic WP theme work, e.g. adding the informational comment to your style.css, make sure your header and footer call wp_head() and wp_footer(), add the functions to work with the loop to output content etc.
You can find lots of detailed documentation on creating themes in the codex.

How to convert bootstrap theme template to wordpress theme?

The template i want to convert is:
http://www.dragdropsite.com/demo/mpurpose-free-multipurpose-twitter-bootstrap-3-template/
it has multiple stylesheets and wordpress doesnt recognise the theme when places in wp-content/themes/ folder
What are the steps involved to convert it?
I wouldn't call it 'converting'. Wordpress themes are not just a simple html/css/js folder structure on the themes folder. Making a website work with wordpress is more involved than that. If you want to do it yourself you will need some experience with PHP. Wordpress's templating system is not very hard to learn but it won't happen on one sit.
I suggest you to take a look at this place so that a skilled person can do it for you
Click here to check envato studio.
I am in the same opinion with alejandrocavazos. While, it is not easy to create a wordpress theme, converting an existing bootstrap theme will be very difficult too.
But i have an idea. Find a similar wordpress theme. Save it with another name. Page by page edit the theme and copy/paste your theme's content into this wordpress theme. If you make the changes directly on a web server, you can see the changes realtime. I think this is the easiest way to do it.
Good luck.
Yes you can do that, but its quite difficult to convert entire HTML theme into wordpress directly. You need some basic understanding of wordpress and how it works.
There are some good articles available, please go through them. You will surely understand it well and will be able to convert your HTML into wordpress.
I assume here, you are using Bootstrap framework to design your static websites.
1. How to Build a Responsive WordPress Theme with Bootstrap
2. How to convert a Bootstrap site template into a WordPress website
3. Creating a WordPress Theme From Static HTML
To Convert a Bootstrap 4 Template to a Wordpress Theme there is some work involved and there is no easier way to do in few clicks.
Start by using a starter theme such as Underscores.
-> Migrate your assets (js/css) from static template to the wordpress starter theme directory.
-> Start moving your page sections one by one (header, nav, page sections etc.)
-> To have more control from Wordpress dashboard, make use of plugins like Advanced Custom Fields, Custom Post Type UI and Contact Form 7.
For Detailed Tutorial you check out the Tutorial in this link
https://www.5balloons.info/convert-bootstrap-4-templates-wordpress-themes/

How do I access to my wordpress pages?

I know wordpress store the page content inside the database. If I wanna to add content and some programming content into the page, how do I do it? Other than going to wordpress dashboard > page > all pages, is there any way to access the page file so that I can directly write the codes to it?
You can use you webhost's file manager, or your own FTP client to modify the files that wordpress is made of. Though I recommend against this; if you want to do work beyond just editing the appearance, you should design your site from scratch. If appearances are all, search for a tutorial on making wordpress themes, then apply your shiny new theme.
You'll use page.php or page-template.php file under wp-content/themes/yourthemeName/
That way you will change the file template....

wordpress adding php files and linking to them

i'm wondering if it's possible to add a php file in your themes folder (wp-content/themes/classic) where the css file is, then link afterwards? Because i'm currently trying to add a register.php into my blog but i still need the header and everything else.
Yes. For example, if you want something like www.yourdomain.com/test follow this steps:
In your theme folder create a php file called page-test.php.
From your dashboard publish a page with the title Test(with no content at all).
Now, when you'll go to www.yourdomain.com/test you will se your page. And in page-test.php you can use all Wordpress functions such as get_header(), get_sidebar() etc.
Yes. What you want is to define a new "page" template, and then to create a new page in your wordpress using that template. Here's the WP documentation on that topic: http://codex.wordpress.org/Pages#Page_Templates
Alternatively, you don't have to place it in your theme folder; you can put it in the root wordpress folder and have it function outside of wordpress. Then you can change your theme to have a static link to that page, or link to it in some other manner. It would be more difficult to use the header/footer/sidebar template features, though.

Resources