• Resolved parakeet

    (@parakeet)


    Does anyone know how to get feed_image to appear on the *left* (as opposed to the right) of a category title link?

    I’ve tinkered with CSS and the code in template-functions-category.php – all to no avail.

    Anyone have any tips/plugins/code please?

Viewing 16 replies (of 16 total)
  • mazdakam

    (@mazdakam)

    this is my hack it’s similar to manstraw:

    go to wp-includes\classes.php

    find this` if ( (! empty($feed_image)) || (! empty($feed)) ) {
    $link .= ‘ ‘;

    if ( empty($feed_image) )
    $link .= ‘(‘;

    $link .= ‘cat_ID, $category->category_nicename ) . ‘”‘;

    if ( empty($feed) )
    $alt = ‘ alt=”‘ . sprintf(__( ‘Feed for all posts filed under %s’ ), $cat_name ) . ‘”‘;
    else {
    $title = ‘ title=”‘ . $feed . ‘”‘;
    $alt = ‘ alt=”‘ . $feed . ‘”‘;
    $name = $feed;
    $link .= $title;
    }

    $link .= ‘>’;

    if ( empty($feed_image) )
    $link .= $name;
    else
    $link .= “<img src=’$feed_image’$alt$title” . ‘ />’;
    $link .= ‘‘;
    if ( empty($feed_image) )
    $link .= ‘)’;
    `
    it must be on line no. 592

    Then copy it after $cat_name = attribute_escape( $category->cat_name);

    Then replace $link .= '<a href="' . get_category_rss_link( 0, $category->cat_ID, $category->category_nicename ) . '"';

    with this $link = '<a href="' . get_category_rss_link( 0, $category->cat_ID, $category->category_nicename ) . '"';

    the only change is a . before the =

Viewing 16 replies (of 16 total)
  • The topic ‘RSS feed_image on the *left*?’ is closed to new replies.