Uploading a theme to wordpress [closed] - html

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'm new to this. I coded a front page (HTML, CSS) that says my site is under construction in TextWrangler. I have two seperate files index.html, style.css. I want to upload these to show up on Wordpress. How do I go about doing this? I'm a bit new to web development from scratch. I've done some work editing themes, just never had to upload anything, etc. I've decided to start a portfolio and would like to get this online with a proper CMS that fits my needs. How do I go about doing this? Please let me know.

Everything is here: http://codex.wordpress.org/Theme_Development
That describes what files you need, how header.php, style.css and index.php work, sidebars, theme standards, etc.

Create a new folder under wp-content\themes and place all your files in there. Rename your index.html to index.php and then start reading about how to implement the wordpress loop into your code. It's the key to success for your theme.
http://codex.wordpress.org/The_Loop

Related

How to publish website to github and have preview of the website show? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I recently finished designing my personal website on HTML. I designed the website from scratch and did not use any templates. I was wondering how to upload my HTML code to Github and have it actually display the website. I was able to upload the code to Github but could not figure out how to preview the webpage.
There are two routes to accomplish this:
GitHub Pages
This allows you to host the static content of your GitHub Repository as a custom <username>.github.io webpage.
RawGit
This will serve files from your Git repository as a web server would. It would let you preview your website (without changing the repository name), but does not have a cool URL like GitHub pages.

editing navigation bar once for all pages [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am sure there must be an easy solution for this. I have started maintaining a website which is well-established. I need to add a new tab in the Navigation bar, which I did. However, I have to go through all the HTML pages in the website to reflect that edit.
Is there any other effective way, I can make the edit at one place and it gets reflected throughout. From what I have gathered, the site has multiple folders, and each respective index.html page as the HTML code for navigation bar. It is not importing or downloading it from some main source.
Any pointers would be appreciated. Thanks
If you are not using PHP or anything like that you could write it once and with HTML5 they have imports.
http://blog.teamtreehouse.com/introduction-html-imports
The easiest way when I deal with webpages like this is to convert all index.html to php (merely changing the file type). Copy out the navbar codes into a file, say "navbar.php". Then in every single index.php where the navbar should be, replace it with
<?php include 'navbar.php'; ?>
Add to "navbar.php" any additional folder paths that you may have.

From Code Editor to Wordpress [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I recently created a webpage for my using the Codepen online editor. I made it responsive and have everything in place to migrate it to my Wordpress page.
The only problem is I'm not sure how to migrate pure html/css to Wordpress. It seems by it's nature that Wordpress is structured around themes.
What suggestions do you have for migrating the code over so it works in Wordpress?
Also, since most of the coding I do is by hand (not using themes) is Wordpress the best site to use?
If that's ALL the site, then there's not much point in using wordpress - just make it static.
If you want to expand it later and think you'll need a CMS's data management tools, with Wordpress you will have to create a theme. But the bare minimum for that is only a index.php (put your code there) and a style.css (for the stylesheet, obviously).
Just make sure to also add the head markup to your site and you're good to go.
Any time you add a database -- wordpress, joomla or other -- you're slowing things down. If you're expecting to be managing over 50 pages, that's a good trade-off, but if not, you're probably not making use of the best parts of wordpress.
One thing with Codepen: It has a few helpers -- autoprefixer, normalizer, maybe you're using Sass? Built-in helpers. Make sure they are compiled into your final CSS/HTML.

How to have a a url be like example.com/projects/projectName? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I would like to know how I can have a website that has links to deeper pages like so: www.example.com/ then I click on "Projects" (that becomes www.example.com/Projects) and then I click on a project (Which now becomes www.example.com/Projects/projectName/) How would I do that??? Please help, I really need these.
EDIT: Why are people down voting my question?
This is usually done with folders.
When you open www.example.com/Projects you are actually accessing www.example.com/Projects/index.html then let's say you want to access the project the folder Foobar so you type in www.example.com/Projects/Foobar/ and you are served www.example.com/projects/Foobar/index.html
However this can also be done with PHP URL rewriting and the use of a .htaccess fie.
Also when linking make sure that you start with a backslash (Absolute URLs) e.g.
href="/projects/test"
If the link was to "projects/test" and you were on that page then if you clicked on that link you would be taken to "projects/test/projects/test"
Well, usually to write a Web page you should learn html and then css. While learning html you will learn how to create a link.
In html a link is such as
my link

Creating subpages [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am pretty new to developing and was hoping you all could help me out with a little issue.
I am currently building a website and have an FAQ page.
for example, the url is www.sitename.com/faq.html
I want to create an FAQ sub page to hold the answers
for example the url would be www.sitename.com/faq/answers.html
my issue is that I have no idea how to create a page as an extension of another page.
I'm not sure what you mean by "sub page". However, if you want to create the answers at the URL www.sitename.com/faq/answers.html, you:
Create a sub-directory called faq
Put answers.html in that sub-directory.
Personally I would instead create a sub-directory called faq and put questions.html and answers.html in that sub-directory.
The URL's would be
www.sitename.com/faq/questions.html
www.sitename.com/faq/answers.html
You simply need to make a folder in the directory that you have faq.html, named faq.