I have created widget position in wordpress theme:
<div class="row">
<?php if ( dynamic_sidebar('Top')) ?>
</div>
if there is not any widget active in this position then I want to hide whole code.
is there any code for wordpress like in joomla
<?php if($this->countModules('Top')): ?>
is_active_sidebarshould do the job, at least the WP source-code looks as if the function would check, if the sidebar is empty: