Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Mobile menu visible on desktop #833669

    Thanks, seems to be fine again.

    in reply to: Mobile Menu Not Showing #831858

    Same here on lustwandler.at, this site is at 4.1.2. Site worked fine for month, since last update, the mobile menu is visible on Desktop.

    in reply to: Magnific Popup Lightbox and lacking Retina-Support #709539

    Thanks, that worked out fine.

    Edit some days later:
    The solution was not quite perfekt, because in the admin dashboard one could not switch to the plaintext editor anymore. It seems to be necessary to add a !is_admin():

    // Load avia.js and the current version of magnific popup directly from our child theme
    function wp_change_aviajs() {
      if(!is_admin()){   // not for the WP Admin dashboard
        wp_dequeue_script( 'avia-default' );
        wp_dequeue_script( 'avia-popup' );
        wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
        wp_enqueue_script( 'avia-popup-child', get_stylesheet_directory_uri().'/js/aviapopup/jquery.magnific-popup.min.js', array('jquery'), 2, true );
      }
    }
    add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );
    • This reply was modified 8 years, 1 month ago by elisabeth.

    Thanks Ismael!

    For the archives (all sizes mentioned, take what u need):

    function ava_image_sizes_remove() {
    remove_image_size('masonry');
    remove_image_size('magazine');
    remove_image_size('widget');
    remove_image_size('featured');
    remove_image_size('featured_large');
    remove_image_size('extra_large');
    remove_image_size('portfolio');
    remove_image_size('portfolio_small');
    remove_image_size('gallery');
    remove_image_size('entry_with_sidebar');
    remove_image_size('entry_without_sidebar');
    remove_image_size('square');
    remove_image_size('shop_thumbnail');
    remove_image_size('shop_catalog');
    remove_image_size('shop_single');
    }
    add_action( 'after_setup_theme', 'ava_image_sizes_remove', 11 );

    Fun fact: update_option works for WP-sizes only, for enfold-defined types I needed the code below:

    // change the default medium_large to 1600x1067
    update_option('medium_large_size_w',1600);
    update_option('medium_large_size_h',1067);
    function ava_image_sizes_change( $size ) {
      $size['entry_with_sidebar']  = array('width'=>1920, 'height'=>1280);        // big images for blog and page entries
      $size['entry_without_sidebar']= array('width'=>1920, 'height'=>1280 );      // images for fullsize pages and fullsize slider
      return $size;
    }
    add_filter( 'avf_modify_thumb_size', 'ava_image_sizes_change', 10, 1 );

    Thanks, below the data.
    The site is not live yet, feel free to do anything you want :)

    • This reply was modified 8 years, 3 months ago by elisabeth.
Viewing 5 posts - 1 through 5 (of 5 total)