1. BLACK FRIDAY SALES Get Divi.Help Pro Membership @ $99 / lifetime & instantly gain access to all our Divi.Help Pro Membership perks.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed.Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color.
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Copying pages between websites

Discussion in 'Free Divi Community Forum' started by DavidGraham, Oct 23, 2024.

  1. DavidGraham

    DavidGraham Member

    I have been copying a few pages from one website to another.

    The method I have been using is to copy the Rows to the Divi library, then export those Rows to a json file.
    Then on the other website, import the json file to the Divi library then create a new page and add the Rows to the page.

    It all works well but the page has links to pdf's that are in the Media library. These are not being copied.

    Is there a better way to copy the page so that the pdf's and links to them are copied in one go?

    The Rows have images - they are copied successfully.
     
    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom header designs for you to choose from:View Demo
  2. Divi Booster

    Divi Booster Divi Expert

    Hi David,

    I may be wrong, but I don't think there'll be an easy way to handle this through Divi's export function. The PDF links will just be treated as plain text (unlike images which, when defined in the module settings, are recognized as such). I imagine most methods of copying pages will have the same problem.

    One thing you could do is copy the PDFs directly from the wp-content/uploads folder to the new site. If you keep the same folder structure, then you'd be able to fix the links by replacing the domain in the PDF URLs on the new site by using a database search and replace plugin such as this one:

    https://wordpress.org/plugins/better-search-replace/
     
  3. DavidGraham

    DavidGraham Member

    Thanks confirming there is no automatic way to copy the pdf references. I have been able to make most of the changes manually.

    The plugin "better-search-replace" sounds very good I will give it a try and get back.
     
    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom header designs for you to choose from:View Demo
  4. Divi Booster

    Divi Booster Divi Expert

    Best of luck with it. Since that plugin directly modifies the database, it's probably a good idea to take a site backup before running it.
     
  5. DavidGraham

    DavidGraham Member

    You can do a dry run - but from the report I cannot work out which pages or posts I need to edit - I don't want to make the changes automatically.
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Beautifully crafted Divi layout packs for you to kick start your Divi sites:View Demo
  6. Divi Booster

    Divi Booster Divi Expert

    If you aren't linking to the old site anywhere else, then in theory all references to the old domain name should need replaced. But another way you might be able to track the references down is using the site search on the front-end of the new site. Enter the old domain as the search query and hopefully it will find the pages / posts containing PDF URLs from the old side.