• Resolved fetfreak

    (@fetfreak)


    Hello guys!

    I’m a brand new WordPress user and I’m trying to build a website.
    https://blog.adventurersinn.net/ – theme is Twenty Twelve.

    This is what I have so far and I’m pretty satisfied with it.

    I only have one problem I can’t seem to figure out.

    I’ve set a maximum height for posts to keep things tidy but when I open the longer posts it keeps using the maximum height, it doesn’t scale down with the text.
    When I delete the “max-height” command and just use the “height” then the opened post scales normally.

    I hope I made myself clear since I’m not a proficient user.

Viewing 15 replies - 1 through 15 (of 15 total)
  • I would like to help but do not fully understand your issue. Please try to explain some more and/or provide a link….

    Thread Starter fetfreak

    (@fetfreak)

    Hey wpfan1000

    Ok.. here it goes..

    I used max-height command to limit the size of articles in a category as you can see here> https://blog.adventurersinn.net/
    that way articles with less words don’t take needless space and articles with a lot of words are cut short.
    The problem starts when I open the article (of longer length) and the box size for the article uses the max-height command and not auto command,
    so the box doesn’t scale with the text and is cut short.
    like here> https://blog.adventurersinn.net/quest-hooks/

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    There’s not just a “max-height” style set, there is also a “min-height” style. Are you aware of this?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I don’t like to involve more than one issue at a time, but you really should consider setting up a Child Theme or at least installing a Custom CSS plugin (CSS-only) to hold your modifications. Otherwise you will lose your modifications when the theme is updated.

    Hi,

    Thanks for clarifying.

    When you said
    “when I open the longer posts it keeps using the maximum height, it doesn’t scale down with the text.”
    I thought you wanted to have the container get smaller (scale down) and that didnt make sense to me.

    Anyways the purpose of the max height is to limit the height of the container to a certain value. So it is doing its job properly.

    You also have not stated what it is that you would like to have happen.

    If you want the container to be a certain maximum size, then what would you like to have done with the text?

    Do you want scroll bars to appear? Do you want an option to expand the container? Do you want the text size to shrink?

    Thread Starter fetfreak

    (@fetfreak)

    Yes. I tried using min-height but it didn’t help.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Yes. I tried using min-height but it didn’t help.

    Take away this style. This is causing the issue.

    Thread Starter fetfreak

    (@fetfreak)

    The goal is to have article boxes limited when they are all together but once they are open, the box should be as large as the text.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Could you provide illustrative examples of what you want?

    Ok so you mean I take it then that you would like the boxes on the FRONT page to be limited in size?

    And when the post is displayed on an individual page then you dont want the box to be limited in size so that all text can be read?

    You have to be clear on what you want in order for people to be able to help you.

    So I would suggest doing this instead….

    Insert a Read more tag in your text of a post.

    This will limit the amount of text that is shown in the front page.

    A good article about it is here:
    https://www.wikihow.com/Add-Read-More-to-Wordpress

    And get rid of the max and min height css.

    This should change the front page display of a post from (this one is getting cut off right now)

    Martin’s Fortune

    1(2)Martin Wesley, descendent of a faithful servant of Lord Amren Stieber recruits players to pillage the lord’s lost tomb. Searching for the long lost tomb reveals that forgotten history leaves its traces to this very day. The forest around the lord’s resting place is cursed and veiled in darkness. When the party finally arrives to the lord’s resting place, they discover that the tomb is something more – a jailhouse; their prize will have to be earned in blood. Even when they vanquish the undead fiend, they can’t be too safe, since

    To:

    Martin’s Fortune

    1(2)Martin Wesley, descendent of a faithful servant of Lord Amren Stieber recruits players to pillage the lord’s lost tomb. Searching for the long lost tomb reveals that forgotten history leaves its traces to this very day. The forest around the lord’s resting place is cursed and veiled in darkness.
    Read more…..

    I hope that helps

    Thread Starter fetfreak

    (@fetfreak)

    Thank you guys!
    That should do the trick. I’ll try it out.

    Pk great please let me know if and how it works, it is nice to know.

    PS That is the twentytwelve theme but it looks like a nice custom theme.

    Whoever did the work – nice job!!! Was it you? ??

    How was it modified to look so nice?

    Thread Starter fetfreak

    (@fetfreak)

    Read more did the trick!

    As for the custom theme.
    A friend of mine and I came up with the design and the idea, and another friend created it. Soon after he didn’t have enough time to finalize it so I started poking the theme editor.

    Thanks again!

    Glad it worked for you ??

    Thread Starter fetfreak

    (@fetfreak)

    Problem solved!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Post maximum height trouble’ is closed to new replies.