• Resolved mydaily-gadget

    (@mydaily-gadget)


    Hello guys,

    I have installed this plugin to show a widget on my sidebar with the latest posts.

    This plugin uses the next function:https://wordpress.pastebin.ca/1890947
    and has this effect.

    What i wanted is the title to be aligned to the right of the image. So i used some css and inserted this code into the style.css of my theme. It kinda of worked, doing this. The problem is that my code works for titles that have a minimum of 3 lines.

    I was thinking last night to create some kind of a box for any titles that are generated by the plugin. How can i do that and what is the function that i should add an css code to it?

    P.S: i tried postlist and post_title.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    try this:

    .advanced-recent-posts img {
          float:left;
          clear: left;
          margin: 5px 5px 0 0;
    }

    Thread Starter mydaily-gadget

    (@mydaily-gadget)

    hm…better, but my titles are shown above their images: Like this.

    Moderator keesiemeijer

    (@keesiemeijer)

    Ok, try this:

    /* clearing floats.
    The use of a width or height declaration is required to make the effect work in Explorer Windows and Opera.
    
    A width: 100% is a neat starting point, although more complicated layouts may require other values.
    
    */
    
    ul.advanced-recent-posts li {
            overflow: auto;
            height:100%;
    }
    .advanced-recent-posts img  {
    	float: left;
    	margin: 5px 5px 0 0;
    
    }

    Thread Starter mydaily-gadget

    (@mydaily-gadget)

    Worked like a charm:) thank you again kees

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin costumization’ is closed to new replies.