Forum Replies Created
-
AuthorPosts
-
ok i see:
the lightbox script got his titles from the img tag not the anchor !
so on line 784 (enfold 5.6.6) and on line 806:Guess title should be:
title="{$lightbox_title}"
i do not know how to handle the $prev_img_tag if we had to change that too.only for info to mods:
Funnily enough, I can find the instructions for this in gallery.php – and not in masonry-gallery.php.:
(they are in the helper for masonry: class-avia-masonry.php)$lightbox_title = $title; switch( $lightbox_text ) { case 'caption': $lightbox_title = ( '' != $caption ) ? $caption : $title; break; case 'description': $lightbox_title = ( '' != $description ) ? $description : $title; break; case 'no_text': $lightbox_title = ''; }
?
on default there should be a working choice for that under the option to choose the lightbox option:
but i recognized now that for galleries – that option has no influence – but test yourself on your gallery. On Masonry Gallery it works well to choose “no text”
if so we had to inform a Dev here on board – to fix it.
in the meantime you can set the mfp-title to display: none
div .mfp-title { display: none !important; }
First : you want to get rid of the titles under the opend lightbox images – or do you like to have different Text there and not the image titles?
____Next: how do you insert images?
If you are knowing how to insert new images then you see those little crosses on already existing images in that gallery.:
hovering the “X” will turn that to a minus sign “-” click and the image is gone.
September 8, 2023 at 7:38 am in reply to: Still fighting with managing default image sizes. #1418419i don’t know how your plugin react on this. My solution above is only for working with snippets inside your child-theme functions.php.
i do not know how those regenerate Plugins do their job. – F.e. if they remove allready existing recalculated images.
There is one Plugin from : Shortpixel Group: https://wordpress.org/plugins/regenerate-thumbnails-advanced/if this plugin recalculates the images – you can have under advanced options to erase non recalculated images from the uploaded folder.
(click to enlarge:)
btw.: this plugin also can create new image sizes.The only thing I notice is that the compression level does not work for Enfold formats.
But you can set that beforehand by f.e:add_filter("avf_jpeg_quality", "avf_set_quality_mod", 9999, 1); add_filter("avf_wp_editor_set_quality", "avf_set_quality_mod", 9999, 1); function avf_set_quality_mod($quality) { $quality = 55; return $quality;}
OK – i did not know that it still works – but you had to go the way over embed then. Nice
Yes – thats only a matter of youtube (Google) settings. In the past, it was possible to prevent various things by adding an attachment to the video url. They have decided not to allow this any more.
z.B.:
https://www.youtube.com/embed/1YQ8iP0DiUk?autoplay=1
So the Google people decided to patronise their users even more. i didn’t find anything on https://developers.google.com/youtube/iframe_api_reference.
I really do wish that I was wrong about all this.
September 7, 2023 at 7:08 pm in reply to: Still fighting with managing default image sizes. #1418394adding new images sizes:
add_image_size( 'custom-size', 220, 180, true ); // crop: false is default add_image_size( 'custom-size', 220, 220, array( 'left', 'top' ) ); // Hard crop left top
or:
add_image_size( 'new-size', 2000, 500, true ); function my_custom_sizes( $sizes ) { return array_merge( $sizes, array( 'new-size' => __( 'New Size' ), ) ); } add_filter( 'image_size_names_choose', 'my_custom_sizes' );
/***** redefine existing size ****/
function custom_modified_thumb_sizes( $size ){ $size['entry_with_sidebar'] = array('width'=>900, 'height'=>450 ); $size['entry_without_sidebar'] = array('width'=>1200, 'height'=>600 ); return $size; } add_filter('avf_modify_thumb_size', 'custom_modified_thumb_sizes', 10, 1 );
same as above : regeneration had to be done
September 7, 2023 at 7:05 pm in reply to: Still fighting with managing default image sizes. #1418393Try this and for changing the direct next post:
https://kriesi.at/support/topic/enfold-image-sizes-3/#post-1108904
https://kriesi.at/support/topic/enfold-image-sizes-3/#post-1109028
But : after erasing some of those image-sizes – you had to regenerate your thumbnails : there are some good plugins to do so.
f.e.: https://wordpress.org/plugins/force-regenerate-thumbnails/// Disable loads of Enfold & WP image sizes upon upload // do image sizes manually, double-size with high compression for retina screens // use Photoshop to set exact double size and quality between Q30 and Q40 add_action('init', 'remove_enfold_image_sizes'); function remove_enfold_image_sizes() { // do NOT remove widget size, is used in backend portfolio items! // remove_image_size('widget'); remove_image_size('square'); remove_image_size('featured'); remove_image_size('featured_large'); remove_image_size('portfolio'); remove_image_size('portfolio_small'); remove_image_size('gallery'); remove_image_size('magazine'); remove_image_size('masonry'); remove_image_size('entry_without_sidebar'); remove_image_size('entry_with_sidebar'); remove_image_size('shop_thumbnail'); remove_image_size('shop_catalog'); remove_image_size('shop_single'); remove_image_size('shop_gallery_thumbnail'); } // Remove unneeded WP image sizes add_filter( 'intermediate_image_sizes_advanced', 'prefix_remove_default_images' ); // Remove default image sizes here. function prefix_remove_default_images( $sizes ) { // do NOT remove small and medium sizes, they are used in backend Media Library! // unset( $sizes['small']); // 150px // unset( $sizes['medium']); // 300px unset( $sizes['large']); // 1024px unset( $sizes['medium_large']); // 768px return $sizes; }
September 5, 2023 at 1:02 pm in reply to: How to sort custom post type posts with custom post meta field #1418150you see that the if clause is allready an array – so comma separated id’s will do that job:
… if ( is_page(array(1132, 6481)) ) {
September 4, 2023 at 12:52 pm in reply to: How to sort custom post type posts with custom post meta field #1418026did you adjust the code to your ACF ?
as I said above, it is likely that my code does not work in the loop. – I’ll have to call in someone with more programming skills – sorry.
by the way: please use the code tag to post snippets . it is hard to read ( and a lot of signs are changed ) if you do not.
Next: your links above goes to a different url – the one in your screenshot is password portected
Did you look to that page logged out ? because the above if-clause includes the if not admin
September 4, 2023 at 10:29 am in reply to: How to exclude current posts from related posts grid #1418022Thanks Mike & Guenni007, for the help and support, it helped me a lot to solve the issue.
would you please share your working solution …
September 4, 2023 at 10:23 am in reply to: How to sort custom post type posts with custom post meta field #1418021it is hard to give advice without a working test environment to check.
Can you try :
function pre_sort_filter_escorted_vacations($query) { if(!is_admin() && $query->is_main_query()) { $post_type = $wp_query->query['post_type']; if ( $post_type == 'escorted-vacations') { $query->set('meta_key', 'start_date'); $query->set('orderby', 'meta_value_num'); $query->set('order', 'ASC'); } } } add_action('pre_get_posts', 'pre_sort_filter_escorted_vacations');
do not know if this works – then if it works on the loop ( i don’t think so )
September 4, 2023 at 7:25 am in reply to: How to exclude current posts from related posts grid #1418000or Mike …. maybe it is first needed to include the CPT to search – as you have done it here: https://kriesi.at/support/topic/seiten-aus-der-enfold-suche-ausschliesen/#post-1396760
you got on your quick css some rules
because of an enfold rule is more specific than your setting – be more selective too on your settings !Replace your settings with:
.responsive #top #header_meta .sub_menu li.flag-deutsch { background: url('//www.elianafe.com/wp-content/uploads/2023/08/deutschland-sized.png') center center no-repeat; height: 50px; width: 50px; text-indent: -9999em; background-size: contain; } .responsive #top #header_meta .sub_menu .flag-english { background: url('//www.elianafe.com/wp-content/uploads/2023/08/vereinigtes-konigreich-sized.png') center center no-repeat; height: 50px; width: 50px; text-indent: -9999em; background-size: contain; } #top .flag-deutsch a, #top .flag-english a { display: block; height: 100%; background: none !important; /*** because of that layout.css rule your setting on li will otherwise be inherited to that a element ***/ }
you see that selector got two id’s and that overwrites your background setting with only one id in the selector
it is more selective!September 3, 2023 at 6:03 pm in reply to: Contact Form – Date – start selection a week later #1417963there are nice plugins to influence datepicker f.e.: Datepicker by input
but you can insert that snippet to your child-theme functions.php
( if you get rid of those outcommented signs “//” – the weekends will be unavailable too ):
( there is a prebuild option for no Weekend)function my_datepicker_defaults() { ?> <script type="text/javascript"> window.addEventListener("DOMContentLoaded", function () { (function($) { $.datepicker.setDefaults({ // beforeShowDay: $.datepicker.noWeekends, minDate: "+7d", maxDate: "+12m", }); }(jQuery)); }); </script> <?php } add_action('wp_footer', 'my_datepicker_defaults', 20);
if you do not need maxDate remove that line
September 3, 2023 at 1:16 am in reply to: How to exclude current posts from related posts grid #1417928no – but if you go further to f.e. “Rail across Canada” that Post is still on the slider.
So try to include your CPT ( guess it is: escorted-vacations) to the alb handlingSeptember 2, 2023 at 6:01 pm in reply to: How to exclude current posts from related posts grid #1417887i guess not – maybe the custom-post type had to be first included to ALB support:
Replace the “event” with the name of your CPT:
function avf_alb_supported_post_types_mod( array $supported_post_types ) { $supported_post_types[] = 'event'; return $supported_post_types; } add_filter('avf_alb_supported_post_types', 'avf_alb_supported_post_types_mod', 10, 1); function avf_metabox_layout_post_types_mod( array $supported_post_types ) { $supported_post_types[] = 'event'; return $supported_post_types; } add_filter('avf_metabox_layout_post_types', 'avf_metabox_layout_post_types_mod', 10, 1);
September 2, 2023 at 3:35 am in reply to: How to exclude current posts from related posts grid #1417857Try this snippet in your child-theme functions.php:
function ava_exclude_current_post($query) { if (is_singular('post') || is_singular('portfolio') ) { $exclude = avia_get_the_ID(); $query->set( 'post__not_in', array($exclude) ); } } add_action('pre_get_posts', 'ava_exclude_current_post');
// in the if-clause you can use aswell : if(is_single()){
September 1, 2023 at 1:49 pm in reply to: Icon/Flipbox Grid – Change H4 and H6 of Grid Item Title and Sub-title #1417814for subtitle there is a filter: avf_sc_icongrid_subtitle_heading_tag
sadly there is no filter for title_heading_tag – but you can solve that as you said – see screenshot of Mikebtw: maybe the first snippet of mike here: Link – does not work – because a priority is missing – when you load your jQuery in the footer ;)
using for last line then :… add_action('wp_footer', 'custom_icongrid_subtitle_script', 999);
There can be several reasons why Google Fonts are loaded externally.
First of all – have you activated your uploaded fonts at the end of the list in Enfold – Fonts? – Many upload Open-Sans but then select the default font in the list instead of the uploaded one.
2.) try this snippet in your child-theme functions.php:function my_output_google_webfonts_script( $activate ){ return false; } add_filter( 'avf_output_google_webfonts_script', 'my_output_google_webfonts_script', 10, 1 );
3.). If you are using Google Apps ( Maps, ReCaptcha, Analytics etc. pp) these apps can download their own fonts via Google Server!
a) you can use for gmaps on child-theme functions.php:add_filter( 'avf_gmaps_no_google_fonts', '__return_true' );
4.) …. better you tell us what you use from Google as an app to give further advice to prevent fonts from loading
hast du das hier schon ausprobiert:
dann bekommt selbst ein Editor nur das hier zu sehen:
– also nur Bearbeitungen ( als Editor natürlich auch der Beiträge der Anderen User) möglich.
- This reply was modified 1 year, 2 months ago by Guenni007.
Thanks – you can close the topic now
or does that filter can do that job?
avf_alb_masonry_img_custom_link_fallbackand how to set then to lightbox if fallback … ?
Edit: on one page it works this way as wanted – so i had to inspect the other installation what hampered the desired way.
- This reply was modified 1 year, 2 months ago by Guenni007.
I think this would be a good option to choose. So – yes, please pass it on to Günter
by the way – if the setting: “use custom link – fallback is image link” – is made – it would be nice if there is an option to preserve the lightbox behavior on images without custom_link !
“custom-link fallback is lightbox image link”. that would be a great option
ok on a fresh install – it works – so I think there must be something in the child theme functions.php that is preventing it from working correctly.
Edit: ok – this known snippet to set the lightbox size to full from galleries :
function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta){ $link = wp_get_attachment_image_src($attachment->ID, "full"); return $link; } add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4);
disturbs the correct behavior of custom_link setting.
but on google page you see that the css for it is:
font-family: 'Archivo', sans-serif; font-family: 'Archivo Black', sans-serif;
so test both
i uploaded the variable font and there it is only “archivo”
August 28, 2023 at 12:42 pm in reply to: The Elements are not displaying upon switching my website into live #1417321i see that your inline-css is not created on the slideshow list elements ( goes to opacity: 1 and visibility: visible ) – so Mikes hint seems to be a good idea – to see what hampers the (animated ) transformation of the list elements.
Element { visibility: visible; opacity: 1; transition: none 0s ease 0s; transform: translateZ(0px); }
Was ich aber auf deiner Startseite sehe ist doch ein ALB: Submenü – oder?
Wo wäre da das Menü inclusive der Mega-Menü Setzung?
Die Option Mega-Menu gibt es bei Sub-Menü nicht. -
AuthorPosts