MelonieMac
Forum Replies Created
-
Sorry for the late reply. I forgot to check back lol.
Shawn, it sounds like you put the fanxbox into a text widget placed in a universal sidebar, right? Where everything in that section displays on everything, including pages and posts?
I have mine laid out a little differently. I put the fanxbox code into two different text widgets. One that I placed in the “homepage sidebar” section, and another in the “post sidebar” section. I left the FB fan box text widget as is on the homepage sidebar, but for the post sidebar, I added the “<!– –>” outside of the fanbox code.
I hope that explains things better. If not, I’ll take some screencaps to better describe the process. Let me know. ??
Shawn, I had the same problem when I added “<!– –>” to the code on both the home page and posts pages FB fan box widget. I fixed it by only posting “<!– –>” on the fan box widget for the posts pages, and not changing anything for the FB fan box code on the home page. I’m not sure how you have yours set up, but I put my FB fan box in a text widget, so adding code to the fan box on the post section and leaving it alone on the home page was simple.
But Shaun really knows what he’s talking about, so it definitely wouldn’t hurt to listen to him. :p haha
I’m guessing it’s the same problem as mine, since you have the FB fan widget as well.
Did you post that into a text widget by any chance? If so, it’s super easy to locate. Just look at your widgets, and on your posts section, fine the line of code for your FB fan widget that starts and end with <script> (other code inside) </script>. Simply put <!– –> around the script like so:
<!– <script> *line of FB fan widget code* </script> –>
That should do the trick just fine. Worked for me, thanks to Shaun. ?? Let us know if it works.
Oops, my bad. The cache was throwing me off. I cleared it, and we are good now! WOO!! Thank you so much, Shaun. ??
Ok, I did find that line of code on my text widget. lol. I made the changes, but this didn’t have any effect on my facebook comments. I’m still getting the error page instead of it allowing comments.
For some reason the comments work on full width or column width, but not default. Coincidentally, default is the only one with the side widgets. Could there be a conflict? Here are my test pages:
Default width: https://www.meloniemac.com/2011/02/10/test-2-2/
Full width (without widgets): https://www.meloniemac.com/2011/02/10/test-3/
Ok, so I opened all of my .php files in dreamweaver and did a search for ‘facebook.net’. No luck. :/ Even when I just searched ‘facebook’, the only results I got were from the facebook comments plugin and from my ‘share this’ plugin that enables facebook sharing.
I can’t locate that line of text anywhere. I don’t even know if it is in the same spot any more.
Crap. I can’t find this to save my life. I tried installing the FB fanbox again to see if it would go back to the footer, but it didn’t. I honestly have no idea where that line of code is, and it doesn’t show up when I search it either. O.o
Ok, so I know why it’s not in column or full width, because I don’t use either. I use the default post setting, and I’m not sure what that would even be called in my php files, for some reason I’m having a hard time finding it.
Having that said, it seems like when I make my posts column width, the FB comments work. However, column doesn’t have the widgets on the side, which is why I don’t use it.
If I could figure out where the default template is, that’s probably where it’s located. *searches*
Oh yeah, I did change some plugins, so that must have changed everything. My bad.
I’m having a difficult time locating this now. It wasn’t in template-page-columns.php or template-page-fullwidth.php either. I also checked template-post-column.php and template-post-fullwidtch.php with no luck either.
I’m backing up some stuff right now and will do a search as soon as it’s done. Thanks so much for your help. I’ll update you as soon as I locate this. Thanks again! ??
Ok, I’m a little confused because the first script you posted that I am supposed to change does not even exist in my footer.php file. This is what the footer looks like:
<?php global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } ?> <?php if(is_page_template('template-page-fullwidth.php') OR is_page_template('template-page-columns.php') OR is_single() && (get_post_meta($post->ID, 'post_template', true) == "Two Columns" OR get_post_meta($post->ID, 'post_template', true) == "Full Width")) { ?><?php } else { ?> <?php get_sidebar(); ?> <?php } ?> </div> <div id="footer"> <div class="left"> <?php if(function_exists('wp_nav_menu')) { wp_nav_menu('sort_column=menu_order&container=ul&theme_location=footer-nav'); } else { ?> <ul> <?php if($theme_show_home_nav == "true") {} else { ?> <li<?php if(is_home()) { ?> class="current-cat"<?php } ?>><a href="<?php bloginfo('url') ?>"><?php if($theme_home_text) { ?><?php echo($theme_home_text); ?><?php } else { ?>Home<?php } ?></a></li><?php } ?> <?php $cats = wp_list_categories('echo=0&hide_empty=0&depth=1&title_li=&include='.$theme_include_footer_nav_cats); if (!strpos($cats,'No categories') ){ echo $cats; }?> <?php wp_list_pages('orderby=menu_order&depth=1&title_li=&include='.$theme_include_footer_nav_pages);?> </ul> <?php } ?> </div> <div class="right"> <?php echo stripslashes($theme_footer_content); ?> </div> <?php wp_footer(); ?> </div> </div> <?php echo stripslashes($theme_scripts); ?> </body> </html>
Thanks for your help. ??
The problem was with the comments in the posts though, not the fanbox. Sorry for not being specific. Was there something wrong with the fanbox too? I thought it was fine, but maybe not. :S haha.
On my posts, I want people to be able to comment on facebook, but it’s just showing the FB home page instead of enabling comments.
Forum: Fixing WordPress
In reply to: Help with a fatal error! :(nvm, fixed. ??