Forum Replies Created
-
AuthorPosts
-
Hey Thomas,
As the fonts have entries in database, I decided to leave existing sites untouched. The chance of breaking sites is too high.
To move to new locations you need to delete all the fonts (icon and type fonts) and re-upload them again.
I was aware that this is not user friendly but stability has priority.You can do this any time you like – there is no need to hurry.
Best regards,
GünterHi,
Yes I think it should. Using the option “Performance -> Show Advanced -> Custom Font Loading Source” (5.4) will supress the output of @font-face in dynamic css file.
So if you copy the files to your CDN and handle the @font-face CSS rule by yourselfe it should work.Best regards,
GünterHey Thomas,
Thank you for this input.
With next release 5.4 I decided to add a new option:
“Performance -> Show Advanced -> Custom Font Loading Source”
If you select to load from CDN server output of @font-face is suppressed in dynamic CSS file (only a comment line about that is added and can be seen when WP_DEBUG = true).
Meanwhile to test in file framework\php\font-management\class-avia-type-fonts.php function handler_create_dynamic_stylesheet() around line 1177 you find:
if( ! in_array( $context, array( 'before' ) ) ) { return $output; }
after this line add:
return $output;
Now you can use your custom CSS for @font-face.
Hope this helps with the CDN problem.
Best regards,
GünterDecember 20, 2022 at 1:10 pm in reply to: avia_animate_when_visible : how to hamper – or to change offset #1376873December 19, 2022 at 5:49 pm in reply to: avia_animate_when_visible : how to hamper – or to change offset #1376753Hi,
Was a CSS problem. I changed the classes to return and now you can use any value you like:
what is the default offset if i do not influence the setting?
‘bottom-in-view’
no center logo
check config-templatebuilder\avia-shortcodes\icon_circles\icon_circles.css line 52ff.
Best regards,
GünterDecember 17, 2022 at 11:40 am in reply to: Enfold Update 5.3 – Fatal error: Uncaught Exception: Trying read n.exist… wpml #1376458Hey kisys,
Thank you for reporting this.
You have enabled WP_DEBUG on that install.
If you disable it, this error will disappear.
As a second hotfix you can remove the two following lines in enfold\config-templatebuilder\avia-template-builder\php\base-classes\class-object-properties.phpthrow new \InvalidArgumentException ( $message );
We added these checks with 5.3 during development to catch problems – we will change it to debug notices in the next release so it does not break any longer.
Very sorry for the inconvenience.
Best regards,
GünterDecember 14, 2022 at 6:54 pm in reply to: Important change request for avia_google_maps_api.js! #1376210Hey!
With next release 5.4 I added this to core and a filter to activate it:
add_filter( 'avf_gmaps_no_google_fonts', '__return_true' );
Best regards,
GünterHi,
The waypoints script is now enqueued seperate right before the avia.js in functions.php around line 496.
We removed it from avia.js because we needed to make changes to the original script to be compatible with jQuery 3.5 and WP 5.6 and to avoid conflict with the minify routines we added.
Hope this helps you.
Best regards,
GünterDecember 12, 2022 at 10:47 am in reply to: enfold saving didnt work! please reload the page and try again! #1375918Hi,
Bitte um WP Admin Login Daten und FTP damit wir uns das anschauen können. Ohne Zugangsdaten können wir leider nichts machen.
Danke.Die Daten bitte im Private Content eingeben, dann sind Sie nur für Moderatoren sichtbar.
Best regards,
GünterHey loghash,
Thank you for using Enfold.
PHP 5.5 is totally outdated and also for security reasons you should consider to update to a newer version.
The problem you see here is already solved in 5.6 (https://www.javatpoint.com/php-variable-length-argument-function).
There is a workaround for it:
https://www.php.net/manual/en/functions.arguments.php#functions.variable-arg-list
and
https://www.php.net/manual/en/function.func-get-args.php
You will need to modify theme core file
enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-element-styling-base.php after line 633.
But keep in mind you must modify this with every new release. We will not add this to core.
If you need help with it let us know.
Best regards,
GünterHi,
Glad we could help.
I will close this topic. Feel free to open a new topic in case you need further help.
Enjoy the theme and have a great day.
Best regards,
GünterDecember 7, 2022 at 11:09 am in reply to: avia_animate_when_visible : how to hamper – or to change offset #1375326December 6, 2022 at 5:30 pm in reply to: avia_animate_when_visible : how to hamper – or to change offset #1375247Hi,
Added more animation classes:
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_5_2_1/js/shortcodes.js
See activate_waypoints().
Best regards,
GünterHey geektech-42,
The easiest way would be to add your customs fonts to the “Websafe Font” section in the dropdown.
You can do that and manipulate this array with the following filter:
function custom_available_websafe_fonts( $fonts ) { $fonts['Montserrat'] = 'Montserrat'; $fonts['Aclonica'] = 'Aclonica'; return $fonts; } add_filter( 'avf_available_websafe_fonts', 'custom_available_websafe_fonts' );
Then you have to load your @font-face declarations on all backend post types that support ALB and in frontend.
As a start you could add it to enfold-child\style.css which will do it.
To see a rough preview on theme options page you must also load it there. There is no special file in the child theme for that.
You can use the following action hook only called on theme options page to enqueue your own backend file containing the @font-face declarations:/** * Allows to add additional submenus * * @used_by aviaElementTemplates::handler_ava_menu_page_added 10 * * @since 4.8 * @param string $top_level * @param avia_adminpages $this * @param string $the_title * @param string $menu_title */ do_action( 'ava_menu_page_added', $top_level, $this, $the_title, $menu_title );
Example fo Font Face declarations:
@font-face { font-family: 'montserrat'; src: url('https://localhost/wp56/wp-content/uploads/dynamic_avia/avia_type_fonts/custom/montserrat-black.ttf') format('truetype'); font-style: normal; font-weight: 900; font-display: auto; } @font-face { font-family: 'montserrat'; src: url('https://localhost/wp56/wp-content/uploads/dynamic_avia/avia_type_fonts/custom/montserrat-blackitalic.ttf') format('truetype'); font-style: italic; font-weight: 900; font-display: auto; }
I hope this helps you.
Best regards,
GünterDecember 6, 2022 at 1:41 pm in reply to: avia_animate_when_visible : how to hamper – or to change offset #1375224Hi,
There is already a new container class av-animated-when-visible-95 (see enfold\js\shortcodes.js – function activate_waypoints() since 5.0 ).
I will add filter ‘avf_alb_element_animation’ (will try for 5.3) to elements.
Best regards,
GünterHey Gabriel,
Thanks for reporting this.
Sounds a bit strange as I work with 8.0 and get no notices.
But I added fixes for the next release for both problems. Can you wait for that or do you need the fixes now?
Best regards,
GünterNovember 25, 2022 at 11:16 am in reply to: Responsive Images For Lightbox (currently in beta only) #1373854Hi,
I do not think it is the length of the file but some code inside that breaks it.
But glad it is working now.
I will close this topic. You can open a new one whenever necessary.Have a great day.
Best regards,
GünterNovember 24, 2022 at 5:22 pm in reply to: Responsive Images For Lightbox (currently in beta only) #1373795Hey Guenter,
Please have a look at https://enfold.inoplugs.com/a-lightbox-test/
I used the following filter:
and return ‘original’.
As far as I see depending on screen width the largest image is loaded.
By default it is ‘large’.
Am I missing something.
Best regards,
GünterNovember 21, 2022 at 4:48 pm in reply to: Remove self from displaying in masonry/portfolio elements #1373396Hi,
Your solution will not work in masonry entries with load more button and when the entry is queried with the load more by ajax.
I’ve already a solution for that.For backwards compatibility I think we must have an option to activate it.
And I will check other ALB elements to add it.
Best regards,
GünterNovember 20, 2022 at 1:17 pm in reply to: Remove self from displaying in masonry/portfolio elements #1373260Hey Tim,
Thank you for this input. Makes sense.
I added to our dev repo and will check if there is an easy way to implement this. I will keep you informed here – or check the changelog.
Best regards,
GünterHey Tim,
Sorry for the late reply.
I’m afraid there is no easy solution for that.
Icon and type fonts are uploaded in a zip file and our logic unpacks these files and copies content to a directory on the local server and stores link information in database which is used to add it to the css.
With upcoming version 5.3 we change the location where the unpacked files are stored (see https://kriesi.at/support/topic/enfold-upcoming-fixes/).
Unfortunately, I don’t have any experience with CDN’s and how the URL’s are handled.
But if you can copy the directories containing the unpacked files to your CDN location keeping the directory structure maybe it is possible to change the server source only ?
Best regards,
GünterHey BlutVampir,
Use
Avia_WPML()
to get the instance of the class for the handlers.
e.g.:
remove_filter( 'wp_nav_menu_items', [ Avia_WPML(), 'handler_append_lang_flags' ], 9998, 2 );
Best regards,
GünterHi,
I added an option to add an account icon right before the search icon – or end of menu if no search icon.
Will link to default WooCommerce account or login/register page.Hope this will help you.
Best regards,
GünterNovember 12, 2022 at 10:27 am in reply to: Responsive Styles Feature in "Columns" and "Grid Row" break Custom CSS #1372285Hi,
I added the following filter ‘avf_el_styling_responsive_styles_ignore’ for next release:
/** * Allow to ignore responsive styles handling on element basis and use for all screen sizes * * @since x.x.x * @param boolean $skip * @param array $atts * @param \aviaShortcodeTemplate|null $sc_context * @param string $id * @param string $container * @param aviaElementStyling $this * @return false|mixed anything except false will only use default setting for */ if( false !== apply_filters( 'avf_el_styling_responsive_styles_ignore', false, $atts, $sc_context, $id, $container, $this ) ) { $rule = isset( $this->callback_settings[ $id ]['styles'] ) ? $this->callback_settings[ $id ]['styles'] : array(); if( ! is_array( $rule ) || empty( $rule ) ) { return $added; } $this->add_styles( $container, $rule ); $added++; return $added; }
and also added the $this parameter to filter ‘avf_el_styling_responsive_styles_skip’.
I hope this will help.
We try our best to stay backwards compatible, but it is impossible for all possible cases.
Best regards,
GünterNovember 11, 2022 at 3:31 pm in reply to: Responsive Styles Feature in "Columns" and "Grid Row" break Custom CSS #1372223Hi,
Thank you for reporting this problem – and very sorry for this.
A added filter ‘avf_disable_grid_cells_responsive_padding’ to cell.php (lines 602+603) – similar to “avf_disable_columns_responsive_margin_padding”:
/** * Allow fallback to ignore responsive padding in case a page/site gets broken * * @since x.x.x * @param boolean $disable_responsive_padding * @param array $atts * @param array $result * @param aviaShortcodeTemplate $this * @return false|mixed anything not false to fallback */ $disable_responsive_padding = apply_filters( 'avf_disable_grid_cells_responsive_padding', false, $atts, $result, $this ); if( false !== $disable_responsive_padding ) { // fallback $element_styling->add_callback_styles( 'container', array( 'padding' ) ); } else { $element_styling->add_responsive_styles( 'container-padding', 'padding', $atts, $this, '!important' ); }
Will be in next release.
These filters allow to add logic to have a fallback only for existing pages.
Hope this will help you.
Best regards,
GünterHey Thomas,
You can use the following filter:
add_filter( 'avf_allow_drag_drop', 'custom_disable_alb_drag_drop', 100, 1 );
This will hook after our filter in enfold\functions-enfold.php line 2227.
in your function
custom_disable_alb_drag_drop( $disable ) { // add logic to decide what to do }
return true to allow drag/drop or false to lock.
Hope this helps you.
Best regards,
Günter -
AuthorPosts