I am encountering difficulties in getting dynamic height to function correctly. Despite updating Discourse and refreshing my snippet with the latest configurations, the issue persists.
<h4 class="comments-main-title component-title">Comentários</h4>
<div id='discourse-comments'></div>
<meta name='discourse-username' content='<?php echo esc_attr($discourse_author); ?>'>
<script type="text/javascript">
DiscourseEmbed = {
discourseUrl: '<?php echo esc_url($discourse_url); ?>',
<?php if ($use_topic_id): ?>
// Modo ID: Tópico salvo no banco, imune a mudanças de URL
topicId: <?php echo intval($topic_id); ?>,
<?php else: ?>
// Modo URL: Fallback quando a criação via API falha
discourseEmbedUrl: '<?php echo esc_url($permalink); ?>',
<?php endif; ?>
fullApp: true,
lazyLoad: true, // disable lazy loading of the iframe
lazyLoadMargin: '1500', // pixels before viewport to start loading
dynamicHeight: true,
embedMinHeight: '400',
embedMaxHeight: '3000',
embedHeight: '800px',
// className: 'CLASS_NAME',
};
(function() {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();
</script>
https://tecnoblog.net/noticias/samsung-wallet-agora-suporta-pix-por-aproximacao/