I am trying to: change a theme from Shapely to OceanWP
Link to a page where the issue can be seen: hidden link
I expected to see: See attachment
Instead, I got: an error message Fatal error: Uncaught Error: Call to undefined function shapely_get_layout_class() in /home/koelictontwikkel/zme.koelictontwikkelt.nl/wp-content/themes/oceanwp-child/single-bedrijf.php:16 Stack trace: #0 /home/koelictontwikkel/zme.koelictontwikkelt.nl/wp-includes/template-loader.php(74): include() #1 /home/koelictontwikkel/zme.koelictontwikkelt.nl/wp-blog-header.php(19): require_once('/home/koelicton...') #2 /home/koelictontwikkel/zme.koelictontwikkelt.nl/index.php(17): require('/home/koelicton...') #3 {main} thrown in /home/koelictontwikkel/zme.koelictontwikkelt.nl/wp-content/themes/oceanwp-child/single-bedrijf.php on line 16
This is the code:
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Oceanwp
*/
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
?>
</div>
</div>
<?php
$args = array(
'title' => 'Slider',
'myattribute' => 'slider'
);
echo render_view( $args );
get_footer();
The problem is that you are calling a function "shapely_get_layout_class()" that has ben defined in the shapely theme.
Now that the theme is deactivated this function is no longer available.
So I would recommend that you comment out here <?php $layout_class = shapely_get_layout_class(); ?>
As well as here <div id="primary" class="col-md-12 mb-xs-24 --><?php echo esc_attr( $layout_class ); ?><!--">