Rihan Habib
Forum Replies Created
-
@prabhatrai sorry for late response. Please check this video:
@prabhatrai thank you for your early response. I have followed above steps but all pages showing homepage social content. Here is link https://casadepaconj.com/tapas-daily-specials/
@missveronicatv After enable debug log showing below error
- This reply was modified 1 year, 10 months ago by Rihan Habib.
@cryptex_vinci Installed not working
@missveronicatv Thank you so much for your response. I am using UM 2.5.3 and its showing below message
- This reply was modified 1 year, 10 months ago by Rihan Habib.
@threadi Okay, Thank you
Forum: Developing with WordPress
In reply to: remove_action not workingI want to delete ad-to-cart button from single product page. I have tried by below examples but not working for me.
function change_order() { remove_action('woocommerce_single_product_summary','woocommerce_template_single_add_to_cart', 30 ); } add_action( 'init', 'change_order' ); function change_order() { remove_action('woocommerce_single_product_summary','woocommerce_template_single_add_to_cart', 30 ); } add_action( 'after_setup_theme', 'change_order' ); function change_order() { remove_action('woocommerce_single_product_summary','woocommerce_template_single_add_to_cart', 30 ); } add_action( 'plugins_loaded', 'change_order' );
Forum: Everything else WordPress
In reply to: How can I add custom field in single product??okay Thank you @sebaocano
Forum: Fixing WordPress
In reply to: remove_action not working in my custom plugin@cbravobernal Okay, Thank you
Forum: Fixing WordPress
In reply to: remove_action not working in my custom plugin@cbravobernal
Thank you so much it’s working. I want to change product price in ad-to-cart page, how can I do this. I have added a dropdown in add to cart page by action hook, when click on dropdown I want there appear new product price after subtract from main price.Forum: Fixing WordPress
In reply to: Why onchange event not working for elementor?@sterndata thank you so much for early response
Forum: Fixing WordPress
In reply to: Default text not working customizer@threadi Hello I have created a new theme there default texts are working but when I erase default text and refresh then text are not showing. I want to set default text show always if I not write any new text there. Thank you
Forum: Fixing WordPress
In reply to: Default text not working customizercustomizer.php:
function rhx_portfolio_customize_register( $wp_customize ) {
$wp_customize->remove_section(‘nav’);
$wp_customize->remove_section(‘static_front_page’);
$wp_customize->remove_section(‘title_tagline’);$wp_customize->add_panel(‘panel_9’, array(
‘priority’ => 17,
‘capability’ => ‘edit_theme_options’,
‘theme_supports’ => ”,
‘title’ => __(‘Footer’, ‘rhx-portfolio’) ,
‘description’ => ‘aaaa’,
));`/* ======================== Footer Below Text ===================== */
$wp_customize->add_section(‘section_35’, array(
‘title’ => ‘Footer Below’,
‘priority’ => 35,
‘panel’ => ‘panel_9’
));/* ———————- Footer Below Text setting and control —————— */
$wp_customize->add_setting(‘footerBelow’, array(
‘capability’ => ‘edit_theme_options’,
‘default’ => __(‘Clean. Simple. Sincere’, ‘sincere’),
‘sanitize_callback’ => ‘sanitize_text_field’,
));$wp_customize->add_control(‘footerBelow’, array(
‘type’ => ‘text’,
‘section’ => ‘section_35’,
‘label’ => __( ‘Add Footer Below Text’ )
));}
add_action( ‘customize_register’, ‘rhx_portfolio_customize_register’ );front-page.php
<?php echo get_theme_mod(‘footerBelow’, __(‘Clean. Simple. Sincere’, ‘sincere’) ); ?>Forum: Fixing WordPress
In reply to: Default text not working customizerHello @threadi thank you so much for your response. I have tried in my custom theme, there default text or textarea are not working. default img is okay.What’s going wrong, I followed many examples.
- This reply was modified 2 years, 1 month ago by Rihan Habib.
Mr.Toper thank you so much for your replay. Isolved this issue. Now new problem arised for me I made form by PHP,HTML,Bootstrap. But problem is when I clicked on submit it redirect to 404 page. I checked several times seems everything is ok. I dont know whats going wrong. Please help, here is my code :
INDEX.PHP :
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/bootstrap.min.css"> <title>Contact Us Form In Php</title> </head> <body> <div class="container"> <div class="row"> <div class="col-lg-6 m-auto"> <div class="card mt-5"> <div class="card-title"> <h2 class="text-center py-2"> Contact Us </h2> <hr> <?php $Msg = ""; if(isset($_GET['error'])) { $Msg = " Please Fill in the Blanks "; echo '<div class="alert alert-danger">'.$Msg.'</div>'; } if(isset($_GET['success'])) { $Msg = " Your Message Has Been Sent "; echo '<div class="alert alert-success">'.$Msg.'</div>'; } ?> </div> <div class="card-body"> <form action="process.php" method="post"> <input type="text" name="UName" placeholder="User Name" class="form-control mb-2"> <input type="email" name="Email" placeholder="Email" class="form-control mb-2"> <input type="text" name="Subject" placeholder="Subject" class="form-control mb-2"> <textarea name="msg" class="form-control mb-2" placeholder="Write The Message"></textarea> <button class="btn btn-success" name="btn-send"> Send </button> </form> </div> </div> </div> </div> </div> </body> </html>
PROCESS.PHP:
<?php if(isset($_POST['btn-send'])) { $UserName = $_POST['UName']; $Email = $_POST['Email']; $Subject = $_POST['Subject']; $Msg = $_POST['msg']; if(empty($UserName) || empty($Email) || empty($Subject) || empty($Msg)) { header('location:index.php?error'); } else { $to = "[email protected]"; if(mail($to,$Subject,$Msg,$Email)) { header("location:index.php?success"); } } } else { header("location:index.php"); } ?>
All files(index.php , process.php, bootstrap.min.js) are styaing in same folder