MyBB Community Forums

Full Version: remove "Code:" from codeboxes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Most people dont put what type of code it is. How can i remove "Code:" above the code boxes. It would be nice to allow the option for the user to keep that if they have selected the code type, but not if there is no option given.

I guess i found a hack to do it. Im not sure if this is the proper method.

I removed the text and left it blank in /inc/languages/english/global.lang.php

$l['code'] = "";

and then i removed buffer and the solid line by commenting them out in ACP -> Templates and Style -> Themese -> Default -> global.css -> .codeblock

.codeblock .title {
	<!--border-bottom: 1px solid #ccc;-->
	font-weight: bold;
	<!--padding-bottom: 3px;-->
	margin: 0 0 10px 0;