WordPress.org

Ready to get started?Download WordPress

Forums

Featured Category Widget
[resolved] Left align image (6 posts)

  1. davidbvogel
    Member
    Posted 1 year ago #

    I like the plugin, but I want the images to be displayed to the left of the title and excerpt instead of above. Any way to do that? Thanks!

    http://wordpress.org/extend/plugins/category-feature/

  2. tepelstreel
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    unfortunately it is only possible by hardcoding the CF_WidgetClass.php file and find line 368. From there on you can make your changes. The output ends in line 376.

    Regards

  3. davidbvogel
    Member
    Posted 1 year ago #

    Forgive my php illiteracy, but what exactly am I looking for, and what will I change it to?

  4. tepelstreel
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there,

    you look for that code:

    echo $eol.'<a href="'.get_permalink().'" title="'.$cfw_title_tag.'">'.$cfw_img.'</a>'.$eol.'<div style="clear:both;"></div>'.$eol;

    And you would have to change it to something like that:

    echo $eol.'<div style="float:left;padding-left:8px;"><a href="'.get_permalink().'" title="'.$cfw_title_tag.'">'.$cfw_img.'</a>'.$eol.'</div>'.$eol;

    That should make it look a bit like you want it to.

    Regards

  5. davidbvogel
    Member
    Posted 1 year ago #

    Excellent. I think I can take it from here. Thank you!

  6. tepelstreel
    Member
    Plugin Author

    Posted 1 year ago #

    You are wellcome!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.