WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sidebar widget doesn't appear on all pages (8 posts)

  1. Tom_8
    Member
    Posted 3 years ago #

    A widget in SideBarOther shows up on the main article listing page, but when I select an article, the widget isn't there. There are two items in SideBarOther, only one of them has this problem, the second one, below. If I remove the first one, the second one still shows up on the listing page, and still doesn't show up on the article pages. I'm using an unmodified "News Magazine Theme 640" theme.

    Here's the code for the two items:

    <a href="http://www.facebook.com/pages/[our-page]/[our number]" title="[our name]" target="_blank"><img src="../pics/fbook_button.jpg" boder="0" alt="[our name]"></a>
    
    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="http://www.facebook.com/pages/[our name]/[our number]" layout="box_count" show_faces="false" width="50"></fb:like>
  2. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    I'm guessing the first one doesn't work?

    src="../pics/fbook_button.jpg

    is probably your problem

    a relative link will change depending if you are on the home page or not

    Use full link, or php call

  3. Tom_8
    Member
    Posted 3 years ago #

    The first one works on all pages (goes to our facebook page). The second one (<script src=..." - the Facebook Like button) only shows up on the articles listing page, but does not appear any more when you select an article.

  4. Tom_8
    Member
    Posted 3 years ago #

    Anyone?

  5. Tom_8
    Member
    Posted 3 years ago #

    UPDATE

    I "viewed page source" in Firefox, and THE CODE IS THERE on the article page, and it's IDENTICAL to the listing page. So why isn't it displayed??? I tried the Opera browser, same results. I added another copy of the first widget, and two of them appear on the listing page, and also on the article page - the box automatically adjusted to accommodate them.

  6. Tom_8
    Member
    Posted 3 years ago #

    Anyone?

  7. Tom_8
    Member
    Posted 3 years ago #

    Anyone?

  8. Tom_8
    Member
    Posted 3 years ago #

    The problem was a conflict with the Facebook Share plugin. The problem is solved by placing <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> somewhere before the Facebook Share code. Both the share button and the like button now work.

Topic Closed

This topic has been closed to new replies.

About this Topic