• I’m trying to integrate jQiery Lifestream into a WordPress site but can not seem to make it work.

    I followed the Readme by placing the script into a Graphene child theme header.php, added the styling, and then the call inside the page but it’s not pulling any social streams.

    Thank you for reading and any advice would be greatly appreciated.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Anytime you see generic instructions for using jQuery on a webpage, you need to interpret them for WP usage. The code as is conflicts with jQuery loaded by WP. The proper WP implementation does not alter header.php at all. Place the final script block on a separate external JS file. Then use wp_register_script() to register the lifestream library, specifying `array(‘jquery’) as a dependency. Finally, use wp_enqueue_script() to enqueue your external JS file, specifying the lifestream handle from the register step and ‘jquery’ as the dependency array.

    Check the page’s HTML source to confirm that the above process has output the proper meta tags in the <head> section.

Viewing 1 replies (of 1 total)
  • The topic ‘jQuery Lifestream for WordPress’ is closed to new replies.