[Plugin: Jetpack by WordPress.com] Facebook Like Box
-
Hi all,
If you want the facebook like box to pick up colours from the background of the sidebar, try the following;
Open the ../jetpack/modules/widgets/facebook-likebox.php file.
Change the following:
?><iframe src="<?php echo esc_url( $like_url ); ?>" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: <?php esc_html_e( $like_args['width'] , 'jetpack' ); ?>px; height: <?php esc_html_e( $like_args['height'] , 'jetpack' ); ?>px; background: <?php esc_html_e( $like_bg_colour , 'jetpack' ); ?>"></iframe><?php
to:
?><iframe src="<?php echo esc_url( $like_url ); ?>" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: <?php esc_html_e( $like_args['width'] , 'jetpack' ); ?>px; height: <?php esc_html_e( $like_args['height'] , 'jetpack' ); ?>px; ?>">;</iframe><?php
and delete:
<p> <label for="<?php echo $this->get_field_id( 'colorscheme' ); ?>"> <?php _e( 'Color Scheme', 'jetpack' ); ?> <select name="<?php echo $this->get_field_name( 'colorscheme' ); ?>" id="<?php echo $this->get_field_id( 'colorscheme' ); ?>"> <option value="light" <?php selected( $like_args['colorscheme'], 'light' ); ?>><?php _e( 'Light', 'jetpack' ); ?></option> <option value="dark" <?php selected( $like_args['colorscheme'], 'dark' ); ?>><?php _e( 'Dark', 'jetpack' ); ?></option> </select> </label> </p>
I’ve tried editing it so the background colour can actually be changed but I suck at php!
Thanks,
Ollie
- The topic ‘[Plugin: Jetpack by WordPress.com] Facebook Like Box’ is closed to new replies.