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

    Similar to how the Menu header is removed from the calculation of the height of the fullscreen slider. I would like to have a second element along the bottom of the screen which is ALSO not calculated in the height of the fullscreen slider.
    I added the ID to shortcode.js
    here….

    //subtract elements from the height
    		subtract: '#wpadminbar, #header, #main>.title_container, #zanazan-hme'

    and here
    subtract = $('#wpadminbar, #header.av_header_top:not(.html_header_transparency #header), #main>.title_container, #zanazan-hme'),

    but I probably am missing something cause it’s still not working.

    thanks in adnvance.

    #449794

    Hi!

    Are you sure it’s not working? i can see the desired result on my end, try refreshing a few times.

    Regards,
    Josue

    #449855

    thanks Josue – woke up this morning cleared cache (again)! and it was working – just a quick question if I was to copy the shortcode.js file and put it in my child theme would it still work? would it need to be in a js folder?

    #449897

    Hey!

    You’d need to place the following in your child theme functions.php first:

    function change_shortcodesjs() {
       wp_dequeue_script( 'avia-shortcodes' );
       wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 2, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_shortcodesjs', 100 );

    Cheers!
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.