WordPress function.php

WordPress Functions.php file loading bootstrap, jQuery and a local Library

function my_js_scripts() {
*	Use latest jQuery and bootstrap Libs 
if( !is_admin() ){
	wp_register_script('jQuery', "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"); 
	wp_register_script('bootstrab', "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"); 
		/* local Lib depends heavily on Jquery - 3rd. param */
	wp_enqueue_script('localLib',  get_stylesheet_directory_uri().'/scripts/myJSLib.js', array('jquery'),'0.9', false );
function my_css_style() {
 /* wp_enqueue_style( 'style-name', get_stylesheet_uri() );  //This is for getting style.css of current theme	*/
   wp_register_style( 'cssStyles', get_template_directory_uri() .'css/genericCSS.css');
   wp_enqueue_style( 'cssStyles' );
   wp_register_style( 'bootstrapStyles', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css');
   wp_enqueue_style( 'bootstrapStyles' );

add_action( 'wp_enqueue_scripts', 'my_js_scripts' );
add_action( 'wp_enqueue_scripts', 'my_css_style' );

Run a 2.nd WordPress BLOG within your local XAMPP installation

Create a new MySql Database

Invoke phpmyadmin and create a new Database : 
Database Name wppv:      Collation: utf8mb4_unicode_ci

Extract and install WordPress

Extract wordpress to a new Location - like  :  D:\xampp\htdocs\pv

Run : http://localhost/pv/wp-admin/install.php
Datbase Name    : wppw
UserName        : root
Password        :
Database Host   : localhost
Table Prefix    : wp_

Install WordPress 

Configure Workpress
Site Titel : PV Test 
UserName   : admin
Password   : Felixxxxxx
Email      : helmut.hutzler@gmail.com

Test your WordPress Connectivity

  • Default URL:  http://localhost/pv
  • Admin URL:  http://localhost/pv/wp-admin/

Verify your WP settings

D:\xampp\htdocs\pv>more wp-config.php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wppx');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', '');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8mb4');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');


PlugINs and Editor Setting for WordPress Projects

Parse error: syntax error, unexpected '...' (T_ELLIPSIS), expecting end of file in /customers/9/0/5/hhutzler.de/httpd.www/blog/wp-content/plugins/insert-php/insert_php.php(48) : eval()'d code on line 1