When I recently updated WordPress, I noticed that my Enlighter.js line hover color changed back to default yellow from the color I had changed it to originally. For example: Since I had to look up how to change this color back to blue, I decided I would create a post here about how to do … Continue reading WordPress: How to change the Enlighter.js line highlight color
Wordpress
WordPress: How to downgrade to a previous version
I recently updated this blog to WordPress version 5.1.1, only to find that one of my plugins called CodePen Embedded Pens Shortcode stopped working. I didn’t think to deactivate, reinstall, and reactivate the plugin again in the new version, which would have solved the problem, so instead I looked for options for rolling back my … Continue reading WordPress: How to downgrade to a previous version
WordPress: How to add an email subscription page
One thing that was missing from my blog was the ability for people to “Subscribe” to my blog to get email updates when I write new articles. In order to enable this, I searched for WP Plugins that would enable this with a shortcode so that I can make a special menu button for a … Continue reading WordPress: How to add an email subscription page
WordPress: How to create a local copy of a live site for development and testing
In this article, I will detail how to make a local “dev” copy of my live WordPress blog for the purpose of testing new styles, developing plugins and experimenting with new themes. My live WordPress blog is at http://bluegalaxy.info/codewalk. On my local Windows PC I have Bitnami WAMP stack installed, which includes an Apache2 server, … Continue reading WordPress: How to create a local copy of a live site for development and testing
How to move WordPress to a new host
Once I got the new domain name bluegalaxy.info, I wanted to move my blog over to the new domain. It was previously hosted on my laptop with a local apache installation at: http://1uslchriston.ad.here.com:8080/blog On the new domain, I wanted to change the landing from “blog” to “codewalk”, and I also don’t need to use port … Continue reading How to move WordPress to a new host
WordPress: How to display excerpts instead of full posts on archive pages
In the WordPress dashboard under Settings –> Reading, there is an option that appears as if it would show summaries of each post on the main page, instead of full posts. Next to “For each article in a feed, show”, there are options for “Full text” and “Summary”. This does not do what I thought … Continue reading WordPress: How to display excerpts instead of full posts on archive pages
WordPress: How to create an iframe refresh button
Let’s say you have an interactive canvas loaded in an iframe and you want to have the ability to “clear” the canvas without reloading the entire page. This example was created using p5.js and the html was loaded into an iframe. After drawing on this canvas, it can be cleared by clicking the “Clear Canvas” … Continue reading WordPress: How to create an iframe refresh button
WordPress: Inject custom CSS to create borders around iframes and images
CSS can be used to style an iframe to give it a border with a drop shadow. For example: Then, in the tag that creates the iframe, reference this CSS using the tag id=”iframe_drop_shadow”. For example: Here is a real working example: An easy way to add the above custom CSS to WordPress is to … Continue reading WordPress: Inject custom CSS to create borders around iframes and images
WordPress: How to create a Table of Contents page with Python
What I wanted to create was a dynamic Table of Contents page where I could have a listing of all of my published articles, organized by category, and sorted such that categories with the most posts appear first, and the posts under each category are listed from most recent at the top to oldest at … Continue reading WordPress: How to create a Table of Contents page with Python
WordPress: How to use an iframe to pull in outside content
Here are instructions for using an iframe with wordpress.org websites. 1. Download the iframe Plugin from here. 2. Use a shortcode in a post like this: Note: I added a space after the left bracket [ and before the right bracket ] in order to not trigger the shortcode in the below code example. Summary:Using … Continue reading WordPress: How to use an iframe to pull in outside content