Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    WP toTwitter should not be outputting any styles in the body. Can you provide a link?

    Thread Starter devgiri

    (@devgiri)

    Link is here.
    http://fieldnotebook.net/

    Code of this problem is the 598 line of source.
    This code is not output from WP to Twitter?

    Plugin Author Joe Dolson

    (@joedolson)

    I can’t actually reach your web site. Can you provide an example of the code? Without any information, I really can’t say what might be going on. It could be something weird going on from WP to Twitter, but there’s nothing WP to Twitter is *intended* to do which would place styles in the body element.

    Thread Starter devgiri

    (@devgiri)

    I shows the code, including the front and back of the 598 line.

    Code is here.

    <div id="footer">
        <ul class="support">
            <li>Powered by <a href="http://wordpress.org/">WordPress 3.5</a></li>
            <li class="template"><a href="http://vicuna.jp/">vicuna CMS 2.0.3</a> - <a href="http://wp.vicuna.jp/" title="ver.2.0.3">WordPressTheme</a></li>
            <li class="skin">Visualized by style-future</li>
                </ul>
        <address>Copyright &copy; field-notebook.net All Rights Reserved.</address>
    </div>
    <link rel='stylesheet' id='wpt-twitter-feed-css'  href='http://field-notebook.net/wp-content/plugins/wp-to-twitter/css/twitter-feed.css?ver=3.5' type='text/css' media='all' />
    <script type='text/javascript' src='http://field-notebook.net/wp-content/themes/wp.vicuna/js/common.js?ver=3.5'></script>
    <script type='text/javascript' src='https://platform.twitter.com/widgets.js?ver=3.5'></script>
    </body>
    </html>
    Plugin Author Joe Dolson

    (@joedolson)

    I see the issue. You’re presumably using a plug-in that moves your scripts to the bottom of the page, instead of in the <head> element, and WP to Twitter *is* incorrectly enqueueing the stylesheet as a script instead of as a style. I’ll get that fixed.

    Thread Starter devgiri

    (@devgiri)

    I’ll get that fixed.

    I was going to fix the code, but I do not need to fix myself?

    WP to Twitter *is* incorrectly enqueueing the stylesheet as a script instead of as a style.

    “WP to twitter” output the code before the script element?

    Do I understand correctly your English?

    Plugin Author Joe Dolson

    (@joedolson)

    You may understand my English, but perhaps not the concept.

    First: if you want to fix the code now, then you need to change it yourself. Otherwise, you can wait, and I’ll release an update that fixes it when I have a chance.

    Second: WP to Twitter is using the wrong “hook” to add the stylesheet: instead of using wp_enqueue_style, it’s using wp_enqueue_script, so WordPress places the stylesheet where it outputs scripts, rather than where it outputs styles.

    Thread Starter devgiri

    (@devgiri)

    I could understand perhaps.
    I asked , because could not find corrected portion of “WP to twitter”.
    So, I will wait for your release.

    Thank you.

    Thread Starter devgiri

    (@devgiri)

    This topic is resolve.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘I want to fix the output of WP to Twitter.’ is closed to new replies.