Make carlos
Forum Replies Created
-
Forum: Plugins
In reply to: [Comments - wpDiscuz] Only paid member can do comment.Hi
Any update on this please.Forum: Themes and Templates
In reply to: [Astra] Remove text from CustomizerUnder customization we can show this:
More Options Available in Astra Pro!
I need to remove this text using remove_action so it was worked before but after astra 3.0 that hook is no longer work.
Thanks
Forum: Themes and Templates
In reply to: [Astra] Remove text from Customizerfunction customize_register_init( $wp_customize ){ $wp_customize->remove_section('astra-pro'); } add_action( 'customize_register', 'customize_register_init', 9999 );
Why this action is not working in latest Version of astra, Only worked with old version. Please advice.
Forum: Plugins
In reply to: [WooCommerce] Feature image at order detail page in backendYeah working fine now.
Forum: Plugins
In reply to: [Contact Form 7] Use HTML content type – not working with custom shortcodeHi @takayukister,
did you checked my last comment.I have said this:
But my question is why HTML tags are not supported even i have selected from settings. I have Table structure in Short code but its showing table tags in email.
Please advice.
Don’t know why you made this thread as resolved !
ThanksForum: Plugins
In reply to: [Contact Form 7] Use HTML content type – not working with custom shortcodeOkay so look like i have fixed. This will helps to others.
// define the wpcf7_mail_components callback
function filter_wpcf7_mail_components( $components, $number ) { $contact_form = WPCF7_ContactForm::get_current(); $contact_form_id = $contact_form -> id; if($contact_form_id == 6){ $components[ 'subject' ] = 'New Domain request from customer'; $components[ 'body' ] = $components['body']; $components[ 'body' ] .= do_shortcode( '[g4whostingdata]' ); return $components; } }; // add the filter add_filter( 'wpcf7_mail_components', 'filter_wpcf7_mail_components', 10, 2 );
But my question is why HTML tags are not supported even i have selected from settings. I have Table structure in Short code but its showing table tags in email.
Please advice.
Thanks
Forum: Plugins
In reply to: [Contact Form 7] Use HTML content type – not working with custom shortcodeOkay so i have disabled that third party plugin and now doing with CF7 Filters.
here is my code.
add_filter('wpcf7_mail_components','my_custom_mail', 10,2); function my_custom_mail($mail_component, $contact_form){ $domain_data = do_shortcode( '[g4whostingdata]' ); if($wpcf7->id() == 6){ $mail_component['subject']; //email subject $mail_component['sender']; //sender field (from) $mail_component['body']; //email body $mail_component['recipient']; //email recipient (to) $mail_component['additional_headers']; //email headers, cc:, bcc:, reply-to: $mail_component['attachments']; //file attachments if any $key_values = array(); $tags = $contact_form->scan_form_tags(); //get your form tags foreach($tags as $tag){ $field_name = $tag['name']; if(isset($_POST[$field_name]) && !empty($_POST[$field_name])){ //get all the submitted fields form your form $key_values[$field_name] = $_POST[$field_name]; } } $body = "Dear \n" . "First Name: {$key_values['first-name']} \n" . "Last name: {$key_values['last-name']} \n" . "Email: {$key_values['your-email']} \n" . "Domain Data : {$domain_data} \n"; $mail_component['body'] = $body; } return $mail_component; }
I have set FORM ID but its showing Internal server errors and form is not submitted. could you please advice.
Thanks
Forum: Plugins
In reply to: [Contact Form 7] Use HTML content type – not working with custom shortcodeHi
its custom plugin in which i am working. I have some custom Data which i want to send in Email. as all data set using Table.
And yeah sorry i was forgot to say that i have used plugin : Contact Form 7 Dynamic Text Extension
So is there any way to do using filter and no need to use above plugin. Please advice.
Thanks
Forum: Themes and Templates
In reply to: [Astra] How to Remove overlappingHey Herman
Perfect ! thanks a lot.
Forum: Themes and Templates
In reply to: [Astra] How to Remove overlappingHi
here is demo : https://websitedemos.net/nutritionist-02/
Health & Nutrition Articles: This section at bottom
Forum: Plugins
In reply to: [Comments - wpDiscuz] How to Set member login and commentadd_filter("wpdiscuz_form_render", function ($output, $commentsCount, $currentUser) { if (!empty($currentUser->ID)) { $output .= "Custom Text After Form"; } return $output; }, 10, 3);
This is Just showing text after text area. but i need to disable Name/email/website and user must do login from top right Login
and need to check that is paid member or not. and only paid memebr can do comment and not free subscriber at all.Forum: Plugins
In reply to: [Comments - wpDiscuz] How to Set member login and commentHi
1) How to remove Name/email etc : https://tinyurl.com/y9pn8fsc
and user must do login from top of the comment box(Login)Please advice.
- This reply was modified 3 years, 11 months ago by Make carlos.
Hi
I think might be something conflict. but as of now you can make it resolve. but you can check with astra demo so might be you get this error.Forum: Themes and Templates
In reply to: [Astra] How to add few content at top of blog page.Ah
Something like this:
function is_blog () { return ( is_archive() || is_author() || is_category() || is_home() || is_single() || is_tag()) && 'post' == get_post_type(); } function myCustomFun(){ if ( is_blog() ): echo "Hello here"; endif; } add_action('astra_primary_content_top','myCustomFun');
This is correct way to do ?
Here is demo: https://pasteboard.co/JEhFdc0.png