WordPress.org

Support

Support » Themes and Templates » Generate sidebar depending on height of post

Generate sidebar depending on height of post

  • Hi there!

    I’m building a site which features sidebars next to each post/article displaying random thumbnails linking to other posts.
    Each sidebar should never be longer/bigger than the post it’s sitting next to.
    Now of course the height of the posts vary and I want to find out/calculate the height of each post and then generate a sidebar with more or less thumbnails.

    What would be the best way to make this happen?
    Javascript??

    Best,
    p

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Generate sidebar depending on height of post’ is closed to new replies.