Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › Page templates
New Landing › How can we help? › Cardinal › Page templates
- This topic has 25 replies, 2 voices, and was last updated 8 years by David Martin – Support.
-
Posted in: Cardinal
-
March 9, 2016 at 7:30 pm #254509
Increase your memory limit in
wp-config.php
adddefine('WP_MEMORY_LIMIT', '256M');
.Those errors do not relate to the file we are working on. Is your WP version also updated?
Thanks.
March 9, 2016 at 7:32 pm #254513Hey – using the latest v2.0.3
also the latest wordpress 4.4.2 / cardinal theme 2.4.2D
March 9, 2016 at 7:50 pm #254517Thanks – just to clarify, you no longer see the error and the code runs but does not remove any Pre-Built templates?
March 9, 2016 at 7:53 pm #254518Hello
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.phpI feel this is going in a different direction?
D
March 9, 2016 at 7:56 pm #254521Hi,
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.
Thanks.
March 9, 2016 at 8:09 pm #254526This reply has been marked as private.March 9, 2016 at 8:12 pm #254527Whats 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.
March 9, 2016 at 8:16 pm #254531Let us know when you can.
Thanks.
March 9, 2016 at 9:38 pm #254542OK – 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
March 10, 2016 at 8:53 am #254577If 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' );
March 10, 2016 at 9:08 am #254583Great, glad you got it sorted.
Some themes we package with pre-built templates, it varies per theme.
Thanks.
-
Posted in: Cardinal
You must be logged in and have valid license to reply to this topic.