Upload raw code on wordpress - wordpress

I have a problem: I built a website with only raw code, and now I want to switch to a content management system like wordpress. I’d like to know how can I just upload all my code (html, css and javascript) without screwing up with the code on wordpress especially with php. Maybe do I need to find a blank theme, and for blank I mean a blank page. Any suggestion?

It depends on what you have. You should start with blank template and do part of the job, other part is to fill the content - it is possible to put there php by some plugins but it is not secure.
here you have template:
http://html5blank.com

Marco if you want to just migrate the site into wordpress and don't want to use wordpress to process any data and display it for you then migration is not difficult.
just start with any blank site ( I would start with underscores available at http://underscores.me/ ) and then just keep the index.php, functions.php and style.css to start with and then add components as and when required.
actually functions.php is not mandatory to get your WP site up and running but you can enqueue your JS and CSS files here
the topic is a very detailed one but if you need further assistance then do lemme know
I will strongly advise you to read Theme Handbook on Wordpress.org site
Hope this helps
Take care and Happy coding

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 html website to wordpress theme?

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.

Backend content of page is not showing in wordpress

Okay so my problem is that, I am currently working on a website which is already been created using wordpress. My problem is that when you see the website page, there is all the data and everything is present. But when I come to the backend of the page in wordpress its not showing any content at all. I mean its like there has never been the data at all in this page. Its so confusing. Please answer me this. And kindly remember that I am not a good coder so anything that is related to coding please ellaborate it with examples.
I 've fixed it.
The problem is in charset of db.
Open wp-config.php file and just change charset to utf8 & comment the old one.
define('DB_CHARSET', 'utf8');
Thanks
Like the other commenters mentioned, you can also insert content into pages on Wordpress with pages on custom themes.
Remember to back up your site before you make any changes.
Try to change your theme by going to 'Appearance->Themes' in the Wordpress admin window and activating a new theme. Head to the page in question and see if the content is still there. If it isn't, it's being added in a custom theme, which is probably what's happening.
If that's all you need to know, you're all set - otherwise, you can use this process to find what's creating the content:
Go to your Wordpress installation directory (you'll know you're there when you see folders like 'wp-admin' and 'wp-content'), then go to 'wp-content->themes' and see what themes you have installed. You can dig around in the php files there to find the content being created. You'll need to play around with PHP if you want to learn more from there.

Modifying a WordPress theme

I am in the process of heavily customising a WordPress theme. The theme is quite complex so it is hard for me to identify how and where data is rendered from all the different files in the theme.
Is there a plugin for a browser which tells me what file in the theme a specific element is generated from?
please have a look at these plugins.
It will definitely help you.
[1] http://wordpress.org/extend/plugins/debug-bar/
[2] http://wordpress.org/plugins/debug-bar-template-trace/
Just install in your theme, and go to the page and trace it through this plugin, it will show you, from which file's code is executing right now...
Thanks.
The thing you'll find most useful, or at least the thing I've always found most useful, is the Wordpress template hierarchy.
It's a graphic that shows which files Wordpress will attempt to find to render a page of the site, for instance when showing a page, rather than a post, wordpress looks for a file called page-{id}.php (where {id} is the numerical id of the page) first, then page-{slug}.php, then page.php then index.php.
Using the hierarchy flow diagram, you can see which files Wordpress would try and in what order, and by comparing this to the files in your theme, you can quickly track down which file it is.
http://codex.wordpress.org/Template_Hierarchy - Scroll down to the image, it's the most useful bit.

Resources