Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding Twitter Badge issue

  • Avatar of Pcmike
    pcmike
    Participant

    @pcmike

    Trying to post a Twitter Badge on my http://bikefitness.net site

    I try to add this code to center widget:

    <div id=”twitter_div”>

    <h2 class=”sidebar-title” style=”display:none;”>Twitter Updates</h2>

    <ul id=”twitter_update_list”>

    follow me on Twitter

    </div>

    <script type=”text/javascript” src=”http://twitter.com/javascripts/blogger.js”></script>

    <script type=”text/javascript” src=”http://twitter.com/statuses/user_timeline/bikefitness.json?callback=twitterCallback2&count=5″></script>

    But it strips out everything after the </div> tag

    Anyone had success doing this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of Enlightenmental1
    enlightenmental1
    Participant

    @enlightenmental1

    widgets don’t like <scripts>

    that’s a security issue:

    you should manually insert the script into the sidebar, or create a custom sidebar with your script in it.

    Avatar of Pcmike
    pcmike
    Participant

    @pcmike

    The MU build is still confusing to me because it doesn’t have the editor function in the dashboard like the regular wp install… ALl I ave in MU under appearance is just widgets and themes…

    I did a quick look in the raw files… all I see is sidebar.php

    But can’t find left/center/right sidebar code to edit like ij standard wp install under editor.

    Where do I go to add the twitter code so it appears in the center column?

    Avatar of Enlightenmental1
    enlightenmental1
    Participant

    @enlightenmental1

    you would edit your bp bp-themes/ or theme/buddypress-home/

    depending on where you want it.

    you could also add the “tweet” stuff directly to the functions.php file

    /themes/buddypress-home/home.php

    (the above is the home page, which calls the left,center,right sidebars)

    you could manually insert your code there.

    there’s a few different way to do that…. some would say creating a plugin/function/bp-custom code is the best

    Avatar of Pcmike
    pcmike
    Participant

    @pcmike

    Thanks That did it…

    please see bikefitness.net center

    Question…

    What code (div class-”???”> to make the \”Twitter Updates\” have same style class… ie, the grey background ?

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

You must be logged in to reply to this topic.