以下の手順に従って、支柱の高さを制限できます。ユーザーは「続きを読む」リンクをクリックして、高さが制限されている投稿を拡大できます。
- Website Toolboxアカウントにログインします。
- をクリックします 統合 メインメニューのリンク。
- をクリックします カスタムコード リンク。
- に次のコードを挿入します フォーラムヘッドタグ HTML コード テキストボックス:
<script> window.addEventListener('load', (event) => { if (jQ(".wt-post-listing").length) { jQ(".post-body-content").each(function(){ if (jQ(this).children("[id^='post_message_']").outerHeight() > 300) { jQ(this).children("[id^='post_message_']").addClass('read-more-enabled').after('<a class="cleared text-block custom-read-more-link"><i>Read more âº</i></a>'); } }); jQ(".custom-read-more-link").click(function(){ jQ(this).addClass('hidden').prev('.read-more-enabled').removeClass('read-more-enabled'); }); } }); </script> <style> .wt-post-listing .post-body-content > [id^='post_message_'] { float: left; width: 100%; } .wt-post-listing .post-body-content > [id^='post_message_'].read-more-enabled { max-height: 300px; overflow: hidden; } </style> - [保存] 変化。