Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Gravity Forms Cut off on Pages but not posts #194915
     cbodini
    Participant

    Thank you for all these Kieran, this is truly great support for the theme.

    I ran out of time today, but will take a look at just cleaning up the child theme…It actually looks like my functions.php was moved into lib. I had a developer do some work to make videos uploaded to the site upload to video press. I don’t think it actually ever worked though and I no longer need the function. I’m thinking I can paste the code you provided as the minimum for a style.css and a functions.php in the child theme and delete the /lib/. Would that basically reset the child theme to what was pre-packaged with Kleo without erasing the theme settings I’m using?

    The code in the my_functions.php is:

    COPY CODE
    <?php
     
    /**
    * Redirect buddypress and bbpress pages to registration page
    */
    function kleo_page_template_redirect()
    {
        //if not logged in and on a bp page except registration or activation
        if( ! is_user_logged_in() &&
            ( ( ! bp_is_blog_page() && ! bp_is_activation_page() && ! bp_is_register_page() ) || is_bbpress() )
        )
        {
            wp_redirect( home_url( '/register/' ) );
            exit();
        }
    }
    add_action( 'template_redirect', 'kleo_page_template_redirect' );
    
    function rtamazon_can_upload_to_bucket( $status, $attachment_id ) {
    
         // Get the mime type for uploading media.
         $mime_type = get_post_mime_type( $attachment_id );
         $type_arr = explode( '/' , $mime_type );
    
         // Get media type.
         $type = $type_arr[0];
    
         // Check if it is video type, then skip uploading to bucket.
         // Other types you can define i.e 'image', 'audio' etc.
         if ( ! empty( $type ) && 'video' === $type ) {
             $status = false;
         }
    
         return $status;
    
    }
    add_filter( 'rtawss3_can_upload_to_bucket', 'rtamazon_can_upload_to_bucket', 99, 2 );
    
    function wc_ninja_remove_password_strength() {
    	if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) {
    		wp_dequeue_script( 'wc-password-strength-meter' );
    	}
    }
    add_action( 'wp_print_scripts', 'wc_ninja_remove_password_strength', 100 );
Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?