The SyntaxHighlighter WordPress plug-in is used to display code ‘as is’; unfortunately WordPress again is too clever for its own good and mangles special characters like & and ” even before the text gets to the SyntaxHighlighter blocks in the Block Editor.
The solution is to add a filter function in your custom functions.php file:
Continue reading Special character mangling in WordPress and SyntaxHighlighter →
I wanted to hide an element on a static page I recently created for my WordPress site.
The easiest way to do this is to create a custom CSS entry for the particular element, the title in my case.
Continue reading Hide an element on a WordPress page →
The best way to customise your WordPress site is to create a custom child theme based on one of the standard built-in themes.
Continue reading Create a custom WordPress theme →
I like to display keyboard entries, code examples and sample outputs with distinctive formatting using the <pre>, <kbd>, <code>, and <samp> tags. I also like this formatting to appear uniform across the whole web site
Continue reading Don’t like your WordPress theme? Modify it. →
I really hate it when an application automatically rewrites the code I provide without asking me first.
Continue reading WordPress html code rewriting and the frustration it causes →
Notes primarily to myself, but perhaps also useful for someone else…