Support » Fixing WordPress » Sidebar widget doesn't appear on all pages

  • Resolved Tom_8

    (@tom_8)


    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>
Viewing 7 replies - 1 through 7 (of 7 total)
  • 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

    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.

    Anyone?

    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.

    Anyone?

    Anyone?

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sidebar widget doesn't appear on all pages’ is closed to new replies.