Simple Mod for the Facebook Like Box (Jetpack)
-
When adding a Title to this widget, there is no space between the title and the iframe below it when displayed (which we would like for continuity etc)
How do we addd a simple line space between the title and the iframe itself?
We are NOT coding boys at all (!) but we can follow clear instructions. We’re pretty sure it’s a simple php mod in here somewhere (obviously our own copy…):
https://plugins.trac.www.ads-software.com/browser/jetpack/trunk/modules/widgets/facebook-likebox.php
Specifically at line 79 here (we think….)
It’s not a simple “\n” or “\r\n” as we’ve tried that!
Thanks (for being patient)
72 echo $before_widget;
73
74 if ( ! empty( $title ) ) :
75 echo $before_title;
76 ?>“><?php echo esc_html( $title ); ?><?php
77 echo $after_title;
78 endif;
79
80 ?><iframe src=”<?php echo esc_url( $like_url ); ?>” scrolling=”no” frameborder=”0″ style=”border: none; overflow: hidden;<?php echo 0 != $like_args[‘width’] ? ‘ width: ‘ . (int) $like_args[‘width’] . ‘px; ‘ : ”; ?> height: <?php echo (int) $like_args[‘height’]; ?>px; background: <?php echo esc_attr( $like_bg_colour ); ?>”></iframe><?php
- The topic ‘Simple Mod for the Facebook Like Box (Jetpack)’ is closed to new replies.