• Resolved treshaz

    (@treshaz)


    Hey there been trying really hard to get this to work. I edited a twentyfourteen theme to design it for my own. It works brilliant on my localhost server, all images and stuff are on the right place.
    When I use the right techniques to get it on the net everything gets broken, all the images, the bars are out of position etc.
    When I edited the theme I kept it as “twentyfourteen”. When I upload the theme I need to change the folder name “twentyfourteen” to something else because if I leave it as “twentyfourteen” the default twentyfourteen theme will show up with my header picture and background etc. When I change the folder name to something else, all pictures dissapears and positions of bars etc etc. I’ve tried everything, changing the theme names in all the theme files etc creating a child theme. I just cant get it to look like it does in localhost. What am I doing wrong? Which paths should I edit to make all pictures load in the twentyfourteen folder when I change the name?

    When I create a child theme of the original twentyfourteen, the same problem occurs as if I change the folder name (Which I need because it seems that the original twentyfourteen theme is uneditable)

    Please help me, I’ve been very frustrated about this!

Viewing 5 replies - 1 through 5 (of 5 total)
  • On your localhost get your hacked 2014 theme going as a child theme, look for inadvertent uses of the theme directory name.

    Then apply the “moving WordPress” instructions:
    codex.wordpress.org/Moving_WordPress

    Hi Treshaz,

    Hard to understand what is going on here. Maybe setup a new wordpress install on the live server in a subdirectory, replicate the localhost install and see if that works?

    Then there’s always the “long answer” 🙂

    Local Site:

    – export the database
    – ZIP the contents of the site

    Live Site:
    – use phpMyAdmin (or your hosting account’s database tool) to create a new, empty database (no spaces in the name)
    – import the exported local database .sql file
    – edit the siteurl and home fields in the wp_options table with the new live site URL:

    http://www.my_domain.com

    – upload the ZIP file and unZIP (or copy the local site files via FTP) to the desired location on the hosting account (generally the root of the account, public_html)
    – edit the wp-config.php file there with the live database connection credentials (use the edit file option of your hosting account’s file manager to do so)
    – log into the live site Dashboard:

    http://www.my_domain.com/wp-admin

    – install and run this plugin:

    http://wordpress.org/plugins/velvet-blues-update-urls/

    — select all options EXCEPT the last one (GUID)

    – go to Settings > Permalinks and just re-save

    – if broken links remain, then upload this script to the root of your hosting account and run it:

    https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
    — this script updates the URLs that are stored in the database as serialized strings, which the plugin mentioned above does not handle

    – go to Settings > Permalinks and just re-save if you had to run this script and then delete it from your hosting account

    Done 🙂

    I know it seems like a lot of steps/work, but it is quite straight forward and provides one with a better understanding (hopefully) of what is going on and why.
    Yes, there are plugins that do this, such as Duplicator and BackupBuddy, but again, one does not get a gist of what’s happening. And if something goes pear-shaped using them, then it’s off to the plugin’s support forum to find out what went wrong.

    Using this method, which I always use, I can get a local site to live in under 5 minutes 🙂

    Once the site is live and running tickety-boo, then please do as RossMitchell noted and that is set up a proper child theme of TwentyFouteen:

    http://codex.wordpress.org/Child_Themes

    Thread Starter treshaz

    (@treshaz)

    Thanks for all the answers. Unfortunately I’ve got the same problem. 2ninerniner2 thank you for writing a long guide. I followed it exactly but the site is still broken the same way, I believe it has something with the theme folders name to do, I don’t really know.

    Thread Starter treshaz

    (@treshaz)

    I solved the problem thank you all! The thing I missed was to change my navigation bar to the right one, and the header image etc. Thanks all for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Help with theme move from local server to live’ is closed to new replies.