Title: Duplicate a page
Last modified: August 20, 2016

---

# Duplicate a page

 *  [stickleback](https://wordpress.org/support/users/stickleback/)
 * (@stickleback)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/duplicate-a-page/)
 * Hello
    I am looking to make a duplicate of the homepage so I can make a couple
   of small changes for testing purposes.
 * I have copied the html and pasted into a new page – but there are two issues…
   first I am not getting the banner at the top of the page and secondly it is not
   getting the CSS – so the page elements are funky.
 * When I look at the code in the browser, there are extra lines in the original-
   but these are not in the page code – o they are being added from somewhere else–
   but I cannot see where or how.
 * any pointers?
 * Many thanks
 * original : [http://tinyurl.com/d3c9h4v](http://tinyurl.com/d3c9h4v)
 * duplicate : [http://tinyurl.com/buyoz5w](http://tinyurl.com/buyoz5w)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [dmd54](https://wordpress.org/support/users/dmd54/)
 * (@dmd54)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/duplicate-a-page/#post-3005814)
 * You can’t just copy the html into a new “page.” You need the php for it to function
   properly.
 * I would either back up your original and then make your changes directly in the
   WordPress editor in your style.css and home.php. If that is too high risk, I 
   would download your theme to your HD and then use a localhost on your computer
   to test it. That’s the safest way.
 *  Thread Starter [stickleback](https://wordpress.org/support/users/stickleback/)
 * (@stickleback)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/duplicate-a-page/#post-3005817)
 * Thanks for that…. the new page has the “home page template” applied….
 * I’m not sure I follow your answer – not sure what needs to be changed in style.
   php and home.php since I don’t want to change those for the original page at 
   all…
 *  Thread Starter [stickleback](https://wordpress.org/support/users/stickleback/)
 * (@stickleback)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/duplicate-a-page/#post-3005827)
 * Just to be clear about what I’m trying to achieve . I simply need a copy of the
   original page and then I need to change a couple of the links and direct them
   to different pages (which already exist on the site….)
 *  [dmd54](https://wordpress.org/support/users/dmd54/)
 * (@dmd54)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/duplicate-a-page/#post-3005832)
 * What exactly are you trying to do?
 * If you are changing your home page layout you will have to modify the style.css
   and possibly the html structure in your home.php.
 *  [dmd54](https://wordpress.org/support/users/dmd54/)
 * (@dmd54)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/duplicate-a-page/#post-3005871)
 * If you just need to change links, they will be in the HTML. Sorry for the confusion.
 *  Thread Starter [stickleback](https://wordpress.org/support/users/stickleback/)
 * (@stickleback)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/duplicate-a-page/#post-3005879)
 * That’s what I was thinking – but the duplicate page doesn’t display the same 
   as the original… I simply can’t see where the issue is – the html is the same(
   I can change the links later – that’s not a problem) but when the pages display
   the new page isn’t getting the css… the page elements are all over the pace and
   the banner at the top is simply missing.
 * There’s nothing missing in the html – the pages are identical in WP – but when
   I look at the source code of the pages there are differences…. I don’t know where
   those differences originate.
 *  [dmd54](https://wordpress.org/support/users/dmd54/)
 * (@dmd54)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/duplicate-a-page/#post-3005883)
 * Yeah, I see what you’re saying. If you are copying the code from your home file
   into a new page it won’t work. I believe that’s why you are not seeing the “banner.”
   You would have to copy that section of php from your home.php and add it to your
   page.php but then it will appear on all pages, which I don’t think you want. 
   That may also be why the styles are not being applied properly.
 * I think you’re best off, doing your testing on a localhost or secondary server
   if possible.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Duplicate a page’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [dmd54](https://wordpress.org/support/users/dmd54/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/duplicate-a-page/#post-3005883)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
