Skip to content

coding

Adding Custom Styles via the WordPress Visual Editor

Specifically, this is about adding the ability to select pieces of text inside your tinyMCE editor, and having a dropdown of styles to choose from that you can apply to that text.

You need to do two things –

  1. Edit your theme’s style, which you can do from the WordPress dashboard, via Appearance → Edit CSS. Add a style element that looks something like .classname {font-size: 1em}.
  2. This is the tricky part – you have to edit code now. You need to tell the editor to load a drop down called Styles, which will have the styles you want to be able to apply. Look at how it’s done here – the code is explained fairly well.

Read More →

Apache Solr vs Elastic Search: Another Take

I asked a co-worker to help me understand the differences between the two systems/appilcations, and here’s what he said (with PII removed). I am publishing it here because I think it’s a great narration:

My background using Lucene, Solr, and ElasticSearch: a few years ago, I was asked to participate in a project as the architect, lead developer, and manufacturing SME.  Let’s call it KTRP.

KTRP was purposed for many functions/capabilities; one being the aggregation, indexing, search, and other NLP capabilities against product engineering documents, tech specifications, and support documentation. I chose Lucene as the index/search engine.

Read More →