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
/* ----------------------------------------------------------------------------------- */ | |
/* Ajax Animation Session / Add class on body for ajax | |
/* ----------------------------------------------------------------------------------- */ | |
add_action('after_setup_theme', 'myStartSession', 1); | |
add_action('wp_logout', 'myEndSession'); | |
add_action('wp_login', 'myEndSession'); | |
/* Start session */ | |
if (!function_exists('myStartSession')) { |
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
/* Favicon | |
* Generate the images at http://www.favicon-generator.org | |
* Place images in your (child) theme folder at /favicon | |
*/ | |
function foundry_favicon() { ?> | |
<link rel="apple-touch-icon" sizes="57x57" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon/apple-icon-57x57.png"> | |
<link rel="apple-touch-icon" sizes="60x60" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon/apple-icon-60x60.png"> | |
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon/apple-icon-72x72.png"> | |
<link rel="apple-touch-icon" sizes="76x76" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon/apple-icon-76x76.png"> | |
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon/apple-icon-114x114.png"> |
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
/* | |
Theme Name: | |
Theme URI: http://performancefoundry.com | |
Version: 1.0 | |
Description: Custom Theme based on | |
Author: Craig Martin, Performance Foundry | |
Author URI: http://performancefoundry.com | |
Template: name | |
*/ | |
/* Default styles */ |
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 | |
/** | |
* The template for displaying category pages. | |
* | |
* Learn more: http://codex.wordpress.org/Template_Hierarchy | |
* | |
* @package DW Focus | |
* @since DW Focus 1.0 | |
*/ |
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
<div class="content-inner"> | |
<?php | |
if ( is_category() ) { | |
$cat = get_query_var('cat'); | |
$ourcat = get_category ($cat); | |
$category_selected = $ourcat->slug; | |
} | |
$args = array ( |
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
In Terminal: | |
find /var/www/user/public_html -exec chown www-data:www-data {} \; | |
find /var/www/user/public_html -type d -exec chmod 755 {} \; | |
find /var/www/user/public_html -type f -exec chmod 644 {} \; | |
cd /var/www/user/public_html; | |
rm -f readme.html; | |
touch readme.html; | |
chown www-data:www-data readme.html; |
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
#Redirect media files from a dev environment to the live environment | |
RedirectMatch 301 ^/wp-content/uploads/([0-9]{4})/([0-9]{2})/(.*)$ http://example.com/wp-content/uploads/$1/$2/$3 |
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
#Core WP files that might change | |
.htaccess | |
/index.php | |
/license.txt | |
/readme.html | |
/wp-activate.php | |
/wp-admin* | |
/wp-blog-header.php | |
/wp-comments-post.php | |
/wp-config.php |
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
/*-----------------------------------------------------------------------------------*/ | |
/* Remove Unwanted Admin Menu Items */ | |
/* Source - https://managewp.com/wordpress-admin-sidebar-remove-unwanted-items */ | |
/* Array could include Appearance, Comments, Links, Media, Pages, Plugins, Posts, Settings, Tools, Users */ | |
/*-----------------------------------------------------------------------------------*/ | |
function foundry_remove_admin_menu_items() { | |
$remove_menu_items = array(__('Comments'),__('Links'),__('Posts')); | |
global $menu; | |
end ($menu); |