Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
Thanks, seems to be fine again.
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.
November 7, 2016 at 11:04 pm in reply to: Magnific Popup Lightbox and lacking Retina-Support #709539Thanks, 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 ago by elisabeth.
October 8, 2016 at 7:33 pm in reply to: Enfold Child: remove shop_single, shop_catalog, shop_thumbnail in functions.php #696928Thanks 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 );
September 25, 2016 at 9:32 pm in reply to: Enfold Child: remove shop_single, shop_catalog, shop_thumbnail in functions.php #691382Thanks, below the data.
The site is not live yet, feel free to do anything you want :)- This reply was modified 8 years, 1 month ago by elisabeth.
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)