WordPress.org

Ready to get started?Download WordPress

Forums

Facebook, Twitter and RSS (3 posts)

  1. Korgaard
    Member
    Posted 4 years ago #

    Hey

    I have a problem with this code:

    <div class="sociale">
    <a href="http://facebook.com/sharer.php?u=<?php the_permalink(); ?>;&t=<?php the_title_attribute(); ?>" title="Facebook">
    <img src="http://www.poeticpeaceproductions.com/wp-content/themes/poetic peace productions/icons/FaceBook-icon.png"</a>
    <a href=”http://twitter.com/home?status=Currentlyreading <?php the_permalink(); ?>" title="twitter"><img src="http://www.poeticpeaceproductions.com/wp-content/themes/poetic peace productions/icons/Twitter-icon.png" /a>
    <a href="<?php bloginfo('home'); ?>?feed=rss2" title="Feed"><img src="http://www.poeticpeaceproductions.com/wp-content/themes/poetic peace productions/icons/Feed-icon.png" /a>
    </div>

    I can't find the problem. Facebokk opens op and I can see the right result in a few seconds.

    Twitter don't even start

    And RRS I want that to just follow a single post.

    Can anybody help me?

    Jan

  2. leliathomas
    Member
    Posted 4 years ago #

    Well, firstly, your image tags are structured incorrectly. This is what they should look like:

    <img src="IMAGENAME.JPG" alt="ALTERNATE TEXT" />

    Surrounding that with a link tag should look like this:

    <a href="ADDRESSHERE"><img src="IMAGENAME.JPG" alt="ALTERNATE TEXT" /></a>

    In your link to Twitter, you actually have a curly quote (a stylized quote) that is messing with your code. Paste this in place of it:

    <a href="http://twitter.com/home?status=Currentlyreading<?php the_permalink(); ?>" title="Twitter"><img src="http://www.poeticpeaceproductions.com/wp-content/themes/poetic peace productions/icons/Twitter-icon.png" alt="Twitter Icon" />

    Can you further explain what you want the RSS to do? I'm not sure I know what you're asking for with it.

    Cheers,
    Lelia

  3. Korgaard
    Member
    Posted 4 years ago #

    Hey thanks,

    Twitter is now working perfect!

    But I can't get get Facebook to work, I just changed the code but have a look:

    <a href="http://facebook.com/sharer.php?u=<?php the_permalink(); ?>;&t=<?php the_title_attribute(); ?>" title="Facebook">
    <img src="http://www.poeticpeaceproductions.com/wp-content/themes/poetic peace productions/icons/FaceBook-icon.png" alt="Facebook Icon" /></a>

    What I want from this RSS button is that only follows one single topic. I also want a second button following 1 single blog and finally I want a RSS button that follows all blogs.

    Maybe it will make more sence if you have a link to the site, so here it is link

    Best,
    Jan

Topic Closed

This topic has been closed to new replies.

About this Topic