Static Homepage Not Working on Wordpress Localhost - wordpress

Recently copied over a WordPress live site over to localhost and I am having trouble getting my homepage to display correctly.
On my live site and local version, the static page is set to "Home" (home.php) in the Reading setting.
On my live site, using Theme Header Check, it states the
Template relative path: themes/custom-theme/home.php
which is correct.
On my local version, it states
Template relative path: themes/custom-theme/page.php
Which displays nothing because we do not use page.php on live site.
Everything else is working on my local copy just fine. The homepage loads fine, header, footer, backend, etc. The only issue is the homepage is directing to page.php instead of home.php for the content of the homepage.
Anyone have a solution for this? I am unable to make edits to homepage without getting this resolved.

I got this working after some fiddling around.
Apparently when I transferred over to local the template for 'Home' was reset to default-template.
So I simply went to my pages, clicked edit Home (front page), and set my page template in the page attributes to the proper template file.

Related

Including a wordpress blog as a subfolder

So I have a weird problem here, I have created a website with HTML, CSS, and JavaScript but I have it as a PHP file so I can interact with a Wordpress blog I have also created. I have the WordPress blog in a folder inside my website eg. mywebsite/blog. Now while developing on localhost, everything works pretty fine but when I finally hosted it on a live server, the blog seems to load without the CSS; here's a link to the blog https://www.dexafxacademy.com/blog. At this point, I am lost as this is my first time, including Wordpress as a subfolder, so I don't have an idea of what the problem could be. Note that this works well in my localhost.
Thanks for providing a link to your site!
Using the Web Inspector in Chrome, I see that the problem is likely in your WordPress settings.
WP is attempting to load all your assets from https://dexafxacademy/blog
The correct URL would be https://dexafxacademy.com/blog
In the WordPress admin of your production site (not local), head to Settings > General and make sure your WordPress Address and Site Address fields have the correct URL containing .com.

Holding page still showing after I have uploaded the new website

I have just uploaded a wordpress website to a live URL which previously displayed a placeholder 'new website coming soon' page.
I have since uploaded the new site which is working fine in Google Chrome however when I try to load it up in Firefox or Edge it still displays the placeholder page.
I have tried clearing the cache for both browsers but the issue still persists!
Is there anything I can do in wordpress or anywhere else to resolve this issue.
The web address is http://www.mascar.co.uk
This is what you should be seeing.
This is what i am currently seeing.
I had initially set the home page to be the 'coming soon' page that I created but I have checked this and the home page is now set correctly in the homepage settings menu. Strangely, other pages on the site such as http://www.mascar.co.uk/drivers all seem to load up fine, it's just the homepage.
Update: Chrome on other PCs are showing the old holding page also, simple browser cache won't fix this either
There is cache issue, please go to plugins sections and un-installed all the cache plugins and then save permalinks from settings > Permalinks.
Please access this link http://www.mascar.co.uk/?sadkjfad, its working fine.
If the above steps do not help you to resolved your problems, then go to your root directory and delete your .htaccess files and save permalinks again from settings > Permalinks.
I hope its help you. :)

Live Wordpress wp-admin not showing template dropdown

I am using the blankslate theme and used custom templates for my homepage. This all worked locally. Once I tried doing the same thing on my domain wp-admin the template dropdown does not show up. I tried several things I saw throughout the internet such as, switching themes then switching back to blankslate, making sure my index.php and styles.css were in the right directory, template is in the correct directory. I am at a loss everything is set up, just need the template dropdown to show to connect my template to the particular page.

URL showing wrong page after changing wordpress permalinks structure

I am using Book Your Travel wordpress theme, when I changed permalinks structure from default to postname, the URL automatically started showing wrong page (destinations) instead of going to homepage, here is my link I am talking about: http://gtu.innerdiv.com/
If I set permalinks structure to default, then it works fine (homepage get load)
I've checked the .htaccess file, it contains wordpress basic htaccess rules.

WordPress front page (homepage) fails to redirect when static front page is set

I have configured WordPress to display a static front page as described here:
http://codex.wordpress.org/Settings_Reading_SubPanel#Reading_Settings
When I save changes and try to visit my front page, my browser displays the following error:
"The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
(source: flickr.com)
Changing cookies settings does not remedy the situation.
I'm using the theme Constructor (http://wordpress.org/extend/themes/constructor), which I suspect may be contributing to the problem.
How can I make WordPress properly display my front page?
create a page called home or whatever, go to
**Admin->Settings->Reading**
Change the......
Front page displays
1. Your latest posts
2. A Static Page
Select Static Page and from the dropdown select your newley created home/page.
if its not redirecting check your permalink settings...set it to default.
Check the homepage is working, re-apply any permalink settings you had..
If the page is still redirecting in a away it will never complete, then try opening your .htaccess file in the root of your wordpress site, delete anything inside and save it,
Again check your homepage... if its still not working, then it's def; down to your theme you are using, if there are particular theme templates for the homepage then that may be the cause.. no time to check the template myself just now, (maybe later)..
You could check the
admin->edit-page
you should see all your loaded pages on the site,
hover over the homepage listing and click "Quick Edit" onm the right hand side, have a look and check the template drop down menu for any homepage specific template that needs applied to that particular page, then click update and re-check the homepage status now.
"The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
this problem happening when you redirect to a page who redirect you back. and it create indefinite loop of redirecting. So, the browser will trap and confuse and produce such error. Read you code again
maybe you need contact the theme author

Resources