Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #704305

    Hi guys,

    how can i disable Sunday from date picker?

    Can you tell me code or css for the theme, so i don’t have to fix it after an update.

    Thanks a lot.

    Greetings
    Bernd

    #704319

    Hi boehmmedia!

    If you are using a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ which we would recommend in order to avoid applying the same changes each time you update the theme, please copy unmodified enfold/framework/php/class-form-generator.php file and paste it inside enfold-child folder and apply your changes and find following line at the top

    <?php  if (  ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );

    and change it to

    <?php

    and then add following code to Functins.php file of your child theme

    require( 'class-form-generator.php' );

    Then open class-form-generator.php file in your child theme and find

    echo 'jQuery(document).ready(function(){ jQuery(".avia_datepicker").datepicker({

    and add following code right below that line

    beforeShowDay: function(date) {
            var day = date.getDay();
            return [(day != 0)];
        },

    Cheers!
    Yigit

    #704708

    Hi Yigit,

    thanks for your good explanation.

    It works perfectly.

    THANX A LOT!

    Yours
    Bernd from BOEHM.media

    #704824

    Hi,

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Disable Sunday from date picker in Enfold Child Theme’ is closed to new replies.