Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Metro,

    Yes it is possible to do so. But if both sites are owned by you, why don’t you copy the footer content?

    Having 1 website retrieving content from a different website might trigger some security concerns in browsers.

    This is very easy. Using your example, the index template (index.php, or https://www.mysite.com) is using get_footer() at the bottom to call your theme’s footer template to that page. On your blog page (/blog) template, you should also put the get_footer() function in that template.

    Thread Starter metro

    (@kiddie)

    @ john and iamgarrett, thanks for reply.
    would you please specifically tell me about this process.
    I am using same theme in both site.
    Actually i need, when i add something or delete ( any update ) anything in my first site then it will be automatically update in 2nd site. Possible ?
    Regards

    In that case I would recommend you to modify the second theme (slave theme which will be retrieving the footer from the original website) and have an include in it. I.e. you use the PHP include to call the other page footer. Example:

    website 1 footer is taken from https://www.website1.com/wp-content/themes/theme1/footer.php.

    In the slave website, in footer.php you can simply delete all and add something like the following:

    include ‘https://www.website1.com/wp-content/themes/theme1/footer.php’;

    To do this though the server you are hosting your website on should allow Server Side Includes. You can read more about it here; https://php.net/manual/en/function.include.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is it possible to show footer from another wordpress site’ is closed to new replies.