Title: Pradeep Dabane's Replies | WordPress.org

---

# Pradeep Dabane

  [  ](https://wordpress.org/support/users/developerpaddy/)

 *   [Profile](https://wordpress.org/support/users/developerpaddy/)
 *   [Topics Started](https://wordpress.org/support/users/developerpaddy/topics/)
 *   [Replies Created](https://wordpress.org/support/users/developerpaddy/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/developerpaddy/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/developerpaddy/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/developerpaddy/engagements/)
 *   [Favorites](https://wordpress.org/support/users/developerpaddy/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [showing custom fields only on specific roles pages](https://wordpress.org/support/topic/showing-custom-fields-only-on-specific-roles-pages/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/showing-custom-fields-only-on-specific-roles-pages/#post-17726383)
 * Hello Sacconi,
 * you need to add conditional check in your function before printing custom fields.
 * Check the below example, and adjust it accordingly
 *     ```wp-block-code
       $user = wp_get_current_user();
       if ( in_array( 'author', (array) $user->roles ) ) {
           //The user has the "author" role
       }
       ```
   
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Change: You must be logged in to post a comment.](https://wordpress.org/support/topic/change-you-must-be-logged-in-to-post-a-comment/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/change-you-must-be-logged-in-to-post-a-comment/#post-17105829)
 * If you are using custom theme or a page builder then it will differ so we need
   to know what theme or page builder are you using.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Change: You must be logged in to post a comment.](https://wordpress.org/support/topic/change-you-must-be-logged-in-to-post-a-comment/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/change-you-must-be-logged-in-to-post-a-comment/#post-17105740)
 * You can use the following snippet to change the comment text, to add this snippet
   you can use code snippet plugin / or function.php file of child theme
 *     ```wp-block-code
       add_filter( 'comment_form_defaults', function( $fields ) {
           $fields['must_log_in'] = sprintf( 
               __( '<p class="must-log-in">
                        You must <a href="%s">SIGN UP</a> or 
                        <a href="%s">LOGIN</a> to post a comment.</p>' 
               ),
               wp_registration_url(),
               wp_login_url( apply_filters( 'the_permalink', get_permalink() ) )   
           );
           return $fields;
       });
       ```
   
 * you can adjust the code as per your requirement.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions] Applying discount on regular price even sale price is there](https://wordpress.org/support/topic/applying-discount-on-regular-price-even-sale-price-is-there/)
 *  Thread Starter [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/applying-discount-on-regular-price-even-sale-price-is-there/#post-11342204)
 * Hey Thomas,
 * Thanking you for replying,I am really sorry that it wasn’t clear problem statement.
 * I was expecting to apply membership discount on woocommerce other products which
   already have sale price with 10% discount.
 * What happening is When member get registered he gets 25% off(global PMPPro membership
   discount) on sale price which is already 10% off(applied using sale price on 
   woocommerce product). What I want is is there any custom code to apply global
   PMPPro membership discount on woocommerce product’s regular price not on sale
   price?
 * I don’t know will it help to understand my problem? but if someone can help me
   that will solve my problem.
 * Thanking You,
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to stop the header banner picture fading when moused over](https://wordpress.org/support/topic/how-to-stop-the-header-banner-picture-fading-when-moused-over/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [10 years ago](https://wordpress.org/support/topic/how-to-stop-the-header-banner-picture-fading-when-moused-over/#post-7418252)
 * Happy to see this worked a bit.
    If you can paste the link over here will be 
   helpful.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [how to change font in child theme to Google Fonts](https://wordpress.org/support/topic/how-to-change-font-in-child-theme-with-google-fonts/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [10 years ago](https://wordpress.org/support/topic/how-to-change-font-in-child-theme-with-google-fonts/#post-7416081)
 * Hello,
    Try searching on google fonts website, then select to quick use copy 
   [@import](https://wordpress.org/support/users/import/) code, Paste it in your
   child theme’s css file at the top, then use css rule from google font you choose
   to quick view, add it in css file of your theme.
 * May this help you
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to stop the header banner picture fading when moused over](https://wordpress.org/support/topic/how-to-stop-the-header-banner-picture-fading-when-moused-over/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [10 years ago](https://wordpress.org/support/topic/how-to-stop-the-header-banner-picture-fading-when-moused-over/#post-7418202)
 * open up page in chrome right click and inspect the element (your picture)
    above
   the style rules, you will see :hov which is mouse over event, toggle the event
   for your image (hover). check the style applied for it and change it possibly
   opacity has been given to image/picture. change it to none.
 * Hope this will help you.
    Thanking You.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to change appearance of website](https://wordpress.org/support/topic/how-to-change-appearance-of-website/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [10 years ago](https://wordpress.org/support/topic/how-to-change-appearance-of-website/#post-7418197)
 * .pm-button {
    text-align: center; }
 * add this rule in your CSS, if you don’t have access to theme file make use of
   CSS editor within jetpack plugin.
 * will help you surely.
    Thanking You.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Zerif Lite] Change line color our team](https://wordpress.org/support/topic/change-line-color-our-team/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [10 years ago](https://wordpress.org/support/topic/change-line-color-our-team/#post-7417886)
 * Ohhh, Happy enough for you!
    Thanking You.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Apply function to specific page template](https://wordpress.org/support/topic/apply-function-to-specific-page-template/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [10 years ago](https://wordpress.org/support/topic/apply-function-to-specific-page-template/#post-7417357)
 * Ohhh,
    I missed it, you are using filter hook add_filter (‘**add_to_cart_redirect**‘,‘
   redirect_to_checkout’); which should be, add_filter( ‘**woocommerce_add_to_cart_redirect**‘,‘
   my_function_name’ ); The code will be like the same as above with changes,
 * unction checkPageTemplate(){
 *  $currentPost = get_post();
    $pageTemplate = get_post_meta( $currentPost->ID,‘
   _wp_page_template’, true );
 *  if ( $pageTemplate == “landing-page.php”) {
    add_filter (‘woocommerce_add_to_cart_redirect’,‘
   redirect_to_checkout’); } } add_action( ‘the_post’, ‘checkPageTemplate’ );
 * function redirect_to_checkout() {
    global $woocommerce; $checkout_url = $woocommerce-
   >cart->get_checkout_url(); return $checkout_url; }
 * Hope this help you reply must… 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [403 Forbidden Access to this resource on the server is denied!](https://wordpress.org/support/topic/403-forbidden-access-to-this-resource-on-the-server-is-denied-4/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [10 years ago](https://wordpress.org/support/topic/403-forbidden-access-to-this-resource-on-the-server-is-denied-4/#post-7417861)
 * as u said u deleted .htaccess file, there is only one way that u can rewrite 
   the .htaccess file is by setting permalinks. please ask to the admin to do it
   for you.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Zerif Lite] Change line color our team](https://wordpress.org/support/topic/change-line-color-our-team/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [10 years ago](https://wordpress.org/support/topic/change-line-color-our-team/#post-7417858)
 * upps,
    i missed are u using 4n 1 as nth-child parameter. please check it. other
   thing u can do is open web page in chrome right click on element u want to change
   the color, check the css rule chage it there and copy the whole css rule in css.
   try this hope u solve the problem.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Apply function to specific page template](https://wordpress.org/support/topic/apply-function-to-specific-page-template/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [10 years ago](https://wordpress.org/support/topic/apply-function-to-specific-page-template/#post-7417350)
 * try using filter hook inside if condition.
    other solution is that get the page
   slug for the page you using this Template and then check for condition and apply
   filter
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Zerif Lite] Change line color our team](https://wordpress.org/support/topic/change-line-color-our-team/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [10 years ago](https://wordpress.org/support/topic/change-line-color-our-team/#post-7417849)
 * try using !important at the end of style rule to force the style u applied.
    
   like: background: ……….!important; thanking you.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [403 Forbidden Access to this resource on the server is denied!](https://wordpress.org/support/topic/403-forbidden-access-to-this-resource-on-the-server-is-denied-4/)
 *  [Pradeep Dabane](https://wordpress.org/support/users/developerpaddy/)
 * (@developerpaddy)
 * [10 years ago](https://wordpress.org/support/topic/403-forbidden-access-to-this-resource-on-the-server-is-denied-4/#post-7417836)
 * hello,
    hope u have solved the problem, if not let me tell you, that after resetting
   everything you need to set permalink structure which will write .htaccess file
   again. which is necessary to work url structure properly. the error u got is 
   due to an improper .htaccess file or improper http response. please let us know
   if error not resolved. thanking you.

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