אלמנט מפה, היכן אני מוסיפה את קובץ ה js בכדאי לגרום למפה לא להגיב לעכבר בגלילה

פורום התמיכה פתוח למשתמשים מנויים בלבד. יש להתחבר או להרשם כדי להוסיף דיון או תגובה בפורום.

פורום התמיכה הועבר
על מנת שנוכל לתת לכם שירות ותמיכה בצורה אישית יותר, פורום התמיכה הועבר למערכת טיקטים באמצעות האימייל. בימים הקרובים יסגר הפורום לכתיבת הודעות חדשות לחלוטין.

ראשי › פורומים › תמיכה › אלמנט מפה, היכן אני מוסיפה את קובץ ה js בכדאי לגרום למפה לא להגיב לעכבר בגלילה

דיון זה מוגדר: סגור

תגיות: 

מוצגות 11 תגובות – 1 עד 11 (מתוך 11 סה״כ)
  • מאת
    תגובות
  • #19055
    lilu
    Participant

    אני גם רוצה לגרום למפה לא להגיב לעכבר בגלילה, מצאתי את התשובה הזו

    https://pojo.co.il/topic/%D7%90%D7%9C%D7%9E%D7%A0%D7%98-%D7%9E%D7%A4%D7%94-%D7%94%D7%90%D7%9D-%D7%99%D7%A9-%D7%93%D7%A8%D7%9A-
    %D7%9C%D7%92%D7%A8%D7%95%D7%9D-%D7%9C%D7%95-%D7%9C%D7%90-%D7%9C%D7%94%D7%92%D7%99%D7%91-%D7%9C/

    אבל לא ברור לי איפה אני מוסיפה את ה js

    אשמח לתשובה
    ל

    #19077
    Yakir Sitbon
    Participant

    זה לא קוד רישמי שאנחנו תומכים בו, אבל את יכולה להוסיף את הקוד הזה ב-functions.php בצורה כזאת:

    function pojo19055_disable_google_maps_mouse_whell() {
        ?>
        PUT THE CODE HERE
        <?php
    }
    add_action( 'wp_footer', 'pojo19055_disable_google_maps_mouse_whell' );
    #19490
    lilu
    Participant

    הי תודה, לצערי לא עבד.
    הוספתי לקובץ ה function.php ב child theme
    את הקוד הנ״ל

    function pojo19055_disable_google_maps_mouse_whell() {
    ?>
    jQuery(document).ready(function () {

    // you want to enable the pointer events only on click;

    jQuery('.pojo-google-map-wrap iframe').addClass('scrolloff'); // set the pointer events to none on doc ready
    jQuery('.pojo-google-map-wrap').on('click', function () {
    $('.pojo-google-map-wrap iframe').removeClass('scrolloff'); // set the pointer events true on click
    });

    // you want to disable pointer events when the mouse leave the canvas area;

    jQuery(".pojo-google-map-wrap iframe").mouseleave(function () {
    jQuery('.pojo-google-map-wrap iframe').addClass('scrolloff'); // set the pointer events to none when mouse leaves the map area
    });
    });
    <?php
    }
    add_action( 'wp_footer', 'pojo19055_disable_google_maps_mouse_whell' );

    ואז לקובץ style.css את
    .scrolloff {
    pointer-events: none;
    }

    אבל זה לא עובד, בפוטר מופיע לי :
    iframe').removeClass('scrolloff'); // set the pointer events true on click }); // you want to disable pointer events when the mouse leave the canvas area; jQuery(".pojo-google-map-wrap iframe").mouseleave(function () { jQuery('.pojo-google-map-wrap iframe').addClass('scrolloff'); // set the pointer events to none when mouse leaves the map area }); });

    ממש אשמל לעזרה, תודה

    #19491
    lilu
    Participant

    קישור לאתר:

    http://record-studio.co.il/

    עוד משהו, האתר מכוון מ url אחר וברגע שעשיתי את זה כל ה font awesome נעלמו..

    מדוע?

    #19511
    lilu
    Participant

    הצלחתי עם עניין המפה, תודה.

    נשאר העניין עם fa-icons.. ?

    #19728
    Yakir Sitbon
    Participant
    תגובה זו סומנה כפרטית.
    #19742
    lilu
    Participant

    רק כאן זה לא נטען,
    http://record-studio.co.il/
    מדוע?

    #19746
    Yakir Sitbon
    Participant

    מה כתוב לך בהגדרות -> כללי, בשני השדות של הכתובת של האתר?

    #19752
    lilu
    Participant

    שניהם על
    http://record-school.co.il/record-studio

    את ה redirection עשיתי מה control panel של האחסון

    האם אני צריכה לשנות גם את ה כתובת URL של האתר בהגדרות, בטח עדיף שאשנה, לא.. ?

    תודה

    #19754
    Yakir Sitbon
    Participant

    בוודאי.
    (חשוב לעשות גיבוי לפני הכל)

    #19757
    lilu
    Participant

    אוקיי. תודה

מוצגות 11 תגובות – 1 עד 11 (מתוך 11 סה״כ)
  • הפורום 'תמיכה' נסגר לדיונים ולתגובות חדשות.