Wrap $msg in span, p, or div for positioning.
-
Looking for an answer for this but couldn’t find it.
I wanted to float the thumbnail left and have the tweet to the right without wrapping the text.
Because the tweet ($msg) wasn’t wrapped inside an element I couldnt seem to figure out a way to accomplish this with CSS.
I solved this by editing really_simply_twitter_widget.php at line 1093 to read….
$out .= '<p>' . $msg . '</p>';
I was then able to add this to my styles to get the layout I wanted
.really_simple_twitter_widget p { overflow: auto; } .really_simple_twitter_widget img { float: left; margin: 0 10px 0 0; }
Obviously, editing the plugin itself isn’t the way to go so maybe this can be added to the plugin for next release?
https://www.ads-software.com/plugins/really-simple-twitter-feed-widget/
- The topic ‘Wrap $msg in span, p, or div for positioning.’ is closed to new replies.