nfardo 0 Report post Posted August 17, 2010 I saw the other posts for iBlogPro. I downloaded Custom Headers and Footers from http://wordpress.org/extend/plugins/custom-headers-and-footers/. However, I cannot see where to go to edit the settings, nor am I able to hack the single.php file to apply the iframe code such as: <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:275px; height:25px;"></iframe> within this code: <?php get_header(); include(THEME_LIB.'/template_posts.php'); get_footer(); ?> in single.php Share this post Link to post Share on other sites
bryan-hadaway 3 Report post Posted August 18, 2010 From your WordPress admin, you can insert the code in: Settings > Custom Headers and Footers Thanks, Bryan Share this post Link to post Share on other sites
nfardo 0 Report post Posted August 18, 2010 Thanks. I see it, but there is no area where this takes and places it nicely. CODE: <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:275px; height:25px;"></iframe> Meta Headers puts it above the content of the entire page, and Header puts it directly below the main taxonomy. :-( Share this post Link to post Share on other sites
cmunns 16 Report post Posted August 18, 2010 Hey Noah, The way set up the theme may be hard to understand initially because it is much different from the standard method. The single.php is actually controlled by _posts.php which also controls many other templates e.g. 404,search,page,single...this is done so that code only has to be changed once instead of individually on all pages to achieve the same thing. In the _posts.php file a good place for the code may be after or inside of the "metabar" div if you want it near the title of the post. Share this post Link to post Share on other sites
nfardo 0 Report post Posted August 19, 2010 Yes, I figured it was something like this, a component within a component within a component. It worked: http://pghfirm.powweb.com/category/flaherty-fardo-news-blog/ and individuals like: http://pghfirm.powweb.com/2010/08/six-figure-settlement-for-victim-of-botched-awake-breast-augmentation/ Here is the code if it helps someone else... <div class="metabar"> <?php _e('On',TDOMAIN);?> <?php the_time(get_option('date_format')); ?>, <?php _e('in',TDOMAIN);?> <?php the_category(', ') ?>, <?php _e('by',TDOMAIN);?> <?php the_author(); ?> <!-- <?php edit_post_link(__('(Edit Post)', TDOMAIN), ' ', ' ');?> --> <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:275px; height:25px;"></iframe> </div> Share this post Link to post Share on other sites
bryan-hadaway 3 Report post Posted August 20, 2010 Thank you very much for sharing. Thanks, Bryan Share this post Link to post Share on other sites
nfardo 0 Report post Posted August 21, 2010 I also added a Tweet button if anyone else cares to check this out: <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:24px;"></iframe> Tweet<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> http://pghfirm.powweb.com/category/allegheny-property-assessment-blog/ However, let it be known, that it adds it to the main blog-roll pages as well as the actual blog landing post page. Cheers, NPF Share this post Link to post Share on other sites
Andrew 207 Report post Posted August 22, 2010 Thanks for the update and info Share this post Link to post Share on other sites