Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter mohammad2232

    (@mohammad2232)

    Thread Starter mohammad2232

    (@mohammad2232)

    thanks for your time

    Thread Starter mohammad2232

    (@mohammad2232)

    thanks
    this is from instagram app
    https://pasteboard.co/H4K5StM.png
    and this is from iphone 4s safari
    https://pasteboard.co/H4K5mUs.png

    Thread Starter mohammad2232

    (@mohammad2232)

    and i added this

    add_action( 'wp_enqueue_scripts', 'dropFunction' );
    // Dropdown
    function dropFunction() {
    var x = document.getElementById(“myDIV”);
    if (x.className.indexOf(“w3-show”) == -1) {
    x.className += ” w3-show”;
    } else {
    x.className = x.className.replace(” w3-show”, “”);
    }
    }
    add_action( 'wp_enqueue_scripts', 'filterFunction' );
    // Filter
    function filterFunction() {
    var input, filter, ul, li, a, i;
    input = document.getElementById(“myInput”);
    filter = input.value.toUpperCase();
    div = document.getElementById(“myDIV”);
    a = div.getElementsByTagName(“a”);
    for (i = 0; i < a.length; i++) {
    if (a[i].innerHTML.toUpperCase().indexOf(filter) > -1) {
    a[i].style.display = “”;
    } else {
    a[i].style.display = “none”;
    }
    }
    }
    

    in my child theme functions.php but after this my site show white page and in editor in show syntax error
    how can i solve this?
    thanks

    Thread Starter mohammad2232

    (@mohammad2232)

    i used this code in my functions.php file

    <?php
    
    add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
    function enqueue_parent_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
        wp_enqueue_style( 'parent-style', get_template_directory_uri().'/rtl.css' );
        wp_enqueue_style( 'parent-style', get_template_directory_uri().'/css/editor-style.css' );
        wp_enqueue_style( 'parent-style', get_template_directory_uri().'/css/ie.css' );
        wp_enqueue_style( 'parent-style', get_template_directory_uri().'/css/ie7.css' );
    }
    
    ?>
    Thread Starter mohammad2232

    (@mohammad2232)

    thanks so much
    i just create child theme for twentyfifteen
    but my custom settings for color and menu location (right or left) not come into my child theme
    what is wrong?

    Thread Starter mohammad2232

    (@mohammad2232)

    thanks so much for your time
    i don’t have any knowlage of php , havascript ,….
    but i try to learn with example , if i can understand this properly i do this :
    add `// Dropdown
    function dropFunction() {
    var x = document.getElementById(“myDIV”);
    if (x.className.indexOf(“w3-show”) == -1) {
    x.className += ” w3-show”;
    } else {
    x.className = x.className.replace(” w3-show”, “”);
    }
    }

    // Filter
    function filterFunction() {
    var input, filter, ul, li, a, i;
    input = document.getElementById(“myInput”);
    filter = input.value.toUpperCase();
    div = document.getElementById(“myDIV”);
    a = div.getElementsByTagName(“a”);
    for (i = 0; i < a.length; i++) {
    if (a[i].innerHTML.toUpperCase().indexOf(filter) > -1) {
    a[i].style.display = “”;
    } else {
    a[i].style.display = “none”;
    }
    }
    }`
    in /js/functions.js
    and then add :

    <?php wp_enqueue_script( 'dropFunction', get_template_directory_uri() . '/js/functions.js', true); ?>
    
    <?php wp_enqueue_script( 'filterFunction', get_template_directory_uri() . '/js/functions.js', true); ?>
    

    in header.php (i tested before html then in head both of not work)
    then add to footer.php and not work too
    then test

    <?php wp_enqueue_script( 'dropFunction', get_template_directory_uri() . '/js/functions.js'); ?>
    
    <?php wp_enqueue_script( 'filterFunction', get_template_directory_uri() . '/js/functions.js'); ?>
    

    in both header.php and footer.php
    and again not work!
    can you help me how can i solve this problem ?
    thanks

    Thread Starter mohammad2232

    (@mohammad2232)

    thanks
    but my website is persian (admin and user both of them) but contact form 7 is not persian and still english!
    i tried to add script code for add fa to recaptcha.php but not work!

    <script type="text/javascript">
    var RecaptchaOptions = {
       lang : 'fr'
    };
    </script>

    can you help me please
    thanks

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