WordPress.org

Ready to get started?Download WordPress

Forums

Sociable icons do not show in tag search posts (4 posts)

  1. kikolani
    Member
    Posted 5 years ago #

    Under the Position options for Sociable, you can have the icons show up with posts searched by category, date, archive, etc. But there is not an option to have them show when people search posts by clicking on a link in the tag cloud. Can this be modified somewhere in the coding?

    Thanks,
    Kristi
    kikolani 2.0 - art, humor, writing and more

  2. kikolani
    Member
    Posted 5 years ago #

    I would just like to add that I have all the position options checked, and it still does not show for tag cloud link search result posts.

    Thanks,
    Kristi
    kikolani 2.0 - art, humor, writing and more

  3. dhvrm
    Member
    Posted 5 years ago #

    Here's an easy template hack:

    1. Open your template directory, located in wp-content/templates/TEMPLATE-NAME, where TEMPLATE-NAME is the name of your template.

    2. Look for a page named tag.php. If it exists, open it in your HTML editor. If it does not exist, open the page named archive.php.

    3. Make a backup copy of your old tag.php or archive.php file and put it someplace safe.

    4. Look for the line of code that reads: <?php endwhile; ?>

    5. Directly above that line, add this:

    <?php if (function_exists('sociable_html')) {
      echo sociable_html();
    } ?>

    6. Save the page.

    7. Upload the new tag.php or archive.php page to your theme directory, replacing the old one.

    If all goes well, the tag page will now show the links. If not, replace the new version of tag.php or archive.php with your backup copy.

  4. kikolani
    Member
    Posted 5 years ago #

    @dhvrm:

    That did the trick.

    With my templates, since I didn't have a tag.php, what I had to do to keep the archives pages from duplicating the sociable icons was to un-check the Date Archives and Category Archives under the Sociable settings. Then I added your code and I now have the icons with my tag cloud results and all archive results pages.

    Thanks for the help!

    Kristi
    kikolani 2.0 - art, humor, writing and more

Topic Closed

This topic has been closed to new replies.

About this Topic