[Resolved] Post Image (CSS)

Home Forums Support [Resolved] Post Image (CSS)

Home Forums Support Post Image (CSS)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #236128
    Jose Miguel

    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.

    #236133
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #240958
    Jose Miguel

    Hey friend!

    I had forgot your answer, my apologies.

    Your code worked perfectly, thank you so much!

    #240971
    Tom
    Lead Developer
    Lead Developer

    You’re very welcome πŸ™‚

    #241808
    Jose Miguel

    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 “728×90” in the header, but I can not.

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

    #241809
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    No worries! I’m here to help πŸ™‚

    Try something like this:

    .header-widget {
        float: none;
        max-width: 100%;
        text-align: center;
    }
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.