Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter twoagc

    (@twoagc)

    @jaycbrf & @t-p,

    Unfortunately, neither one of your suggestions worked … thanks for your efforts, though!

    All,

    I went ahead and modified the htaccess file to correct several issues. The new htaccess file contents:

    # Use PHP56 Single php.ini as default
    AddHandler application/x-httpd-php56s .php
    
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{HTTP_HOST} ^wounited\.org$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.wounited\.org$ [OR]
    RewriteCond %{HTTP_HOST} ^wounited\.org\/wp$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.wounited\.org\/wp$
    RewriteRule ^(.*)$ https://www.wounited.org/wp/$1  [R=301,L,NC]

    Bottom line, I need the following URL’s to resolve to HTTPS (without using the https:// prefix):

    “wounited.org” (Ok … Resolves to HTTPS)
    “www.wounited.org” (Ok … Resolves to HTTPS)
    “wounited.org/wp/” (Does NOT resolve to HTTPS)
    “www.wounited.org/wp/” (Does NOT resolve to HTTPS)

    Thanks again,
    Mark

    Thread Starter twoagc

    (@twoagc)

    Mehul,

    Good morning … and thank you! I thoroughly understand the underlying problem (iFrames) and agree (with someone’s suggestion) that formatting these 3 Stripe fields should be included with in the Stripe plug-in settings. In any case, until then, I will try your suggestion.

    Based on what you sent me, I believe this is the exact snippet that I need to use to make the Stripe placeholder text fields match the other GiveWP placeholder text fields:

    function give_stripe_set_element_empty_styles_callback( $empty_styles ) {
    
    	$theme_empty_styles = array(
    		'::placeholder'   => array(
    			'color'    => '#FF0000',
    		),
    	);
    
    	$empty_styles = wp_parse_args( $theme_empty_styles, $empty_styles );
    
    	return $empty_styles;
    
    }
    
    add_filter( 'give_stripe_get_element_empty_styles', 'give_stripe_set_element_empty_styles_callback' );

    With that said, what Give and/or Strip file do I need to modify with this code snippet? Also, where should this snippet be placed within that file?

    And, finally, you reference a video in one of your GitHub postings (https://drive.google.com/open?id=1aotd4g1vf-LhvfrgO6ZUv1tFOFgi6KAY) … could you please approve my request to view it?

    Thank you,
    Mark

Viewing 2 replies - 1 through 2 (of 2 total)