The wordpress home page is empty, which claims to be the front page, and when I view the front page, which has a ton of content, and click edit page, it takes me to the word press page editor for home page, which is empty. Where can I locate the files for this homepage! In particular need to change the footer around on the theme fresh!
First check whether any template assigned for your home page (you can do via Page Attributes section on sidebar) and if yes, check for the particular template in your theme directory.
If Template section says Default Template, then look at the 'front-page.php' in your theme folder.
If you want to edit the footer, it would be probably 'footer.php'.
Related
I have a front page with the slug "home," It works just fine if I go to www.mydomain.com/home. I'm getting "Page not found" for www.mydomain.com. I want to remove the slug "home" from my page so that I will be able to see it on www.mydomain.com.
I've tried to go to customize -> Homepage settings and set my page as a static page, but it didn't work. I also tried to go to Settings-> Reading and define it from there. How can I make it works?
You can assign your page from here:
Settings->Reading
and then you can see the
Home Page Displays
section. In this section you need to select the A Static Page(Select Below) option. In the dropdown you need to select the value Home (the page you would like to display as the Home page display).
After making changes you can click on the Save button.
[screenshot for reference]:
I am slightly confused with front-page.php. I created a page "Home" from the backend of the wordpress and selected a custom template, let's say Food. I also have front-page.php. Now from settings page, I selected Home Page as my front page. But still I visit the website, it shows content from front-page.php.
When I already selected Home page as my front page, then it should show content from food Template not front-page.php. I am confused over this.
Try renaming front-page.php template, so the WordPress will not find it.
Then it should display the "Home" page with the custom template.
More information can be found on Codex site, which states:
On the site front page, WordPress will always use the front-page.php
template file, if it exists. If front-page.php does not exist,
WordPress will determine which template file to use....
What would cause a wordpress page to show content on the front end but be empty in the admin.
I am just taking over a someone elses site. I am trying to import the pages onto my server but I am only getting blank pages on both the front end and the back end.
Posts are showing correctly. It just most pages.
Sackling..
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
Look to the right side on the edit page screen, "Page Attributes" Under Page attributes look for "Page template". That probably is the reason for it to show content. Developers create page templates, add the content they want to show directly in the page template and set that page template to Wordpress Page.
A page template is basically a php file added to your active Theme's directory. You could just ftp into the server and see the files, you'll have to look into each .php file as the name of the file doesn't really matter. It could be anything.
However the page template's name which you saw on the edit page screen's dropdown, should be written in the php file's header.
So if your page template is "Custom Home", someone could have made a file called home-new.php but when you open the file you'll see something like this
<?php
/*
* Template Name: Custom Home
*/
get_header();?>
That probably is where the content is coming from.
CODEX
Currently I am working on Wordpress one page website,I have anchor links on my page which shows content on click event .I want that the content can be modified from the wp-admin for those anchor links. In short it is static right now and the code is written in index.php file.I want to make it dynamic? Can it be done through Wordpress? if yes please suggest me how can i achieve this?
this is an link to my website http://www.laughingcart.com/
I am converting it to wordpress theme.
yes it is possible in wordpress to create dynamic page as home page.
know delete all your code that you have inserted in index.php and remain it as default.then access dashboard panel of the word press site then navigate to the Pages and create new page what ever you want modify your text place links and publish this page. then navigate to the setting->reading and select the front page from drop down and save it you can now see the you pages as home page
Thanks
I would like to show a custom page when activate my theme with an Enter link instead of posts in the content area and also need to show same header, sidebar and footer as other pages. When click on the Enter our blog works same as other thems.Please help me.
I would create the page that you want to use as the index page in your wordpress admin panel. Then go to Readings Settings, and select Static Page, then select the new page you just created in the drop down menu to set it as the front page. Click Save Changes and the new index page will now be the first thing that visitors see when they go to your site. Does that solve your problem?