New Landing How can we help? Cardinal Page templates

Viewing 11 posts - 16 through 26 (of 26 total)
  • Posted in: Cardinal
  • #254509
    David Martin – Support
    Moderator
    Post count: 20834

    Increase your memory limit in wp-config.php add define('WP_MEMORY_LIMIT', '256M');.

    Those errors do not relate to the file we are working on. Is your WP version also updated?

    Thanks.

    #254513
    davidll
    Member
    Post count: 205

    Hey – using the latest v2.0.3
    also the latest wordpress 4.4.2 / cardinal theme 2.4.2

    D

    #254517
    David Martin – Support
    Moderator
    Post count: 20834

    Thanks – just to clarify, you no longer see the error and the code runs but does not remove any Pre-Built templates?

    #254518
    davidll
    Member
    Post count: 205

    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?

    D

    #254521
    David Martin – Support
    Moderator
    Post count: 20834

    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.

    Thanks.

    #254526
    davidll
    Member
    Post count: 205
    This reply has been marked as private.
    #254527
    davidll
    Member
    Post count: 205

    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.

    #254531
    David Martin – Support
    Moderator
    Post count: 20834

    Let us know when you can.

    Thanks.

    #254542
    davidll
    Member
    Post count: 205

    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

    #254577
    davidll
    Member
    Post count: 205

    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' );
     
    #254583
    David Martin – Support
    Moderator
    Post count: 20834

    Great, glad you got it sorted.

    Some themes we package with pre-built templates, it varies per theme.

    Thanks.

Viewing 11 posts - 16 through 26 (of 26 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register