Forum Replies Created
-
AuthorPosts
-
Hi,
@christian.wienWe plan to release Enfold 6.0 including the ACF support in approx. 3 weeks – if nothing unexpected occurs.
Best regards,
GünterHi,
Thank you for your help.
Sorry but I’m afraid I do not know a solution either. TBH – I do not work very much with videos. I only know that mobile devices are restrictive with videos.
Best regards,
GünterHi @EZWebdesign,
Thank you for your contribution, Roger! Dutch language files will be updated in the upcoming version.
Best regards,
GünterMay 8, 2024 at 9:22 am in reply to: Undefined array key “medium” in class-popup-templates-responsive.php #1442651Hi,
Thank you for using Enfold and reporting this.
I added a fix to next release 5.7.2.
Meanwhile please replace …/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php
with
Do not forget to make a backup of the original file for a fallback.
Best regards,
GünterMay 4, 2024 at 8:07 am in reply to: Bug Enfold Image element doesnt work and causes php memory exausted error #1442263Hi,
Yes please. And please give me access to theme editor so I can add some code to check.
And how to reproduce it.Best regards,
GünterMay 4, 2024 at 8:00 am in reply to: Enfold Bug and Fix – Couldn't log into support to submit fix #1442262Hey Jim!
Thank you for reporting this.
Will be fixed in 5.7.1.Thank you for using Enfold and enjoy the day.
Regards,
GünterHi,
I removed the translation in this section – it does not make real sense there.
So it will be Font: xxxx ( font-family: xxx )Best regards,
GünterHey Guenter,
Latest translation files render a different translation for me (https://github.com/KriesiMedia/enfold-language-files).
It is correct, that there are missing ‘ ‘ in some translations. This should actually be fixed in core __(…) function and add ‘ ‘ outside. Will check that for one of the next releases.
Best regards,
GünterApril 30, 2024 at 4:49 pm in reply to: how to use avf_dynamic_css_additional_vars and avf_dynamic_css_after_vars #1441468Hi,
what benefit has that after_vars
You can add e.g. a media query to override var values you added with the filter avf_dynamic_css_additional_vars and have the code in php file right after for better readability ( and also in the dynamic css file ).
Best regards,
GünterApril 30, 2024 at 2:30 pm in reply to: how to use avf_dynamic_css_additional_vars and avf_dynamic_css_after_vars #1441456Hey Guenter,
The filters are in ..\enfold\css\dynamic-css.php line 129ff.
‘avf_dynamic_css_additional_vars’:
Is located inside :root{ …. }
Simply return additional vars (pseudo code only):function my-xxx( $output ) { $output .= "--your-font-size-theme-h3: 20px;\n"; $output .= "--your-font-size-theme-h4: 20px;\n"; return $output; }
‘avf_dynamic_css_additional_vars’ is the same but outside any selectors. You are free to return anything you like – it must be valid CSS rules
e.g. a media query with vars.Best regards,
GünterHi Günter,
Thanks for sharing. I added these examples to our library file https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/Layout/avf_post_ingnore_featured_image_link.php
Best regards,
GünterHi Günter,
Thanks for sharing this.
I only wanted to point, that your code does not apply to background of the icon as shown in the image of the first post but to the font.
I add this idea to our dev repo – maybe it will become part in one of the next releases for some elements.
Best regards,
GünterHey Guenter,
Your code results like this on my side (added to base.css line 450) on ALB icon element:
Best regards,
GünterApril 29, 2024 at 4:00 pm in reply to: Specific question from a programmer /Spezielle Frage von einem Programmierer :-) #1441315Hey Martin,
ad 1)
Datei …\enfold\framework\php\class-form-generator.php
Es gibt 2 Filter:
avf_contact_form_incoming_mail
avf_contact_form_autoresponder_mailIm übergebenen array $mail_array:
$mail_array['Content-type'] = 'text/plain';
ad 2)
kann man leider nicht ändern – bricht sonst die komplette Logik.
Best regards,
GünterHi!
For your information:
Added filter avf_post_ingnore_featured_image_link to next release 5.7.1.
See https://github.com/KriesiMedia/Enfold-Feature-Requests/issues/97 for links how to use the filter and to update ..\enfold\includes\loop-index.php including this link already.
Cheers!
GünterHi,
I rechecked on my install and it works.
There are 4 german language files – please follow the steps to download the repo https://github.com/KriesiMedia/enfold-language-files and update all 4 german files. And make sure to select 1 of these german language in WP settings.
Do not forget to clear server and browser cache.
Best regards,
GünterHi,
You have to add all parameters to the add_filter function, otherwise it uses default parameters (where last one is 1):
add_filter('avf_magazine_header_content', 'avf_magazine_header_content_custom_query', 10, 2 );
Best regards,
GünterHi @Guenni007,
I modified the filter parameters (see line 973ff).
You can use this filter now like:
function my_avf_customize_heading_settings( array $args, $context, array $extra_args = array() ) { if( 'avia_slideshow' == $context ) { // get class of slideshow $slider_class = get_class( $extra_args[2] ); if( in_array( $slider_class, [ 'avia_sc_slider', 'avia_sc_slider_fullscreen', 'avia_sc_slider_full' ] ) ) { $index = $extra_args [1]; // current slide in loop $slide = $extra_args [3]; // get shortcode attributes of current slide $attr = $slide['attr']; // only change for first slide and when default if( '' == $attr['heading_tag'] && 0 == $index ) { $args['heading'] = 'h3'; } } } return $args; } add_filter( 'avf_customize_heading_settings', 'my_avf_customize_heading_settings', 10, 3 );
… only ever replace the “default setting” ….
It gives more flexibility e.g. if there is dynamic created content on the page (e.g. like in upcoming 6.0 with ACF fields and/or in custom layouts )
Best regards,
GünterHi,
$extra_args[1] = ‘slider_title’ | ‘slider_entry’
see lines 1096, 1182 ff
Best regards,
GünterHi @Guenni007,
see line 1117 ff
In filter use:
$element_atts = $extra_args[4];
and for styling:
$element_atts['iconlist_styling'] // '' | 'av-iconlist-small'
Best regards,
GünterHi,
avia_sc_iconlist
correct – currently not possible. I will add the attributes of “container” element to $extra_args. Will let you know here.
avia_sc_content_slider
it is avia_content_slider
Best regards,
GünterHi @Guenni007,
In my solution I leave the filter right away if not ‘avia_sc_toggle’ avoiding copying of $extra_args [1] if not needed (arrays are copied and not only a reference to it).
Your solution is also OK. Depending on what you want to do or what other logic you need in this filter (e.g. for other elements) there are always different approaches.
Best regards,
GünterHi @Guenni007,
I added a fix for 5.7:
LIMITATION: relation “AND” does not provide a fallback if empty categories are selected !!!
Best regards,
GünterHi @Guenni007,
Sorry for the late reply.
function my_avf_customize_heading_settings(array $args, $context, array $extra_args = array()) { if( $context != 'avia_sc_toggle' ) { return $args; } $atts = $extra_args [1]; if( '' == $atts['heading_tag'] ) { $args['heading'] = 'h3'; } return $args; } add_filter('avf_customize_heading_settings', 'my_avf_customize_heading_settings', 10, 3);
$atts['heading_tag']
is the value of the selectbox “Toggle Title Tag (Theme Default is <p>)”
Best regards,
Günter -
AuthorPosts