WordPress.org

Ready to get started?Download WordPress

Forums

Twitter Tools: unordered <div> tags if no tweets present (2 posts)

  1. cjhubbs
    Member
    Posted 7 years ago #

    The code that inserts the <div class="aktt_tweets"> code (in function aktt_sidebar_tweets) is guarded by a if (count($tweets) > 0). However, the ending </div> tag is added regardless of how many tweets there are.

    The result is that if you have no tweets, you get an extra </div> tag that can wreak havoc with your sidebar.

    Guarding the </div> tag with a similar if statement solves the problem.

  2. Alex King
    Member
    Posted 7 years ago #

    Oops. Thanks for the catch.

Topic Closed

This topic has been closed to new replies.

About this Topic