function my_class_names($classes) { // add ‘class-name’ to the $classes array if( !is_front_page() ) $classes[] = ‘not-front’; if( is_single() ) $classes[] .= ‘et_full_width_page’; if(($key =...
To add a custom image size to your WordPress simply add the following code to your functions.php In addition to creating the image size, the filter will also make the image available in the editor so that you can select it. Finally, make sure that you regenerate the...
Recent Comments