lighthouse

Needles and Haystacks

List of Solutions which might have eluding finding on page one of search results when problems have been encountered. Mostly offsite links for quick reference so I don’t have to worry about web browser bookmark maintenance for the important things.

Ancient Scrolls

Here be some old stuff!
HTML Form How-to

Take a trip back to 1997 with Internet Related Technologies (IRT), visit IRT.org for tips about HTML forms

Regular Expressions

Regular Expressions
NOT sans-serif

The following regular expression will find fonts which are NOT sans-serif. Ideally, it will find lines in the CSS which are declarations featuring multiple fonts. E.g. “source serif”, “times new roman”, times, serif;

(font\-family)( ?:)(.*([^-]serif))+
Transfer Variable Name to Array-Key

Having had individual variables for a thing which ultimately developed into part of a Class, I wanted to make those individual variables a part of an array, $initialize_enviornment. So $var_name becomes $init_env['var_name']

existing code:

$initialize_enviornment[] = $pathinfo_basename

To follow what I described above, I used the following match expression, then replace expression:

(initialize_enviornment\[)(\])( = \$?)(\w+)
$1'$4'$2$3$4
Action

Description

Regex code
Vector Logo Zone

Vector Logo Zone features a large collection of well-known logos

SVG is easy to use and recommended for responsive layouts

Note: The number of available .svg objects which may load there is substantial. I’ve resorted to modifying the URL where the name appears, to go directly to them.
Eg. https://www.vectorlogo.zone/logos/mysql/

Text Editors

Not Visual Studio Code / VS Code

Syn Write / Syn2 / Akel Pad?

Not sure. But this is interesting if you use Syn2 with FreeCommander.

WordPress Specific

NGINX and WordPress

Documentation about running WordPress on NGINX from wordpress.org

Hidden URL’s

Navigation Menu (FSE Themes)

Enter the following url:
//[your-domain]/wp-admin/site-editor.php?postId=xxXxx&postType=wp_navigation&canvas=edit

You will use the following URL, but you must first identify the correct POSTID to use in that URL (where xxXxx placeholder is shown).

Check your database for your existing navigation menu/ POSTID. If we run the SQL as described in my post about finding FSE (Full Site Editing) Templates, we can verify that our custom navigation exists in the database.

Note that the URL request (shown above) includes the parameter, “postType=wp_navigation“. Modify the SQL from the FSE example page, so the WHERE clause looks for “wp_navigation” in the post_type field of the wp_posts table:

SELECT ID, post_type,post_name,post_content FROM wp_posts 
WHERE post_type = "wp_navigation"
ORDER BY post_name ASC;

Be sure the SQL matches your db table names. If you change your table prefixes (see wp-config.php), be sure wp_posts reflects your actual table name. (E.g. some people use custom prefixes such as mySiteName_wp_posts)

Navigation Menu

  • Responsive WordPress Navigation Menu with Bootstrap.
    • Use Bootstrap CSS to apply a responsive primary navigation menu to the Underscores theme.
    • Tutorial focused specifically on the famous Bootstrap responsive navigation menu classes: collapse navbar-collapse navbar-nav and the WordPress wp_nav_menu function.

WordPress Templates

Templates are WordPress Files referenced in plugins (and themes) which define the current theme, and its interaction with the WP CMS.

Discussion about WordPress theme template file names, with solutions. An old thread at StackExchange.com from 2011. Learn: how to determine what theme template or template-part is rendering the output page view html.

Whatchu do