WordPress.org

Forums

Advanced Most Recent Posts
Adding a line break after the photo (7 posts)

  1. dick_mcninny
    Member
    Posted 4 years ago #

    I can't find where in the code for this widget to add a line break. I don't like the first line of text running directly after the thumbnail of the picture. I'd just suit me to have a line break in there. Can anyone help me figure out where to put it in the widgets code.

    here's an example of what I have and you can tell that it would just look better having the text start underneath.
    http://theorcpa.org/?page_id=79

    thanks

    http://wordpress.org/extend/plugins/advanced-most-recent-posts/

  2. Xephan
    Member
    Posted 4 years ago #

    You need to override the CSS rather than edit the plugin

    #advanced-recent-posts a img {
    display: block;
    }

    should do it.

  3. dick_mcninny
    Member
    Posted 4 years ago #

    Nothing doing... didn't work, do I need to place it somewhere specific, I just put it in the main CSS file?

  4. My fork of this plugin has an option to specify a separator to be used between the title and excerpt
    http://wordpress.org/extend/plugins/advanced-most-recent-posts-mod/

    I often replace the colon with <br />

  5. Rick Powell
    Member
    Posted 4 years ago #

    dick_ meant he wanted a line break after the image which doesn't seem possible with either of these plugins.

    I would like a line break after the thumb, too.

  6. If CSS won't work for you, then you can use the following to forcibly add a break after the image

    - open up the adv-most-recent.php file
    - find line 436 (in version 1.6.1, maybe be different in other versions)
    change
    $image = '<img src="' . $img . '" title="' . $post_title . '" class="recent-posts-thumb" ' . $width . $height . ' />';

    to

    $image = '<img src="' . $img . '" title="' . $post_title . '" class="recent-posts-thumb" ' . $width . $height . ' /><br />';

  7. SaPeMaco
    Member
    Posted 4 years ago #

    hello!!!! creat post

    i need something diferent like this.
    how can i show the tittle and image in line without space, like this...
    http://sapemaco.com/V2/wp-content/uploads/2011/05/ADVANCED-MOST-RECENT-POSTS-SAMPLE.bmp

    PLEASE HELP ME

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Most Recent Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic