Thread Starter
Rhand
(@rhand)
I added
/**
* Registers my WPP theme.
*
* @param array $themes
* @return array
*/
function wp861572_register_my_wpp_theme($themes){
// Absolute path to the theme folder's location
$themes[] = get_template_directory(__FILE__) . 'wordpress-popular-posts/themes/tiny'; // Use get_template_directory() instead if your WPP theme is inside a WordPress theme directory.
return $themes;
}
add_filter('wpp_additional_themes', 'wp861572_register_my_wpp_theme');
`
but it does not seem to help and I was not certain it was needed.
-
This reply was modified 5 months, 1 week ago by
Rhand.
-
This reply was modified 5 months, 1 week ago by
Rhand.
-
This reply was modified 5 months, 1 week ago by
Rhand.
-
This reply was modified 5 months, 1 week ago by
Rhand.
Thread Starter
Rhand
(@rhand)
Thread Starter
Rhand
(@rhand)
This works
/**
* Registers my WPP theme.
*
* @param array $themes
* @return array
*/
function wp861572_register_my_wpp_theme($themes){
// Absolute path to the theme folder's location
$themes[] = get_stylesheet_directory() . '/wordpress-popular-posts/themes/imwz'; // Use get_template_directory() instead if your WPP theme is inside a WordPress theme directory.
return $themes;
}
add_filter('wpp_additional_themes', 'wp861572_register_my_wpp_theme');
`
Just then needed to pick it as theme from the Gutenberg block. It was registered well this way after all.
-
This reply was modified 5 months, 1 week ago by
Rhand.