So I have this widget called “social connect” that places my social networking icons on the bottom of each page and to the left. I was wondering if I could get rid of the RSS feeds at the bottom of the footer and replace it with these shiny icons and obviously keep their functionality.
I can go and edit this plugin/widget and grab the code but I’m not sure if I should just go ahead and paste it in place of the RSS feed in the footer.php file? I’m a complete idiot when it comes to code so be gentle.
You should be able to replace the RSS feed in footer.php with the following code:
if( function_exists( 'sc_render_login_form_social_connect' ) ) sc_render_login_form_social_connect();
Thanks thenbrent for your reply…so I’m looking at the editor and here’s the code for my footer.php:
<div id="footer"> <p class="quiet"> <br /><a href="<?php bloginfo('rss2_url'); ?>" class="feed">subscribe to posts</a> or <a href="<?php bloginfo('comments_rss2_url'); ?>" class="feed">subscribe to comments</a><br />All content © <?php echo date("Y"); ?> by <?php bloginfo('name'); ?><br /><?php wp_loginout(); ?> <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> </p> </div> </div> </div> <?php wp_footer(); ?> </body> </html>
I understand about replacing the code just not sure where to place it? Do I just paste it over all of this:
<br /><a href="<?php bloginfo('rss2_url'); ?>" class="feed">subscribe to posts</a> or <a href="<?php bloginfo('comments_rss2_url'); ?>" class="feed">subscribe to comments</a>
Also, fyi I had to pull the widget in question because it was conflicting with my Facebook Comments widget but I’m hoping by placing this in the footer it will work just fine. Thanks again!
Yep, replacing those lines should do it. But if you’re experiencing a plugin conflict with the widget, you will also experience it when Social Connect is in the footer.
What is the plugin? How do you know there is a conflict (please describe the unexpected behaviour)?
Actually, I was incorrect…I was thinking of another conflict so this SHOULD work. I’ll give it a go and let you know!
Thenbrent…I pasted it where you said to paste it and it appears that the subscribe to comments and RSS are gone but it did not place the widget/plugin in the footer. I’m kind of bummed because if this widget could be centered in the middle column of the 3 column theme than it would be ok ( still would love it in the footer ) but when centered in the widget settings it only centers it to that first column.
Thanks again for all your help…
- The topic ‘Can I hack a widget?’ is closed to new replies.