I've tried to make some changes on index.html on my page, for example I've added a section on the homepage with a video. But the change it only lasts a bit, after some time the page it's automatically restored as it was before.
The changes can only be made in the built in editor on Wordpress?
Maybe check your file manager in your cPanel account or whatever web hosting account you are using. There may be a default page that they load automatically.
Related
when I go to my website directory it shows all my files and not to my landing page, is there a way to fix this? I have tried everything even looked through the internet without any clear response. I am close to finishing my website I only need to resolve this problem.
Thank you!
The issue seems to be that you are not on the HTML file, but on the folder.
To fix this issue, you have to redirect yourself to the HTML landing page.
/ar/home.html
This should show your HTML landing page correctly rendered.
Tip: Normally, the main page is called index.html by convention. This can be helpful. For example, the Live Server extension on Visual Studio Code will automatically go to index.html if the file isn't specified. Other hosting services, like GitHub Pages, also do the same.
None of the extensions, IDEs and hosting services listed above are sponsored! They are just used for the sole purpose of examples.
In conclusion, you need to go to the HTML file, instead of the folder.
I am currently working on a site which is built in using a Custom Designed CMS (there are files with .asp extension). This site is really old and seems like running on IIS Server, which I don't have the access. User asked me to add few items. I made changes to index.html file and uploaded to the server, however, the changes don't seem to take in affect.
So my question to Pros, is, do i have to restart the IIS instance? I tried to change the index.html existing content such as Search Bar's placeholder text from Search to search, uploaded the page and nothing happened. Also added new p tags and no luck.
I have never dealt with IIS site. Any suggestions? One thing for sure I can see is that the Home Page in Custom backend is pointing to the index.html file (which I am altering).
Not at all. I does require a reload/refresh at the client-side though.
-Tango
I just joined 000webhost today and made my first site. I started by making a simple text “Hello World!”, and when I uploaded the index.html file, it worked! However, when I try to change the HTML code in my text editor (Atom), save it, and refresh my website, nothing changes. The only way to get my website page to update and show the changes I made in the HTML code is to delete the file from the file manager, and then upload it again. What do I need to fix in order to get my website to update after making changes to the HTML code in my text editor? I also cannot see any changes in the CSS that I add. Even if I remove it from the file manager and upload it again.
Website: https://linusjlee.000webhostapp.com/
You may be editing the file locally and having to reupload/overwrite to display the changes; you’re not editing in real-time; I recommend get a program such as FlashFXP which is an amazing FTP client; you can choose atom as your default editor; right click and edit directly on the server so that updates sync instantly; for now it appears either your host won’t allow live editing via FTP or your just editing it on your local machine
– Ilan P
Thanks so much! This works perfectly.
I have this theme http://themes.two2twelve.com/site/fluidapp/light/ installed on my website running wordpress. I converted the template to a wordpress theme by following the steps here: http://thethemefoundry.com/blog/html-wordpress/ and its all working fine.
However, I have now been given the crazy task to integrate a "Back button" function in it.
What they want is to have some sort of Back button functionality (or the browser one) so when they open Team and they press Back - they go back to Home. The template is basically one-paged, you can see so in the source code.
One way I can see this happening is if I make every page a different .php file, upload them to my theme folder and then just hyperlink them. like www.yoursite.com/team.php
Another possible way (I think) would be to create a page.php template file and then post the pages using wordpress. Question: How do I tell wordpress to use page.php as the page template file?
Can you think of another way to integrate this functionality? Thanks a lot in advance.
If it always is going to return the user to the startpage you could just use the home_url(); function.
Back
If you got more advance structure and you want the button to just redirect the user back one page, you should use javascript.
Back
page.php is the default template for wordpress pages. So if no other is selected in admin, page.php will be used.
If you're using javascript to load the new content, you could use javascript pushState()and popState() to log the stuff to new url's, and it gets added to the browser history. Here's an example.
I'm trying to make a simple login form.
The wordpress function
is_user_logged_in() always returns false.
I don't want to use any pre-existing themes for wordpress, and I want to simply add wordpress functionality to an existing page.
I checked the cookies on my page with the form, and none are being set.
The wordpress install is located at:
http://localhost/newgameplus/wordpress/
The testings script is located at:
http://localhost/newgameplus/TEST/scripts/php/testWP.php
EDIT:
Solved this issue by going to wp admin panel, and changing the options.
Settings>General Settings
Adjusted site Address to reflect the actual website location.
Your script is running in a different web space to the WordPress install. To access the Wordpress functionality you'll need to be working on the site within the wordpress web space - ie the
http://localhost/newgameplus/wordpress/
directory