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
<?php | |
// Drop Slick Slider files inside of js folder and add the following to your functions.php | |
//Slick Slider JS | |
add_action('wp_enqueue_scripts', 'load_slick', 5); | |
function load_slick(){ | |
// Slick Slider JS | |
wp_enqueue_script( | |
'slick', | |
get_stylesheet_directory_uri() . '/js/slick/slick.js', |
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 |
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
-- https://digwp.com/2010/03/remove-replace-content-wordpress-database/ | |
UPDATE wp_posts SET post_content = REPLACE ( post_content, 'nofollow ', 'dofollow ' ); |
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
// Setup | |
var collection = { | |
'2548': { | |
album: 'Slippery When Wet', | |
artist: 'Bon Jovi', | |
tracks: ['Let It Rock', 'You Give Love a Bad Name'], | |
}, | |
'2468': { | |
album: '1999', | |
artist: 'Prince', |
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 | |
remove_filter( 'the_content', 'wpautop' ); | |
remove_filter( 'the_excerpt', 'wpautop' ); |
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
UPDATE wp_options SET option_value = replace(option_value, 'Existing URL', 'New URL') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET post_content = replace(post_content, 'Existing URL', 'New URL'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'Existing URL','New URL'); | |
UPDATE wp_usermeta SET meta_value = replace(meta_value, 'Existing URL','New URL'); | |
UPDATE wp_links SET link_url = replace(link_url, 'Existing URL','New URL'); |
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 | |
<div class="search-field"> | |
<?php get_search_form(); ?> | |
</div> |
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 shortcode to sidebar widget area --> | |
add_filter( 'widget_text', 'do_shortcode' ); |