Support » Plugins » Simple facebook connect problem

  • I have been using Simple facebook connect plugin for a while now without any issues

    Suddenly, today I noticed that the SFC widgets that I have added are not showing in the sidebar

    This happened suddenly and I have tried everything to make it work including deactivating and reactivating

    Please help

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    If you’re referring to your site at http://www.sebastianfitnesssolutions.com/blog/, then something is wrong with the theme’s footer. The wp_footer() code isn’t being called or is missing or something, because the Facebook javascript code isn’t being inserted. Also, the ending /body and /html tags are missing as well.

    Yes
    Im referring to that site

    I did delete a few plugins that dealt with header and footer because i wanted to reduce the load time for my site

    What do I do now?

    btw, the plugins I deleted were:

    1) custom-headers-and-footers v.1.1.5
    2) header-footer v.1.2

    I deleted a few others as well
    But these are the only ones that were related to the footer

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    I’m not talking about plugins. There’s something specifically wrong with the theme itself. The page is broken in some pretty fundamental ways. You’ll have to fix the theme.

    I know that

    But this problem started only after deleting those two plugins

    I realize that you are a busy person but can you please suggest what I should do

    I added the </body> and </html> tags at the end of footer.php

    And the index.php does call the get_footer() function at its end

    Please help me out

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Does the footer.php have the wp_footer(); code in it?

    No it doesnt

    It never did actually

    Only a get_footer() function

    SFC used to work perfectly before even without wp_footer()

    I tried adding wp_footer() non the less but it ruined the whole look of the footer and added a lot of content below my present footer which I do not want

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    I can’t see how it could have possibly worked without having the proper wp_footer() code.

    SFC simply will not work without proper function calls in the theme. These are required so that the plugin can insert its code into the page.

    This code needs to be immediately before the /body tag:

    <?php wp_footer(); ?>

    A theme that does not have that code is a broken theme.

    My theme uses <?php get_footer(); ?> instead of <?php wp_footer(); ?>
    and <?php get_header(); ?> instead of <?php wp_header(); ?>

    Should it still create a problem?

    When I add <?php wp_footer(); ?> to my footer.php
    The SFC plugin starts to work

    However,it displayed a bunch of crap I don’t want down there in my footer.

    Is there any way I can modify this wp_footer() function?
    That way, I can keep it but get rid of the crap at the bottom

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    You’re not getting it.. The get_header and get_footer calls are in the index.php file, but the wp_head() and wp_footer() calls need to be in the header.php and footer.php, respectively.

    These function calls are not the same thing.

    And if you’re getting “a bunch of crap”, then you need to disable whatever plugins you have adding that “crap” to the footer. Just removing the proper function calls won’t work.

    I will look into that

    Although it would be difficult to get rid of the plugin thats causing this since I need each of the ones I have activated

    Anyway, I must do what must be done

    Thank you for your help Otto

    Cheers

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Simple facebook connect problem’ is closed to new replies.