Site logo

Archived topic

Post Image (CSS)

5 replies · Started by Jose Miguel on October 17, 2016

Viewing posts 1–6 of 6

Hello,

I am using this CSS to display featured images a bit different than default.

But... They are below of title, how can modify it to be shown above of title?

.post-image {
display: ;
width: 150px;
height: 150px;
float: left;
}

Whitout the add-on "blog" is not possible?

Thank you and sorry for bother you.

The Blog add-on makes it much easier.

However, you can do it with PHP as well:

add_action( 'wp','tu_move_post_image' );
function tu_move_post_image()
{
    remove_action( 'generate_after_entry_header', 'generate_post_image' );
    add_action( 'generate_before_content', 'generate_post_image' );
}

Hope this helps :)

Hey friend!

I had forgot your answer, my apologies.

Your code worked perfectly, thank you so much!

You're very welcome :)

Buddy, I apologies for made too many questions, really if you do not want help me this time I will understand.

I am almost ready with my site, just there is a last thing.

I was writing CSS trying resize the header widget with ".header-widget" and the ID, in this case "#text-34" using "padding" "margin" "max-width and height" but nothing change.

The point is that I want to put a banner "728x90" in the header, but I can not.

I mean, the banner does not look in its normal size by the default size theme.

Hi there,

No worries! I'm here to help :)

Try something like this:

.header-widget {
    float: none;
    max-width: 100%;
    text-align: center;
}
This archived topic is closed to new replies.