How to locate the homepage of wordpress - php

Sorry for posting my question here as I don't know where I should post it.
I am new to wordpress and now I need to amend the main webpage.
I logged in GoDaddy and I tried to find some files like index.html, index.php, but they are not the page I want.
Which file should I find?
Can you please help?
Thanks

First check which theme you have selected from admin panel
then in folder look for 'themes/YOUR_THEME_NAME'
There look for pages front-page.php/home.php/index.php _ atleast one of these will be present.
Modif6y that file according to your need.

Related

Wordpress rename page issue

So I am currently working on a new website and there is a tiny problem with renaming one of the pages for the website, so I have a page called https://website.com/studio-hire-2/ and I want to rename it to .../studio-hire/ but unfortunately I can't do that.
So I figured out that this must be because this page already exists, and yes it does! So I went on to look for it among other pages in the dashboard and could not find it. I've looked everywhere among other pages, drafts, bin... its just not there. I have clicked and checked every single one of them. Maybe I am missing something, any help would be very appreciated!

How to find a page in drupal to edit?

I have a page in Drupal which is coming when clicking on a my account link,
I want to change some content of this page, but I couldn't find page in the script. The URL of the page is
http://localhost/example_drupal/node/8135/edit?destination=sa/view-forms%3Ffield_sd_club_name_value%3Dnes%26field_form_status_value%3DAll
Please anyone help me, how to get the same page in Drupal to edit it?
So, url to your page is /node/8135 and url to it's edit page is /node/8135/edit . You got both ulrs there.
For easy search nodes use Administration Views module. Module add search field in pages list.

How to exclude a wp page and rewrite in htaccess?

I have a wordpress site with a page named domain.com/dogs. I want to change that exact page to a regular blank white page that I can type text or html in and be able to turn this feature on and off easy enough manually.
What will the name of the file be that I'm replacing it with? domain.com/dogs or domain.com/dogs.php etc? Remember I want it to be EXACTLY the same url.
Thank you so much!
You have to actually find the file that you're talking about on the server or
use GoogleChrome: Right-click(on page)>inspect element > Network (tab).... where you will find the file. The file name and extension will be shown.
Once you know the page extensions you will know what to put:
domain.com/
NOTE: This will work unless there is a masking script that rewrites the url of address bar.
Then you have to go into the server and edit the file itself, and delete all of the contents of the page. Then you can start a new page with the standard HTML headers and include the text you want. NOTE: MAKE SURE THAT YOU SAVE THE FILE WITH THE SAME NAME AND EXTENSION TO THE SAME LOCATION, this will do what I think you're trying to achieve.
I hope it helps.

White screen of death on admin and other dashboard pages

I have created a theme for the first time. but except the public area I cannot access admin by wp-admin. After changing he theme I saved redirected URL of admin which is this -->http://www.tennis-florida.com/wp-login.php?redirect_to=http://www.tennis-florida.com/wp-admin/&reauth=1, this takes me to login page and allows me to login then again none of the images are loading as they were previously mapped to localhost and now When I am trying to upload anything or add or modify post after licking submit button it gives me blank white page and I have to click back in order to get back to dashboard. So all in all the theme is completely useless. What I am trying to achieve is I have to ship this theme to client as they are already seen it and so I have to make it work.
As I said I have figured it out that the problem is with the theme(For the record I have created the theme by following a YouTube tutorial)
I am sharing all my codes
functions.php
http://pastebin.com/yXNLuciE
index.php
http://pastebin.com/B9HXKzx8
page.php
http://pastebin.com/K9tzZF8e
header.php
http://pastebin.com/ERYhXCVq
footer.php
http://pastebin.com/PT6tZBmC
style.css
http://pastebin.com/HbTWp5p7
sidebar was not required so haven't added anything in there, sidebar.php is blank.
That's all the files I have created apart from folders for images and all.
I have tried adding
ini_set('display_errors', true) ;
define('WP_DEBUG', true);
Even when I am trying to add a post and such with that another alternate admin link just after click publish wp shows blank page but the data is being added. to config and file and removing spaces in wp-config still no luck. Note: I cannot give up on theme as client has already seen this theme and I cannot provide another.
Note: This is a cross-post from wordpress.stackexchange.com as nobody answered this question.
I have already seen various other methods for solving this problem but its not working.
There's a syntax error in your PHP code which is what is causing the white screen.
SSH to the server and execute the files with the flag -l to check for syntax errors.
I am answering my own question as nobody has answered it yet and I have found the solution.
Upon some research I found about white spacing in php files. All I did to fix the issue was deleting blank lines from bottom of functions.php file, strange fix but worked.

.htaccess and mod-rewrite for my wordpress admin panel

Any ideas on how to rewrite my admin URLS would greatly be appreciated.
I have created some menus using functions.php and they are working properly but I need a way that I can use on my .htacess to re-write my code.
The original URL is displaying like this:
http://www.website.com/wp-admin/admin.php?page=for_buyers
I want it to display like this:
http://www.website.com/wp-admin/menu-sample/submenu-sample/
Thank you!
I don't know how many pages you have to rewrite the urls for but you could do 301 redirects which be easy for a few pages but a bit dirty.. Since it sounds like you already have the new links set-up
Otherwise you need to look through their php code..
http://www.website.com/wp-admin/admin.php?page=for_buyers
Their passing info through the url to direct the user to the correct page.. So they clicked this link, and they set it up so that it goes to page=for_buyers. I would bet this code is in the admin.php, but you would most likely need to edit other php files that get redirected to this admin.php file..
I might be missing your question completely.. Let me know..
RewriteEngine on
redirect 301 /category/product-line/samplepage.htm http://websitename.com/newpage.htm
so the page you are redirecting, just take awaY the domain.com part and start with the slash, then a space, then the full html path of the page you are redirecting to.. start with one and give it a min and see if it works.. then go from there.. the htaccess file should be in your main directory.. wordpress should already have one created and you just add to the end of it..
Good luck -Pat
Go to your settings > permalinks and select Post name
Thanks.

Categories