
























The News page has been added back to the website. Some news sources were removed as they often produced RSS errors or the headlines were simply too bombastic or misleading by my standards.
On the tech side of it, I did have to add some JavaScript to the native WordPress RSS widgets, so that I links opened in a new tab, etc., below is the code snippet:
<script>
// Open link in new tab
let link = document.querySelectorAll('.wp-block-rss__item a')
link.forEach((e) => {
e.setAttribute("target", "_blank")
})
// Add inline style to the <ul>
let news_list = document.querySelectorAll("ul.wp-block-rss")
news_list.forEach((e) => {
e.setAttribute("style", "list-style-type:none; margin: 1rem auto;");
})
// Make the title inline
let wp_block_rss_item_title = document.querySelectorAll('div.wp-block-rss__item-title')
wp_block_rss_item_title.forEach((e) => {
e.setAttribute("style", "display:inline-block!important;");
})
// Style the publish date
let wp_block_rss_item_publish_date = document.querySelectorAll('.wp-block-rss__item-publish-date')
wp_block_rss_item_publish_date.forEach((e) => {
e.setAttribute("style", "display:inline-block!important; font-weight:bold; margin:0 8px;")
})
</script>
30TH ANNIVERSARY OF LICENSING THE WEB FOR GENERAL USE AND AT NO COST
Today marks the 30th anniversary of the release of the World Wide Web into the public domain, for general use, and at no cost, on 30 April 1993 by CERN.
Headless content refers to content that is created and managed without a specific presentation layer in mind. In other words, it is content that is designed to be used across multiple channels and devices, rather than being tied to a specific website or application.
Traditionally, content has been tightly coupled to the presentation layer of a website or application, which makes it difficult to reuse that content across different channels or devices. With headless content, however, the content is decoupled from the presentation layer and is instead delivered via an API (application programming interface). This means that the content can be consumed by any application or device that can access the API, regardless of its specific presentation layer.
Headless content is becoming increasingly popular as more and more companies seek to deliver content across a range of channels and devices, including websites, mobile apps, smart speakers, and other IoT devices. By decoupling the content from the presentation layer, companies can more easily manage and distribute their content across these various channels, providing a more seamless and consistent experience for their users.
Was it just me or did WordPress 6.2 add <p></p>
tags in custom HTML blocks before and after line breaks? Hoping it was just a weird, one-time, bug.
To set up a website with XAMPP on macOS and create a virtual host for it, you can follow these steps:
cd /Applications/XAMPP
cd etc/apache2
httpd.conf
. Open this file in a text editor such as nano or vim by typing the following command:sudo nano httpd.conf
httpd.conf
file, locate the following line:# Virtual hosts
# Include etc/extra/httpd-vhosts.conf
#
at the beginning of the second line to uncomment it.httpd.conf
file.cd extra
httpd-vhosts.conf
. Open this file in a text editor by typing the following command:sudo nano httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/htdocs/example.com"
ServerName example.com
ServerAlias www.example.com
ErrorLog "/Applications/XAMPP/logs/example.com-error_log"
CustomLog "/Applications/XAMPP/logs/example.com-access_log" common
<Directory "/Applications/XAMPP/htdocs/example.com">
AllowOverride All
</Directory>
</VirtualHost>
httpd-vhosts.conf
file.sudo /Applications/XAMPP/xamppfiles/bin/apachectl restart
example.com
in this example) by following the instructions on the WordPress website.http://example.com
) to access your WordPress website.Source: