The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
<?php | |
// Set featured images size | |
add_image_size( 'designsbynore-admin-post-featured-image', 125, 125, false ); | |
// Add the column | |
function designsbynore_post_list_thumbnail_column($designsbynore_columns){ | |
$designsbynore_columns['designsbynore_thumb'] = __('Featured Image', 'textdomain' ); | |
return $designsbynore_columns; | |
} |
<?php | |
function themename_scripts() { | |
global $themename_version; // This should be defined early on | |
$parent_style = 'parent-style'; // This is 'parent-style' for your theme. | |
$child_style = 'child-style'; | |
//wp_enqueue_style( 'actions-style', get_template_directory_uri() . '/style.css', '', $themename_version ); | |
if ( wp_get_theme()->get('Name') != 'ThemeName' ) { | |
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css', array(), $themename_version ); |