WordPress.org

Ready to get started?Download WordPress

Forums

Twitter posts to Blog
[resolved] Span wrapper (class "twitter-post") (6 posts)

  1. Cibulka
    Member
    Posted 11 months ago #

    Hello,

    thanks again for an awesome plugin! I praised its awesomness already in a five star review here. :)

    I have a question however - my posts/tweets are getting wrapped in a span with a class "twitter-post". I use wp_autop filter, so the span-wrapper kind of breaks my validation and cause other minor headaches.

    Is it possible to remove the wrapper without the need of messing around the plugin's code?

    Thank you very much! P!

    http://wordpress.org/plugins/twitter-posts-to-blog/

  2. badbreze
    Member
    Plugin Author

    Posted 11 months ago #

    I fix this isue for you. =)

  3. Cibulka
    Member
    Posted 11 months ago #

    Wow, this is a hell of a plugin support, sir! Thank you very much! :)

  4. Cibulka
    Member
    Posted 11 months ago #

    Hello again badreze,

    thanks again for very quick reaction! Unfortunately the problem kind of persists.

    The wrapper changed from <span> to <p> in the current update, which unfortunately still dashes against wp_autop - it basically outputs content wrapped in paragraphs around paragraps. :)

    <p class="twitter-post">
         <p><!--added by wpautop-->
              <?php // content ?>
         </p>
    </p>

    If there is some need for the posts to have wrappers, I would suggest plain old <div>. What do you say?

    Thanks again!

  5. badbreze
    Member
    Plugin Author

    Posted 11 months ago #

    Update to 1.4.6, you can use the text area called "body text" (body formatting) to customize the output text of the tweet, it's basicaly as title formatting, you can use %tweet% in the point you want to see the text of the tweet and %author% for the same think.

    egsample:

    Tweet from %author%: %tweet%. For all tweets of this user see <a href="https://twitter.com/%author%">Here!</a>

    Like my idea? =)

  6. Cibulka
    Member
    Posted 11 months ago #

    Very much! And your response time is unbelievable. :) Thanks and keep up the great work!

Reply

You must log in to post.

About this Plugin

About this Topic