Wordpress local site intergrate with live site - php

So i just want to know if the following is possible, and maybe if any help or links to any form of help is available.
What i have/need : I have a live site that i want to slowly start building over again, i want to integrate my local host custom theme site into the live site replacing the section i rebuild.
So i created my own custom theme WordPress website on my local and build a section of of my live website over. Its just because i want to slowly start building the whole live site over but starting at a point.
So now i want to integrate this section into my live wordpress site? That means replacing my current section with this new section.
Is this possible and how can i approach this?
Also i need the custom WP theme to stay as is even though i replaced it with the live section because my client can edit the site on his own with my custom theme.

you should use Version Control for developing the new site.
choose any thing like svn /git. if you have not used anything like this, use hosted SVN, that's simple. something like assembla/beanstalk. anything.
Simply put all your WP code to trunk and create a branch from it. later you can merge the code to trunk.
you will create 2 hosts in your local for testing.
you will checkout the code on your live server.

Related

WORDPRESS - Clone Website on a New Installation to Update It

We need to recreate our site from scratch. When I mean from scratch I mean we want to keep the same content (pages, articles, URLs and tons of media) and move it to a new WordPress installation with a different theme.
A brief background to try to understand what the underlying problem is. The current site (the one to be copied and transferred) is HUGE. It has more than 1500 pages and 3000 articles. It is currently running on an old version of WordPress and an outdated theme. We are deliberately not updating WordPress, theme and PHP so as not to risk crashing and being left without a site (this has already happened in the past with another installation).
What we have done is to create (on the same hosting) a new, updated installation of WordPress (on another directory). This will be the new and definitive one. Then – when all is said and done – we should use the name of the first installation (but this will be another issue to deal with at the end). We decided to operate in this way because we want everything to be done as safely as possible.
Some details:
Objective: SITE 1 -> SITE 2
SITE 1: Installation: domain.org/directory1 WordPress 5.2 PHP 7.1.33
Theme: Awaken
SITE 2: Installation: domain.org/directory2 WordPress 5.7.1 PHP
7.1.33 Theme: Divi Builder
At the moment, we have already installed the new theme in directory2 and created the home page that will host all the pages and articles from the old site. We are not interested in keeping the plugins. Our aim is for the new installation to be as “clean” as possible, without the risk of dragging around old problems.
What do you think is the correct way to proceed? Again, the most important thing is that the links are not changed (so that the URLs will still work once the change has been made; I mean: domain.org/directory1/perma/link/article-written-in-the past = domain.org/directory2/perma/link/article-written-in-the past
Could the export/import tool do this job? How should I proceed to make sure that I don’t affect the performance of the new site? Is it possible to carry out a test with a few pages to see if this can be done?
Thank you all!
The first step is to create a backup of the existing site. You can do this manually, you need all of the site files plus the database.
However, Duplicator is a great plugin that will create a backup package that includes everything for you. One thing to be aware of is the size of your site may cause issues for the plugin do to server load, but its the easiest method. There are other plugins as well to help with migration.
Once you have everything you can copy it to a new domaon like dev.website.com. The installer from Duplicator will help with the url updates, but its pretty easy to adjust in the config file and database options table. If you use relative urls most things wont be an issue, but a simple find and replace in the database will easy update any absolute urls.
Once you have made all your changes in dev you just reverse the process by writing over the live site and your set. This is safe beacuse you have a backup of the live site from step one in case you need to revert to the current state.

How to host gatsby with wordpress?

I'm building a headless WordPress site with Gatsby. On WordPress, I create a post, using REST API. Get that post to Gatsby and display it. The question is how to host it on the live domain?
So using FileZilla, I put in public_html WordPress files and gatsby build version in there. The result: On startup file, the gatsby website is working. However, if I try to visit the nonexistent page I get redirected to the WordPress theme. Also on gatsby build version favicon icons are working, but on live version is not found, because I get redirected to a WordPress not found page.
Live Website
Using Underscore Theme
Github Gatsby
So the expected results would be. I don't want to see WordPress themes, and favicon icons should work as they worked on the Gatsby built version.
Directory Structure
The better way is to use a static site hosting like Netlify.
You will thus have your front which will be totally separated from the CMS, and in addition, it is free.

Completely move from Joomla to Wordpress using same domain and server

I'm trying to move my site from Joomla to Wordpress. I'm not a developer and I'm not that well versed with Joomla. I've already recreated the entire site in Wordpress and I don't care too much about SEO. I've had a look at the migration plugin in WP but it's not doing what I need it to do.
Currently, my Joomla site address is: http://myfakesite.com/index.php?lang=en. My WP site resides at http://myfakesite.com/wp/
I've already tried the redirection option from within Joomla but it's not working.
I intend to completely remove Joomla from my server and its database too. How should I proceed?
Use WP all import free plugin by Soflyy.
Its very good way for transfer data with true format,
For first you must export all Joomla data in XML file,
I think its easy. You can find plugin from this link

Working on Wordpress with a Redirect

I'm building a Wordpress site for a friend, and she asked me to "put the old site back up" while I'm working on the WP site. The old site lives in a /verb subfolder, so I put a PHP redirect in the domain/index.php page to the domain/verb folder.
Now, when I go to work on the WP site, it just redirects to the old site. Is there a better way to do this? I need a way to develop the WP site while visitors are sent to the old site.
Note: Her site is on godaddy, which means I didn't install WP myself and can't really move the WP installation to a sandbox area while I'm working on it. Is there an .htaccess trick I could be doing, maybe?
It's been a while but I'm pretty sure i've used a plugin before that allowed me (when logged in as an admin in WP) to view the site using a different theme than the one the rest of the world is seeing.
You could copy the active theme and change the name, making your alterations on the new theme while leaving the currently active theme untouched.
This would only work if you were re-skinning the site and not modifying any of the database content.
A quick google search came up with this plugin: https://wordpress.org/plugins/theme-test-drive/, but there may be others out there...

Developing Wordpress theme on a live site

What's the best way to work on a WP theme on a live site? So that the users see the current theme and I can see the one I'm working on. I know WP has a preview theme option, which works, but it has a sidebar that lets you go back to the WP management page, which means when I try to inspect the source it has lots of extra stuff that the actual theme wouldn't have.
Any ideas? Thanks.
Working on a live site is not a good idea. All changes you make will be viewable to your users.
You have two options here. The first option is to create a subdomain like test.example.com and install wordpress there. From there you can do changes to the theme without worrying about the live site. Once done, you can just move your theme over to the live site.
The second and best option is to install wordpress locally on your pc. I use xammplite for that purpose. It works the same as a live install, but it is faster making changes to a theme. Also, if you make a mistake somewhere like a syntax error, you can correct it quickly, no need to ftp a file backwards and forwards between pc and live site.
If this doesn't cut it, your last least favored option is to download a maintanance plugin and put your site in maintainance mode. You will be able to see and test your site, and everyone else will see a maintainance notice

Categories