MultivendorX
Resolved
Viewing 2 reply threads
-
AuthorPosts
-
-
May 10, 2023 at 6:31 PM #191942l.ganParticipant
Hello
Thanks for the great plugin support
Please tell me how to change the title h2 to h4, in the title “Abuse report”?
Please see a screenshot of what I mean.
-
May 11, 2023 at 7:08 PM #191978MVX Support NinjaKeymaster
Hi,
kindly add below code to your active theme function.phpadd_action('init','MVX_custom_changes'); function MVX_custom_changes() { global $MVX; remove_action('woocommerce_product_meta_start', array($MVX->product, 'add_report_abuse_link'), 30); add_action('woocommerce_product_meta_start', 'add_report_abuse_link', 30); } function add_report_abuse_link() { global $product; if (apply_filters('mvx_show_report_abuse_link', true, $product) && mvx_is_module_active('report-abuse')) { $report_abuse_text = apply_filters('mvx_report_abuse_text', __('Report Abuse', 'multivendorx'), $product); $show_in_popup = apply_filters('mvx_show_report_abuse_form_popup', true, $product) ?> <div class="mvx-report-abouse-wrapper"> <a href="javascript:void(0);" id="report_abuse"><?php echo esc_html($report_abuse_text); ?></a> <div id="report_abuse_form" class="<?php echo ( $show_in_popup ) ? 'report-abouse-modal' : ''; ?>" tabindex="-1" style="display: none;"> <div class="<?php echo ( $show_in_popup ) ? 'modal-content' : 'toggle-content'; ?>"> <div class="modal-header"> <button type="button" class="close">×</button> <h4 class="mvx-abuse-report-title1"><?php esc_html_e('Report an abuse for product ', 'multivendorx') . ' ' . the_title(); ?> </h4> </div> <div class="modal-body"> <p class="field-row"> <input type="text" class="report_abuse_name" id="report_abuse_name" name="report_abuse[name]" value="" style="width: 100%;" placeholder="<?php esc_attr_e('Name', 'multivendorx'); ?>" required=""> <span class="mvx-report-abuse-error"></span> </p> <p class="field-row"> <input type="email" class="report_abuse_email" id="report_abuse_email" name="report_abuse[email]" value="" style="width: 100%;" placeholder="<?php esc_attr_e('Email', 'multivendorx'); ?>" required=""> <span class="mvx-report-abuse-error"></span> </p> <p class="field-row"> <textarea name="report_abuse[message]" class="report_abuse_msg" id="report_abuse_msg" rows="5" style="width: 100%;" placeholder="<?php esc_attr_e('Leave a message explaining the reasons for your abuse report', 'multivendorx'); ?>" required=""></textarea> <span class="mvx-report-abuse-error"></span> </p> </div> <div class="modal-footer"> <input type="hidden" class="report_abuse_product_id" value="<?php echo $product->get_id(); ?>"> <button type="button" class="btn btn-primary submit-report-abuse" name="report_abuse[submit]"><?php esc_html_e('Report', 'multivendorx'); ?></button> </div> </div> </div> </div> <?php } }
Copyregards,
-
May 11, 2023 at 7:19 PM #191979l.ganParticipant
Thanks it helped and my Seo headers became streamlined.
Topic solved
-
-
AuthorPosts
Viewing 2 reply threads
The topic ‘how to change the title h2 to h4, in the title “Abuse report”?’ is closed to new replies.