MyBB Community Forums
Wrapping the category description in a <p> - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Wrapping the category description in a <p> (/thread-159325.html)



Wrapping the category description in a <p> - Mihai101 - 2014-09-13

Is it possible to wrap the category description in a paragraph ? As in, when there's a description.

I don't want the paragraph to show when there's no description.

Thanks.

Edit: and also for the forums description..


RE: Wrapping the category description in a <p> - Destroy666 - 2014-09-13

You can use the Template Conditionals plugin: http://mybbhacks.zingaburga.com/forumdisplay.php?fid=29

Activate it, then for example in forumbit_depth2_forum change {$forum['description']} to:
<if $forum['description'] then><p>{$forum['description']}</p></if>



RE: Wrapping the category description in a <p> - Mihai101 - 2014-09-14

Thanks.