Artikel in Serie WordPress

Not Being Tracked by Functions In WordPress Core

Install the plugin „Disable Google Fonts“ to disable the loading of „OpenSans“ from Google when using WP admin. The font brings no advantages over the standard appearance of WP admin.

Install the plugin „Disable Emojis“ to disable the loading of an external Javascript that does nothing but implement ugly, useless smileys even when your site is not using them. Installing this plugin will disable that function completely.

Support For Multiple Languages in WordPress


Foreign visitors have pointed out to me that they sometimes read my blog using translation functions in their their webbrowsing software, most notably „Google Translate“ which is directly built into Google Chrome. That translation function does a good job, but sometimes produces oddities, for example it attempts to translate my lastname, which is also a valid German vocable.

That problem was quickly addressed by adding the class="notranslate" plus the HTML5 language attribute translate="no" to a <span> surrounding my name. But this incident contrasted a deeper problem that has been troubeling me for a while now.

Weiterlesen … »

Adding Custom Format Buttons To tinyMCE in WordPress 4


In my technical articles I sometimes use inline fragments typed in a monospace font to highlight code or filenames that appear within floating paragraph text. Back in the days I did this with the <tt> element, nowadays I use <span class="tt"> and a CSS style like

.tt { font-family: monospace; }

I wanted to extend the tinyMCE in WordPress with a toggle button that behaves like the Bold or Italic buttons and surrounds selected text with such a <span class="tt"> element or, when pressed while an already surrounded text is selected, removes that surrounding again. Also, when the cursor is inside such an element, the button should switch to an „active“ state that indicates that the character format can be deselected.

Weiterlesen … »

WordPress-Plugin to Embed Gitlab Project Information

For my personal use, i wrote a small WordPress plugin that allows me to embed a link to a Gitlab repository, a list of commits and a link to the releases of that project in a WP post.

Example (linebreaks added to shortcode for readability):



Gitlab-Projekt linuxfoo-gitlabLetzte 3 Commits:2022-01-01 : f6abb63a add option author="none"2021-11-30 : 4b7b8d4a project_header formatting2021-11-29 : 95fa3719 Merge branch 'main'Neueste Release: v1.4.3

Weiterlesen … »