Custom wordpress theme - html

So I have been using the foundation framework to create my website. Its full of HTML,CSS,JS and images. I was looking at a tutorial from HTML to Wordpress conversion. I understanding having separate files called header.php, footer.php, aside.php and index.php.
What I don't understand that has not been spoken about is I have 3 pages in my website. HOME , ABOUTUS and FAQ. They all have the same footer and header. Is the index.php a template for the actual theme from which I can build upon to create the other pages or do I have to do this process manually for each file.

the index.php is your front page. The page.php file includes your pages but you have to create the file. Please read a tutorial how to do this. If you would like to create a page you should copy the content from your HOME, ABOUTUS, FAQ in the textfield in wordpress where you create your pages. HTML is allowed it should be no problem but you have to remove the header and footer from HOME, ABOUTUS and FAQ because you include it in your theme. If you would like to use a menu on your website which display the links to your pages you have to register a menu in your functions.php and to include it in the header, footer, page.php, index.php etc. But read a tutorial, please. After that you should know how to create a WordPress theme

Related

How to add a HTML Home page to a prestashop page

I've developed a custom HTML homepage for my prestashop site, but it seems I do not know how to incorporate it, I've tried looking into the prestashop forums, but all it shows are for .tpl files, is there a way for me to link them to the homepage?
Can I just link it as an html page or do I really need to put it inside a tpl page for it to work?
Create your .html file (say 'test.html).
In test file you need to
add these lines of code before your html code
<?php
include(dirname(__FILE__).'/config/config.inc.php');
Tools::displayFileAsDeprecated();
include(dirname(__FILE__).'/header.php');?>
Also add these lines after your html code
<?php include(dirname(__FILE__).'/footer.php');?>
Place the test.html file in the public_html folder.
Now you need to add the page to link with your site.
If it is home page you need to add it to index.php otherwise you can just add the url (http://mysite/test.html) to menu bar or footer links, where ever you want to put it.
I have placed my php page link in the footer information part using anchor tag as shown in the image
In prestashop you can find "Home Editorial" module, in this module you can put your html obviously the module need to be transplant in displayHome position.

wordpress custom theme posttype from dashboard appearance issue

I made a static html page and i wanted to run this page using wordpress locally (wamp).I put all the necessary files to wp_content->themes->theme folder name ,such as footer.php index.php header.php functions.php style.css and made one page template called custompage.php and one page-about-us.php.I have made my pages from wordpress dashboard and i mannually made navigation menus by adding some code to functions.php and loaded three theme locations to wordpress appearance->menus->menu settings.My links to my pages seem to work fine but my problem is when i click to a page for example page-about-us.php doesnt display the content from edit pages wordpress dashboard but display what i code in my page-about-us.php file.In other words I want when i link to a page display the content i write in wordpress edit page.I suppose this is done with functions.Which functions or what to do for fix this?Thank you in advance.
to retrieve data from the page about-us wordpress admin dashboard i only had to code while(have_posts()) : the_post();
the_content();
endwhile; inside the page-about-us.php file

how to add a header menu in pelican

I used pelican to build my personal blog, but I don't know how to add a header menu in my page. The default menu is "Review", I want to add a menu like "About Me ", but I don't know where to add the code to make my page work. Some examples may help me.
If you create a folder named pages inside the content folder, all the files in it will be used to generate static pages, such as About or Contact pages.
Cite from Pelican Page documentation.
In your case add about.md file in content/pages folder (create folder pages if not exist) and set article title Title: About Me.
Menu behaviour can be overridden on base.html from templates folder.

wordpress theme from scratch: missing display page

So, i'm creating a wordpress theme from scratch. I have everything done, except for the page where the content should be posted. It is missing. what should i do?
These are the only files i have
front-page.php
index.php
A wordpress theme contains normally more than just a index.php file and a page template.
If you have stuffed everything in the index.php file, then have you need to have a look how the Wordpress loop works:
http://codex.wordpress.org/The_Loop
I would also have a look at one of the 1000s of Wordpress theme development tutorials that are floating around on the net. Here you will find many ways how to structure you theme.

Single Html Page without CMS (wordpress)

I have a wordpress website (self hosted blog), but now I need to create a page like http://www.example.com/testpage.html.
How can I do this? How this person has done it? http://lukepeerfly.com/demos/iframe/html.txt
there are few ways to a "landing page" in your site. here's 2 methods:
1 - you can create a page in the cms and then make a template for it.
For example, we wanna make a page named "landing". We duplicate the page.php file in our theme and change his name to landing.php (as described here: http://codex.wordpress.org/images/1/18/Template_Hierarchy.png).
Then, in the page's code, in the top, we'll write the template name in the right syntax:
< ?php
/*
Template Name: landing
*/
?>
//other html/php code here
You can include the header, footer, sidebar, or choose not to include them.
the page url will be www.mysite.com/landing.
2 - The second way is to create a file outside your theme folder, in your server's root directory or in some designated folder (using a ftp connection, ofcourse). in the example you brought, http://lukepeerfly.com/demos/iframe/html.txt, html.txt is probably located in root\demos\iframe directory on the server.
your new file will be outside the wordpress. if you do want the file to be a part of your wordpress system (you need it if you want to use wordpress functions, hooks, database and etc) you'll need to include the "wp-load.php" file in the start of your code.
For example, our page, "landing.php", is directory "pages" in my root directory. in the page's code we'll write the following lines:
<?php
require('./../wp-load.php');
?>
//other html/php code here
In here as well, you can include the header, footer, sidebar, or choose not to include them.
the page url will be www.mysite.com/pages/landing.php.
you can just create the .html file and upload it to your FTP server and then link to it in your wordpress blog.