Forum Replies Created
-
AuthorPosts
-
April 30, 2024 at 2:30 pm in reply to: how to use avf_dynamic_css_additional_vars and avf_dynamic_css_after_vars #1441456
Hey 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ünterHi @Guenni007,
strict equality
No, not needed.
p-tag
You need to check $extra_args. In the ALB element you find:
$extra_args = array( $this, $atts, $content, 'title' );
means you can use:
$atts = extra_args [1];
and you have access to all shortcode attributes – if you set a custom id or class you can check it here.
Best regards,
Günter-
This reply was modified 11 months ago by
Günter.
Hi @BigBatT,
Thank you a lot again for contributing the translations. Will be added to core.
Have a great day.Best regards,
GünterMarch 25, 2024 at 1:27 pm in reply to: The “avia-head-scripts” error persists despite trying all recommendations #1438275Hi,
To find the entry in database you can use the following SQL statement:
SELECT * FROM
wp_options
WHEREoption_name
like '%avia-head-script%'To remove all use:
DELETE FROM
wp_options
WHEREoption_name
like '%avia-head-script%'Best regards,
GünterHey Tim,
Thanks for reporting this. There is a weak CSS selector for empty cells in table.css line 234:
.pricing-table li.empty-table-cell{ display:none; }
As a temporary fix change it to or add it to Quick CSS in theme options:
.avia-pricing-table-container .pricing-table li.empty-table-cell{ display:none; }
Do not forget to toggle and save theme options to rebuild the merged CSS files.
I will add a fix for next release.
Best regards,
GünterHi,
I thought based on topic title you are using a plugin.
I’ve changed the implementation that this “feature” must be activated by user in child theme functions.php:
add_theme_support( 'avia_include_cookiebot' );
As there are too many files involved I would like to send you a complete copy of the theme to check. Let me know, to which E-Mail I can mail it please.
Best regards,
GünterHi Jan,
I’ve changed the implementation and put the relevant code js and php in config-cookiebot folder.
I think you are using https://wordpress.org/plugins/cookiebot/ – I added logic to only load the files when this plugin is active.
I would prefer to send you a complete version of Enfold (based on 5.6.11) including this implemention if you let me know where to send it (add it to private content field).
Best regards,
GünterMarch 18, 2024 at 2:25 pm in reply to: Bug Enfold Image element doesnt work and causes php memory exausted error #1437481Hi,
No problem – it will also take me some time to investigate.
I’m tagged to this topic.Best regards,
GünterHi,
Thank you for reporting this problem.
I completly modified the error handling in function avia_backend_create_file() for next release.
But in my opinion using WP-Rocket and our file merging does not make much sense. WP-Rocket is as far as I know optimized to handle caching and also minifying.
You can use our minimized css and js files without merging if you like.
Best regards,
GünterMarch 18, 2024 at 12:05 pm in reply to: Bug Enfold Image element doesnt work and causes php memory exausted error #1437463Hi,
Sorry for the late reply.
Do you have any other error messages in the error logs of WP and the php server ?
You probably know, but just to be sure.
There are 2 memory limits to set: PHP and WP
https://www.atatus.com/blog/the-php-memory_limit-what-you-need-to-know-about-increasing-it/
As you investigated – it seems to be a problem of PHP 8.1 in conjunction with a large amount of images.
There are 2 possible problems:
– caused by our image element
– caused by WooCommerce core or a plugin you usePHP 8.1 also has a stricter type management – this also might cause a problem somewhere.
It is impossible for us to setup a test site with 116.000 products and to debug the problem on a live site is not really possible without breaking the site as we would need to insert debug code and also change php code of the image element including frontend output to locate the problem.
Do you have a chance to duplicate the site to a dev server where we can get free access (also ftp, to error logs, …) to investigate closer?
Best regards,
GünterHey Perfect Word,
Thanks a lot for reporting. Will be added to next release 5.6.13.
Enjoy the theme and have a great day.
Best regards,
GünterHey kreativeseite,
Very sorry for this problem. Will be fixed in next release.
Meanwhile can you please replace
…\wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\section\section.php
with
I added at line 1495:
$skipSecond = false;
Do not forget to make a backup of the original file for a fallback and clear server and browser cache.
If you need help with this let us know.Best regards,
Günter -
This reply was modified 11 months ago by
-
AuthorPosts