Unable to add new skin
-
Hi, I am following the steps from the documentation, including the YouTube video, to add a new skin for Grid Plus.
After following the directions, I am not able to get my custom skin to register as an option I can choose inside Grid Plus.
I used this snippet in my Functions file (I changed get_template_directory_uri() to get_stylesheet_directory_uri() because I am using a child theme):
if(!function_exists(‘add_grid_plus_skins’)) {
function add_grid_plus_skins($skins) {
$skins[] = array(
‘name’ => ‘My Grid’,
‘slug’ => ‘my-grid-skin’,
‘template’ => dirname(__FILE__) . ‘my-grid-skin.php’,
‘skin_css’ => get_stylesheet_directory_uri() . ‘my-grid-skin.css’,
);
return $skins;
}
add_filter(‘grid-plus-skins’,’add_grid_plus_skins’);
}I placed my-grid-skin.php and my-grid-skin.css in my theme folder, as that is where the files are located in the YouTube video.
When I reload the Skin Options tab for my grid, my custom skin does not show up. It shouldn’t be an issue with the skin PHP, because right now, the skin PHP is a renamed copy of an existing Grid Plus skin that should be valid.
Any assistance you can provide is greatly appreciated.
The page I need help with: [log in to see the link]
- The topic ‘Unable to add new skin’ is closed to new replies.