How to add Target Blank to WordPress Menu Custom Link

The WordPress menu allows the addition of custom links. It’s a great way to supplement your menu pages with specific additional references. The links may be to social media, business or trade organisations, agents, or other related websites. I had added custom links to the WordPress menu of a website. […]

Get nth Row From Database

For a parent-child database table relationship – could retrieving the nth child row be used? I had a project comprising a main table with an associated secondary table. Similar in style to a manufacturers parent table with associated products child table. In this particular example I knew that there would […]

Disable ASP.NET Form Button

When providing buttons on a web page, we may wish to show a particular button as ‘greyed out’, signifying that it is more generally available for use, but not for the task we are undertaking. An example of this would be an edit button. If the content we are adding […]

Formatting Datagrid Data Text Two Ways

Data grid output can be formatted differently for the public/normal view and the edit view. In this example both methods are used. Using inline table row editing with a DataGrid I wished to change the formatting according to its state. To illustrate this I have included below an example template […]

Differences Between Form Methods Post and Get

HTML forms may post or get their submission. The method attribute, either post or get, prescribes to the browser how the form data is to be sent back to the server. For reference here’s a typical form declaration, on an HTML page <form action=”contact.php” method=”get”> As shown there is the […]

Changing Login Text Username or Email Address

Having disabled email addresses for WordPress login I wanted to change the text, which was shown. On the login dialogue it was showing Username or Email Address above the first textbox. The mention of Email Address was now wrong and misleading. To do this I added the following to the […]

Add Browser Redirection to ASP.NET File

Perhaps a page was created with a spelling error, or a reorganisation of the website means that a particular page has been renamed. We wish to redirect our visitors to the page to a different address. In the example below its assumed that the website page has moved to […]

Comparison of Font Sizes

I wanted a comparison between the different pixel and point sizes. I’ve listed the increasing numerical size for each series side-by-side, illustrating how points get progressively larger. In the table below I’ve set the style in the pixel and point columns such that it’ll over-ride the CSS configured elsewhere.   […]

Warning: preg_match(): Compilation failed: two named subpatterns have the same name at offset 75

I was using the ARVE video embedder plugin on WordPress. Observing a page referencing either Vimeo or YouTube I saw the error: Warning: preg_match(): Compilation failed: two named subpatterns have the same name at offset 75 in /wp-content/plugins/advanced-responsive-video-embedder/public/functions-shortcode-filters.php on line 255 Disabling plugins didn’t cure the issue And reverting to […]

htaccess Difference Between Files and FilesMatch

Whilst writing the two recent articles about blocking xml-rpc access and the matching of files in htaccess. .htaccess uses Files and FilesMatch to control access to files. For example for the single file wp-config.php <Files “wp-config.php”> Order Allow, Deny allow from all deny from </Files> There’s also <FilesMatch “\.(gif|jpe?g|png)$”> […]