- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
- Ultimate Code Generator - https://webcode.tools/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Function to add custom.js functionality to header only if the page is NOT contact page | |
add_action( 'wp_enqueue_scripts', 'conditional_header'); | |
function conditional_header(){ | |
if(is_page('contact') == false){ | |
wp_enqueue_script( | |
'custom', | |
get_stylesheet_directory_uri() . '/js/custom.js', | |
array('jquery'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<style type="text/css"> | |
/* Set a size for our map container, the Google Map will take up 100% of this container */ | |
#map { | |
width: 100%; | |
height: 350px; | |
} | |
</style> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Adds Widget Area | |
// Register Widgets | |
function custom_sidebar() { | |
register_sidebar(array( | |
'id' => 'my-new-widget', | |
'name' => __( 'My New Widget', 'text_domain' ), | |
'description' => __( 'This is my widget description.', 'text_domain' ), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do not include opening php tag | |
//Scroll Reveal JS | |
add_action('wp_enqueue_scripts', 'load_scroll_reveal', 20); | |
if (is_front_page()){ | |
// Scroll Reveal Main JS | |
wp_enqueue_script( | |
'scrollReveal', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! function ($) { | |
function getHashtag() { | |
var url = location.href; | |
return hashtag = -1 !== url.indexOf("#prettyPhoto") && decodeURI(url.substring(url.indexOf("#prettyPhoto") + 1, url.length)), hashtag && (hashtag = hashtag.replace(/<|>/g, "")), hashtag | |
} | |
function setHashtag() { | |
"undefined" != typeof theRel && (location.hash = theRel + "/" + rel_index + "/") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Particles JS | |
add_action('wp_enqueue_scripts', 'load_particles', 5); | |
function load_particles(){ | |
// Particles JS | |
wp_enqueue_script( | |
'particles', | |
get_stylesheet_directory_uri() . '/js/particles.js', | |
array('jquery'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Follow directions @ https://www.sitepoint.com/wordpress-svg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action ('wp_enqueue_scripts', 'load_custom_styles'); | |
function load_custom_styles() { | |
wp_enqueue_style( | |
'custom', | |
get_template_directory_uri() . '/css/custom.css' | |
); | |
wp_enqueue_script( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^domain-name.com$ [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.domain-name.com$ | |
RewriteCond %{REQUEST_URI} !folder/ | |
RewriteRule (.*) /folder/$1 [L] | |
In the above lines you should replace the following: | |
domain-name.com - Type your own domain name | |
folder - Type the name of the subfolder which has the test/development website |