WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Twittwer Widgets Configurator (8 posts)

  1. oregonslee
    Member
    Posted 1 year ago #

    I just completed the settings for an "official Twitter API" widget to embed my tweets as posts in my word press 3.5.1 website. It asks me to copy a snippet of code and paste into the CSS of my theme. That's clear, but I don't know where to paste it in the CSS. Sorry, I don't know any html. Can somebody lead a blind user, please.

  2. Rajesh Soni
    Member
    Posted 1 year ago #

    You can try pasting at the END of the CSS file.

  3. oregonslee
    Member
    Posted 1 year ago #

    Hi Rajesh, I pasted into the CSS, at the bottom, once just a line above the final "close parenthesis symbol" and once at the very very bottom below all other code and nothing. Both times nothing.

    Interestingly of all the places I have pasted the code, it only works in the Footer PHP file. It's really unattractive in that spot because it doesn't work as a post but it proves the widget is functional.

  4. Rajesh Soni
    Member
    Posted 1 year ago #

    What is the code that you're trying to post?
    What is the CSS file name that you tried pasting it?
    What is the content of that CSS file (before you made your changes)?

    What is the footer .PHP file name (and it's contents) where it WORKED ?!

  5. oregonslee
    Member
    Posted 1 year ago #

    This is the code:

    <a href="https://twitter.com/SharpeningPro">Tweets by @SharpeningPro</a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

    It is current sitting idly in style.css

    It works in "footer.php" where I place it previously but the twitter feed shows up in the footer, not as a "post" which I am trying to achieve.

    Bye the way, it's nice of you to reach out.

  6. Rajesh Soni
    Member
    Posted 1 year ago #

    That is a JavaScript code. How are you expecting it to work in a CSS file, lol.

    You can add this snippet to your sidebar.
    Login to WordPress
    Go to Appearance -> Themes -> Widgets
    Add a Text widget, enter the code snippet in the content area and save.

    More info here: http://en.support.wordpress.com/widgets/text-widget/

  7. oregonslee
    Member
    Posted 1 year ago #

    Well I'm glad to be a source of amusement for you. LOL. It's a small price for your kindness. But really, I did everything exactly as you said and after allowing time for all things to propagate to their places, I logged out and back in, and there it was, just like a charm. You are fabulous:-) There's not much hope for me as a computer person, but I registered my son this week as a freshmen in Information Technology so he will carry the banner for me. Best wishes.

  8. Rajesh Soni
    Member
    Posted 1 year ago #

    Sounds great, glad I could be of help.

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic