• Resolved maps1990

    (@maps1990)


    Dear René,

    Happy New Year.

    After creating a staging site I noticed that some folders and files such as wp-admin/wp-content/wp-includes were present both in root/staging and in public_html/staging. For instance I want to add a shortcode to functions.php, and I see that this file is both in root/staging and in public_html/staging.

    Why are they duplicated and which one should one choose to modify?

    Thank you for this plugin and congrats with your work, I just started using it and I’ll review it after a couple of week of usage when I have a better view of it.

    Best,

    Paul

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rene Hermenau

    (@renehermi)

    Happy New Year to you as well, Paul:-)

    To answer your question: It depends if you want to change your staging site or your main site.

    There is one thing I do not understand, though. The functions.php should be located in your theme folder wp-content/themes/THEME/functions.phhp and not in the root of your site, no matter if it is the staging site or main site. Did you mean this?

    So long story short, if you want to change the staging site you need to add the custom code into the functions.php which is located in the staging site.

    Please reopen this ticket if it does not answer your question.

    Cheers
    René

    Thread Starter maps1990

    (@maps1990)

    Hello René,
    Actually counting the “live” location I had 3 “functions.php”, hence my question, as I expected to just have 2 (Live and Staging). But now I know why : the one on the root folder was not created by your plugin, it was left there after I deleted a subdomain from the cPanel (I had tried to instal the staging site manually before knowing “WP Staging”, and apparently cPanel doesn’t delete the folders when you delete the subdomain).
    All good then. Thanks a lot for your reactivity!
    Cheers,
    Paul

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicate content?’ is closed to new replies.