GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech Wordpress: How to Work on New Theme While Keeping Old Theme? (https://gfy.com/showthread.php?t=1170454)

clickity click 07-18-2015 04:07 AM

Wordpress: How to Work on New Theme While Keeping Old Theme?
 
I want to change my current theme but if I install it straight away it looks shit.

Is there a way to make changes to the new theme while I keep the old theme and then just switch them when I am ready?

xFoundry 07-18-2015 04:08 AM

Quote:

Originally Posted by clickity click (Post 20526774)
I want to change my current theme but if I install it straight away it looks shit.

Is there a way to make changes to the new theme while I keep the old theme and then just switch them when I am ready?

Yes, create a child theme.

https://codex.wordpress.org/Child_Themes

clickity click 07-18-2015 04:14 AM

thanks ..

DVTimes 07-18-2015 04:19 AM

Quote:

Originally Posted by xFoundry (Post 20526776)
Yes, create a child theme.

https://codex.wordpress.org/Child_Themes


very good info

aka123 07-18-2015 04:25 AM

Quote:

Originally Posted by xFoundry (Post 20526776)
Yes, create a child theme.

https://codex.wordpress.org/Child_Themes

I don't think child theme is what he asked for. Child theme is for making modifications to the current theme so that the theme can still be updated by regular updates (as the parent theme is updated, not the child theme).

I have solved the posted problem by making test sites (same domain, just subdomain or different folder) those are duplicates for the original site. Just remember to password protect the whole duplicate site, so that nor people or bots can access it. After you have modded the test site/ tested various designs, etc. just copy the ready files to the actual site.

Venum 07-18-2015 04:31 AM

Quote:

Originally Posted by aka123 (Post 20526787)
Child theme is for making modifications to the current theme so that the theme can still be updated by regular updates (as the parent theme is updated, not the child theme).

Absolutely right.

This is better approach to you:

Quote:

I have solved the posted problem by making test sites (same domain, just subdomain or different folder) those are duplicates for the original site. Just remember to password protect the whole duplicate site, so that nor people or bots can access it. After you have modded the test site/ tested various designs, etc. just copy the ready files to the actual site.

xFoundry 07-18-2015 05:13 AM

Child theme is the best way to go.

"You should be working in your Child Theme if you're modifying the theme. Otherwise you'll lose your changes when the theme updates."

So you can make changes to the original theme, why not, but you wont be able to update it. These are not the most important things, but you are not losing anything, by working on a child theme.

candyflip 07-18-2015 05:44 AM

A child theme is not the best way to go, because that would assume you're working off of the same existing theme.

A second install is the best way to do this.

WP-Script 07-18-2015 06:05 AM

Make a backup of your site (files + database) and install it in localhost with wamp for example.

Then install the new theme and try to target what causes the design crashes. It's possible that your new theme uses other custom field names (to display thumbs for example). If this is the case, you will have to change it to match with the old custom fields.

Rob 07-18-2015 06:40 AM

Quote:

Originally Posted by WP-Script (Post 20526821)
Make a backup of your site (files + database) and install it in localhost with wamp for example.

I was just about to suggest this.

It's crazy how many developers still don't use WAMP (or LAMP, which is what I use) to develop sites on their local machines, and then upload when they're fully tested and ready to launch. You can have 50 different themes working at the same time without affecting the integrity of your live site(s). And people can't say it's because of the price because WAMP, LAMP, and MAMP have been free since their inception.

But there's more than one way to skin a cat, heh?

WP-Script 07-18-2015 07:05 AM

Quote:

Originally Posted by Rob (Post 20526835)
I was just about to suggest this.

It's crazy how many developers still don't use WAMP (or LAMP, which is what I use) to develop sites on their local machines, and then upload when they're fully tested and ready to launch. You can have 50 different themes working at the same time without affecting the integrity of your live site(s). And people can't say it's because of the price because WAMP, LAMP, and MAMP have been free since their inception.

But there's more than one way to skin a cat, heh?

You're right yes ;)

aka123 07-18-2015 07:46 AM

With local machine there is the problem that it won't duplicate your server setup in detail (or is at least harder). Though it won't crash the server neither.

WP-Script 07-18-2015 07:57 AM

Quote:

Originally Posted by aka123 (Post 20526854)
With local machine there is the problem that it won't duplicate your server setup in detail (or is at least harder). Though it won't crash the server neither.

Yes that's right but if it's simply modifications of custom field names or CSS, it doesn't risk much I think ;)

freecartoonporn 07-18-2015 08:06 AM

clone DB and htdocs directory in subdomain and work there.

Rob 07-18-2015 08:35 AM

Quote:

Originally Posted by aka123 (Post 20526854)
With local machine there is the problem that it won't duplicate your server setup in detail (or is at least harder). Though it won't crash the server neither.

The only issues I've ever had with migrating from local to remote was directory paths, which is an extremely easy fix, especially with a simply elegant platform like Wordpress. Very few changes in your database, a couple of config files, reconfigure some serials, and you're set. :thumbsup

P.S. There's even a plugin that does most, if not all of the heavy lifting for you. Double :thumbsup

https://wordpress.org/plugins/all-in-one-wp-migration/

Kelli58 07-20-2015 09:33 PM

I always just create a site like test.domain.com and then work on my new theme on the test site. When I get it the way I want it, then I transfer it over.

liveevilm 07-21-2015 08:13 AM

Theme Test Drive WordPress plugin allows you to safely test drive any theme on your blog as administrator, while visitors still use the default one.

Code:

https://wordpress.org/plugins/theme-test-drive/

Barry-xlovecam 07-21-2015 08:53 AM

VPS accounts are so low today like $5 or $10/mo -- you don't need a lot of bandwith.

Just set up a development server with that same operating system -- play around without screwing up your production server. wget the wordpress base version then unzip in ssh set it up with the same database name -- wget the theme unzip. Develop> **edit a child theme > Tarball and rsync or wget the files server-to-server then untar.

Or use a gnu/LINUX os (same version os) locally with the identical file paths -- best way :2 cents:

TheSenator 07-21-2015 10:23 AM

Dude.... Just do it live!

1215 07-21-2015 10:35 PM

make a dev site that has all the same addons or plugins as your live site, some dummy content, and go from there.

or, stop using wordpress and get something a bit better.


All times are GMT -7. The time now is 04:51 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123