I'm looking to display a standard wordpress widget only on posts that are over X amount of characters in length (or another method that can roughly calculate the height of of a post.)
I am looking to include some additional advertising in the sidebar of my sites posts that are very long and thus have empty sidebar space. On shorter posts this is not necessary to display this large additional advert as then otherwise the sidebar would be longer than the main content body and cause issues with layout.
Does anybody know the best solution to achieve this?
I understand it may not be a common thing to ask, but if it's a simple enough solution it could be worth while to implement on the site. Thanks to anyone who can offer some assistance.