This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

[SiteOrigin Button] using “site_url” function or a variable in the “Destination Url” field

11 years ago · Last reply by Andrew Misplon 11 years ago

Hi!
First of all, thanks for the great work and support. I’m enjoying the experience of working with you guys!
I’m using Vantage Premium together with Page Builder and SiteOrigin Widgets.
I’m developing my website locally and I want to make the migration to production as smoth as possible: I don’t want to have any hard-coded path that I had to change it later on in production.
Here is my issue: how can I use a function (as ‘site_url) or a variable that stores the site url in the ‘Destination URL’ field? If you have any other better solution, you’re very welcome!
Thanks in advance!

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

6
  1. RHM 11 years, 2 months ago

    Just making a correction: the function to use would be ‘home_url’ and not site_url…

  2. Andrew Misplon Staff 11 years, 2 months ago

    Hi RHM

    Thanks for your support, we appreciate it.

    To my knowledge it isn’t possible to use a PHP in the url field. In the past I’ve manually replaced urls but I think find and replace would be the best way to move.

    There are additional concerns when moving Page Builder content. Please seem my thread here: Thread: I’d like to move my website that’s using Page Builder, what’s the best method?. The short version is Duplicator plugin is the best way to move PB content: https://wordpress.org/plugins/duplicator/

    Duplicator should hopefully handle your media url switching.

  3. RHM 11 years, 2 months ago

    Thanks for the information. I’m already using Duplicator to backup my site although I’ve never used it to make a recovery or a migration. I’ll try using the first method as you’ve suggested in your thread.

  4. Andrew Misplon Staff 11 years, 2 months ago

    Ok, got you. That’s 100%. I unfortunately don’t know of a method to handle swapping urls. Perhaps a plugin? Here is something from WP Beginner: http://www.wpbeginner.com/plugins/how-to-update-urls-when-moving-your-wordpress-site/.

  5. RHM 11 years, 2 months ago

    Thanks again, Andrew! It’s a very nice tip. I´ll definitively also check it out!

  6. Andrew Misplon Staff 11 years, 2 months ago

    For sure. Hope your migration goes well.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread