Premium WordPress Themes and Support

Home Forums General WordPress Use cache to display sidebar or menu on Other (Non WP) Sites

This topic contains 3 replies, has 2 voices, and was last updated by  Nick 2 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3213

    Malinka
    Participant
    WP Private
    Post count: 25

    Hi

    I found a cool article about using simple caching to store the sidebar in HTML format and include it in any other application, then rebuild it as necessary when new content is published.

    Here is the full article:http://www.hongkiat.com/blog/display-wordpress-sidebar-on-other-non-wp-sites/

    I use this when i want to display wordpress sidebar on a nother website ( can be html site )

    I use this script to include the cache:
    https://github.com/LexmarkWeb/csi.js

    And then put this in my html content to output the cache:
    <div data-include=”include-me.html”></div>

    Regards
    Malinka

    #3214

    Nick
    Keymaster
    WP Colonel
    Post count: 711

    Interesting concept. Thanks for sharing Malinka.

    #3215

    Malinka
    Participant
    WP Private
    Post count: 25

    Hi

    This only works when sharing content on a server. if you want to share content outside the server on a different domain you have to enable CORS.

    More info about CORS you can find on this link:
    http://enable-cors.org/

    Regards
    Malinka

    #3216

    Nick
    Keymaster
    WP Colonel
    Post count: 711

    I am trying to think of a good situation to use something like this. Until now, my “sharing” tool was RSS.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.