Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Problem with Header removal and featured Images #85043
    Moritz Boegli
    Participant

    Thanks a lot. I was able to create quite a bit of additional css code thanks to these posts, but I have one small problem remaining:
    I curently use the follwing code for the banner-image size:

    @media screen and (min-width: 1600px) {
    /* changes the width of a page and picture*/
    body.single-post #page {
    max-width: 70%;
    }
    #banner-image {
    padding-bottom: 20%;
    }
    }

    /* Mobile Style Sheet */
    @media only screen and (max-width: 1000px) {
    body.single-post #page {
    max-width: 100%;
    }
    }

    This results in the picture looking like this. As you can see the box doesnt align with the banner end anymore. How can I fix this?

    I tried adding following CSS code in the respectiv section but it hasnt worked sofar:

    #wrapper {
    padding-bottom: 20%;
    }

    Thanks a lot in advance
    Regards!

    in reply to: Problem with Header removal and featured Images #84928
    Moritz Boegli
    Participant

    Just realised its the wrong link for phone screens. This one should work.

    in reply to: Problem with Header removal and featured Images #84920
    Moritz Boegli
    Participant

    Thanks a lot. Your help is relly appreciated.

    Well you advised me to change the max-width of a post to show the whole (featured image). This did work well for a big computer screens . But for a smaller computer screens and phone screen It did not work as intended. So I guess my question is:

    Is it possible to show the the whole picture (or close too) on (big) computer screens, while keeping the max-width at 100%?
    I’m guessing this could be achieved by somehow extending the max-height of the picutre?

    I hope this clarified it a bit
    Thanks a lot in advance

    in reply to: Problem with Header removal and featured Images #84876
    Moritz Boegli
    Participant

    Oh and I’ve just realised one more thing (sorry about that)
    I like to have a different width for the posts on mobile devices. I added this code to the functions.php file of the theme:

    if ( wp_is_mobile() ) {
    body.single-post #page {
    max-width: 100%;
    }
    }

    This resulted to a sitewide error. Could you help me with this?
    Thanks a lot in advance

    in reply to: Problem with Header removal and featured Images #84874
    Moritz Boegli
    Participant

    Thanks a lot, this solved all my problems.
    One last question though:
    Is there an easy way to make the posts in your Popular Destination feature the same size? I kinda dislike the white space that exist in the normal way.
    Regards!

    in reply to: Problem with Header removal and featured Images #84859
    Moritz Boegli
    Participant

    Thanks a lot for the quick response, I really appreciate it. I think in retroperspective my post was somewhat confusing so I’ll try and clarify some stuff:

    #1
    I think I didnt realise that realis that both header and featured image are coded as banner image.
    I only want to remove the header on pages like the /category/name one. On a blog post, I’dl like to keep it (as featured image).

    #2
    Yes the width is not my problem. Currently, on a wider screen the whole width of a picture and about 1/3 to 1/2 of the height of the picture is showing. Id like to show 100 % of the picture.Just increasing the max height doesnt work for me though.
    Again this is only a problem on a wide screen. On phone screens for example it works perfectly fine.

    Thanks a lot again. You’re awesome
    Regards!

Viewing 6 posts - 1 through 6 (of 6 total)