New Landing › How can we help? › Cardinal › Page templates
Increase your memory limit in wp-config.php add define('WP_MEMORY_LIMIT', '256M');.
wp-config.php
define('WP_MEMORY_LIMIT', '256M');
Those errors do not relate to the file we are working on. Is your WP version also updated?
Thanks.
Hey – using the latest v2.0.3 also the latest wordpress 4.4.2 / cardinal theme 2.4.2 D
Hey – using the latest v2.0.3 also the latest wordpress 4.4.2 / cardinal theme 2.4.2
D
Thanks – just to clarify, you no longer see the error and the code runs but does not remove any Pre-Built templates?
Hello
No – As soon as i enter the code into my child theme functions.php – i get a 500 INTERNAL SERVER ERROR. I can’t do anything with the site, until i revert back to the previous functions.php
I feel this is going in a different direction?
Hi,
It seems related to your environment, can you ask your hosting provider about this?
I run the code on my dev without any issue.
If there is anyway you can get me an FTP access that will help the cause.
Whats really odd – is that I’ve my version of Jyon running for another client – and thats perfect. You don’t even get the Swift templates.
Let us know when you can.
OK – re installed a clean version – and the I can now remove the templates via functions.php
But why does cardinal have these pre installed / non deletable templates and your other themes don’t?
Thanks for your help
If anyone wants a completed list:
/* ADD/EDIT PAGE BUILDER TEMPLATES ================================================== */ function custom_prebuilt_templates($prebuilt_templates) { /* * You can uncomment the lines below to remove default templates */ unset($prebuilt_templates['agency-two-home']); unset($prebuilt_templates['agency-four-home']); unset($prebuilt_templates['agency-four-about']); unset($prebuilt_templates['agency-two-about']); unset($prebuilt_templates['shop-one-home']); unset($prebuilt_templates['shop-three-home']); unset($prebuilt_templates['shop-one-about']); unset($prebuilt_templates['shop-two-about']); unset($prebuilt_templates['shop-three-about']); unset($prebuilt_templates['corporate-one-home']); unset($prebuilt_templates['corporate-three-home']); unset($prebuilt_templates['corporate-three-about']); unset($prebuilt_templates['corporate-four-home']); unset($prebuilt_templates['corporate-five-home']); unset($prebuilt_templates['agency-three-culture']); unset($prebuilt_templates['corporate-one-pricing']); unset($prebuilt_templates['features-tour']); return $prebuilt_templates; } add_filter( 'spb_prebuilt_templates', 'custom_prebuilt_templates' );
Great, glad you got it sorted.
Some themes we package with pre-built templates, it varies per theme.
You must be logged in and have valid license to reply to this topic.