-
Customizing WordPress comments
The documentation on customizing WordPress comments is a bit sparse, particularly when compared to WordPress posts. I ran into this issue while building a web application built off of WordPress and wanted to use WordPress’ commenting system with some custom fields and styling. So here’s my attempt to address that. Make sure you have a…
-
CSS classes based on page location
When styling SharePoint sites, it can be very useful to add specific styles to specific “pages” or views. Here’s a bit of jQuery/javascript code to make that possible. It works by grabbing the page location turning it into classes that are added to the body tag. jQuery(document).ready(function($){ //use a javascript variable to hold the results…
-
Nearly automatic breadcrumbs
Breadcrumbs var here = location.href.replace(/(\?.*)$/,”).split(‘/’).slice(3); var parts = [{ “text”: ‘Home’, “link”: ‘/’ }]; for( var i = 0; i < here.length; i++ ) { var part = here[i]; var pageName = part.toLowerCase(); pageName = part.charAt(0).toUpperCase() + part.slice(1); var link = ‘/’ + here.slice( 0, i + 1 ).join(‘/’); $(‘#siteBreadcrumb ol.breadcrumb’).append(‘<li><a href=”‘ + link +'”>’…