Migrating html & css website into wordpress issue - php

Hello fellow developers,
I have an issue that I am running up against regarding WordPress and the current website I am working on.
I have been give a task to revamp a website, and to insert that website into WordPress. I have been working on a "custom theme" which I succeeded in luckily. The problem with that theme is, the theme shows the homepage of the website I have revamped, and when I wish to add another page to said WordPress installation. All it shows is a blank editor page.. (The same with the "view" and "edit") on the homepage of that website.
TL;DR
I want to use my custom theme to add another page to the wordpress website, problem is it shows a blank page. And the preview of a new page just shows the theme page (so the add page refuses to do anything).
Is there a good and efficient way to migrate my current HTML & CSS website to wordpress? If so how?
Thanks for the read, it's really hard to explain the situation

So the problem comes when you try to add a new page, within WordPress? Did you accidentally edit that function? Try reinstalling WordPress. Since your theme is ready, you will just need to copy it to the new installation.

Related

Problems with my wordpress template made with bootstrap

I have been developing a site for the prelaunching campaign of our product on kickstarter.
I had coded the site in bootstrap and then ported it to wordpress.
The thing is that I installed the wordpress prelaunchr plugin. When I try to add the shortcode [prelaunchr] and update the page, appears nothing new on it.
Any kind of hint will be much appreciated.
I have checked the plugin with other wordpress themes and there is no problem so the root of the problem is the bootstrap ported template.
(here is the site, the only thing left is the input for the email which is the thing that prelaunchr generates)
www.pysmile.com

Wordpress admin dashboard works very slow with many pages

I have a Wordpress site that it is working perfectly with a bunch of posts and pages.
I have recently started a process to migrate the contents from another website and this has added ~16,000 pages and ~100,000 posts to the site.
Now, in the admin dashboard, when I go to the page list or I try to edit a page, it takes ages to load or stops loading because the timeout is fired. This is not happening with the posts, I can open the post list and edit any without issues. The frontend is working fine.
I'm starting to believe that Wordpress might not be able to manage that quantity of pages. Is there a solution to this? Replace Wordpress with another CMS like Drupal or Joomla is my latest option.
I also tried to tune mySQL, disable all the plugins (I only have a few), etc. with no luck at all.
Thank you in advance!
UPDATE:
I found out the reason of this slowness. When editing a page, Wordpress displays a dropdown list to select a parent page. This list is populated with every single page available on the site (ugh) and this is causing the huge load times. If I "tell" Wordpress to not show this dropdown list (via functions.php or editing the core), everything goes back to normal.

Standard HTML & CSS to wordpress page

I created a webpage in Standard HTML and CSS and everything looks / works exactly how I want it too.
Now I need it to appear as it is on a wordpress site (http://www.texasenergyessentials.com/). I already created a template page and can see it in the template select in the wordpress "add new page" window. I was hoping I could just select the template and leave the text editor blank but that doesn't seem to be the case. All I get is a completely un-formatted page that says welcome guest.
What is the easiest way to get https://gist.github.com/anonymous/8545681 to work on the aforementioned wordpress site? ?
Thanks!
P.S. Please don't link any codex files I just spent 2 hours digging around in them :(
Try to read and understand how http://codex.wordpress.org/The_Loop works
Install this theme https://code.google.com/p/wordpress-naked/ and try to work your way to the desired theme by editing theme files. That will be much easier.
Maybe the problem can be understood by reading the template hierarchy:
http://codex.wordpress.org/Template_Hierarchy
(especially check the visual overview)
If you name your file page-[insert-page-id-here].php Wordpress will use it for the page you've created. Get your page id by editing the page and looking it up in the url.

Wordpress custom template doesn't show up for the rest of the world

I am trying to add a custom php page to my wordpress site. this page should be in plain text (no theme or other wordpress b*ullsh*t). So i created a new template in my theme folder, created a new page from wp administration page. Everything worked perfect. But when i logout and try to access to this page, it shows me just an empty wp template with no content in it. I checked that i made the page public.
what's wrong? why is wp showing two different pages for admins and the rest of the world ???
I feel stupid but the answer is very simple: the theme folder for admin and other users were actually different.

wordpress use in own template

I've created an HTML page as part of my website which I would like to use as a template for news articles. The page has all the things it needs, it just needs to display the correct news article in it.
I installed WordPress on my webserver and now wonder how I can have wordpress publish articles using my HTML page?
Is this even possible since WordPress works with php?
thanks
What you are talking about is themes. Wordpress allows you to create a theme for your installation so it displays using your html/css (more or less)
The way I do this is copy the default theme and make changes in there, and then you can switch to your new theme in your settings.
Edit: in addition, you can also load up wordpress on any page using:
include( '/path_to/wordpress_install/wp-load.php' );
This will allow you to use wordpress functionality on any page of your site.
just edited the single.php file by pasting the desired html code and leaving the loop code there where the text needed to show up.
didn't need to break up the page in a header, body and footer. Left out sidebar for now, but will put it back after I edit it properly.

Categories