Forums

[resolved] How would I break this code up to use in WordPress? (2 posts)

  1. macart
    Member
    Posted 2 years ago #

    Im trying to learn, and dont want to rely on plugins.
    How would I break this code up to use in WordPress?

    Whats contained in <script> below, looks like it also has css included is that correct? If true, what separates to the .css file and what goes into the .js file?

    <div id="twtr-search-widget"></div>
    <script src="http://widgets.twimg.com/j/1/widget.js"></script>
    <link href="http://widgets.twimg.com/j/1/widget.css" type="text/css" rel="stylesheet">
    <script>
    new TWTR.Widget({
      search: 'my search query',
      id: 'twtr-search-widget',
      loop: true,
      title: 'what people say about...',
      subject: 'stuff and things',
      width: 250,
      height: 300,
      theme: {
        shell: {
          background: '#111',
          color: '#000000'
        },
        tweets: {
          background: '#000000',
          color: '#ffffff',
          links: '#f59f00'
        }
      }
    }).render().start();
    </script>

    Thanks

  2. macart
    Member
    Posted 2 years ago #

    Duh! Sorry just realized this is linking to the offsite files "http://widgets.twimg.com/j/1/widget.js" & "http://widgets.twimg.com/j/1/widget.css". Sorry Im New to this stuff.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.