MyBB Community Forums

Full Version: Remove highlight js and css
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I remove the highlight js and css from my MYBB installation?

I am working on page optimization and I would like to remove this feature from my board (its just eyecandy imo and not really needed in my setup).

I can't find where it is referenced though. Can anyone help me to remove this?
Just remove the highlight class from your CSS:

.highlight {
	background: #FFFFCC;
	padding-top: 3px;
	padding-bottom: 3px;
}
What about the js? Will it get rid of that too?
The reason I ask is when I do a page source I can see a separate stylesheet for the highlight.css and a separate js file. I don't see the highlight.css file anywhere in the themes manager, so its not just a case of removing it from the global css to remove the functionality, I want to stop loading those files as well.

I edited my thread title to be more specific Smile
What's your forum URL? There's no highlight.css file in MyBB by default...
http://www.leefish.nl/mybb/portal.php

I moved the stylesheets to the top as in Step 4 of this tutorial ( http://community.mybb.com/thread-93652.html ), I am still on 1.6.3. as I still need to check all my plugins/modifications on my test site.

Hmm, I did some more testing - I find that this ONLY appears where I have a javascript file loading after headerinclude. I do this in various parts of my board, mainly on showthread, portal and forumdisplay as I have some js that I dont want to load globally as it is only used in certain areas.

I still want to remove it though. I am comfortable with editing core php files if needed.
BUMP. How would I go about removing the highlight.js and highlight.css?
Those aren't part of MyBB. It looks like some syntax highlighting plugin you installed.
ok, thanks for the answer