Forum Replies Created
-
AuthorPosts
-
November 22, 2021 at 5:49 pm in reply to: Cross-Origin Request Blocked: Font loading blocked on English WPML #1330020
Hi,
Thank you for the feedback – and glad we found the solution.
No, I will merge it into 4.8.7.2. Only keep
add_theme_support( 'custom_uploaded_fonts_relative_url' );
Enjoy the theme and have a nice day.
Let us know, if you need further assistance – simply create a new topic.
Best regards,
GünterAdded:
Keep an eye on the changelog in case we might add a theme option to replace the add_theme_support in a future release.
November 22, 2021 at 1:47 pm in reply to: Archive (especially tag archive) in grid layout with featured image #1329954Hi,
would be nicer to have a snippet solution.
Did you see filter ‘avf_post_featured_image_link’ around line 100 of loop-index.php?
Best regards,
GünterNovember 22, 2021 at 1:23 pm in reply to: Cross-Origin Request Blocked: Font loading blocked on English WPML #1329948Hi,
I think I found the problem. When creating the merged files we change relative urls in enfold.css to absolute urls.
I added to config-templatebuilder\avia-template-builder\php\class-asset-manager.php line 677:
/** * e.g. WPML needs relative paths when using directories for languages * * @since 4.8.7.2 */ if( current_theme_supports( 'custom_uploaded_fonts_relative_url' ) ) { return $content; }
Now after merging files you find in avia-merged-styles-974f232210bc9596190f218f629b8b53—619b7b9d06faf.css the relative urls:
.... @font-face{ font-family:'poppins'; src:url('/wp-content/uploads/avia_fonts/type_fonts/poppins/poppins-black.ttf') format('truetype'); font-style:normal; font-weight:900; ont-display:auto } @font-face{ font-family:'poppins'; src:url('/wp-content/uploads/avia_fonts/type_fonts/poppins/poppins-blackitalic.ttf') format('truetype'); font-style:italic; font-weight:900; font-display:auto } ........
Can you check with the other language please.
Best regards,
GünterNovember 21, 2021 at 10:58 am in reply to: Archive (especially tag archive) in grid layout with featured image #1329835Hi,
Thanks for feedback.
Will add a filter to select image size. Will inform you here.
Best regards,
GünterNovember 21, 2021 at 10:53 am in reply to: Cross-Origin Request Blocked: Font loading blocked on English WPML #1329834November 19, 2021 at 12:15 pm in reply to: Archive (especially tag archive) in grid layout with featured image #1329659Hi,
Added at bottom of function.php:
add_filter('avf_blog_style', function($style, $context){ if( 'tag' == $context ) { return 'big'; } }, 10, 2 );
Ancestors Widget für single post hab ich einmal ins dev repo als feature aufgenommen.
Du meinst damit 2 Bereiche:
– Vorherige Posts
– nächste Postsjeweils in den Kategorien des aktuellen Posts.
Best regards,
GünterNovember 19, 2021 at 11:19 am in reply to: Archive (especially tag archive) in grid layout with featured image #1329644Hi,
Zunächst einmal Filter Lösung für ” Tag Archive for: “
Best regards,
GünterNovember 19, 2021 at 9:23 am in reply to: Cross-Origin Request Blocked: Font loading blocked on English WPML #1329634Hi,
Sorry for not mentioning this:
To functions.php add:
add_theme_support( 'custom_uploaded_fonts_relative_url' );
This should activate the condition.
Do not forget to clear cache (if you use a cache plugin).
Edit:
And also save theme options please.
Best regards,
GünterNovember 18, 2021 at 3:57 pm in reply to: Cross-Origin Request Blocked: Font loading blocked on English WPML #1329534Hi,
uploading the font: Theme Options -> Import/Export -> Custom Font Manager
You can upload new fonts or delete already uploaded fonts (and reupload them).
—-
But I added a solution that removes the absolute URL part when creating the file dynamic_avia/enfold(_child).css on the fly.
Please update enfold\framework\php\font-management\class-avia-type-fonts.php with the content of
Around line 988ff you find theme support ‘custom_uploaded_fonts_relative_url’ (and filter ‘avf_custom_uploaded_fonts_url’).
Adding theme support will modify the output in dynamic_avia/enfold(_child).css to e.g.:
@font-face { font-family: 'lato'; src: url('/wp56/wp-content/uploads/avia_fonts/type_fonts/lato/lato-black.ttf') format('truetype'); font-style: normal; font-weight: 900; font-display: auto; } @font-face { font-family: 'lato'; src: url('/wp56/wp-content/uploads/avia_fonts/type_fonts/lato/lato-blackitalic.ttf') format('truetype'); font-style: italic; font-weight: 900; font-display: auto; }
If WPML copies this file (or the merged files) to the other domain and the ttf files are in the same folder location there it should work.
Best regards,
GünterNovember 17, 2021 at 1:19 pm in reply to: Cross-Origin Request Blocked: Font loading blocked on English WPML #1329341Hi,
Currently we store the absolute URL to the ttf files in database when the font is uploaded and reuse this when we create the enfold.css file.
I think the best solution would be to use relative urls in the enfold.css file for the fonts instead of absolute.
In a first step I would suggest to activate this with an add_theme_support( … ).What I would need to do is to add the relative url to our database structure.
Is it possible for you to delete the fonts and upload them again – this would make it easier for me because I do not need to write an extra update routine to manipulate database content.
Best regards,
GünterNovember 15, 2021 at 6:54 pm in reply to: Cross-Origin Request Blocked: Font loading blocked on English WPML #1329125Hi,
Sorry for the problems you have.
My knowledge about setting up WPML sites is not so good. It seem to be a problem in setup of WPML and Enfold.
If I understand it correctly you have a french domain and a seperate english domain.
Do you upload the fonts to french domain only or also to the english domain?
Second thing to check would be if you disable css file merging, save theme options (on both sites) and check the files:
../wp-content/uploads/dynamic_avia/enfold_child.css
in both domains. At the beginning you should find something like:
@font-face { font-family: 'lato'; src: url('https://localhost/wp56/wp-content/uploads/avia_fonts/type_fonts/lato/lato-black.ttf') format('truetype'); font-style: normal; font-weight: 900; font-display: auto; } @font-face { font-family: 'lato'; src: url('https://localhost/wp56/wp-content/uploads/avia_fonts/type_fonts/lato/lato-blackitalic.ttf') format('truetype'); font-style: italic; font-weight: 900; font-display: auto; } .....
It would be interesting to know the value of src: ….
If you have a staging site – can you give us WP admin access and FTP access so I can also see your backend.
It might be necessary that we get in contact with WPML support also to find a solution. So it might be necessary to forward your credentials to them also.Added 16.11.:
=============Could you please create a ticket at WPML support with reference to this thread and that they should pass it to head of compatibility team so we can find a solution.
If you give us the link to this ticket we can also get in touch with him additionally.
Best regards,
Günter- This reply was modified 3 years, 1 month ago by Günter.
November 15, 2021 at 4:01 pm in reply to: Archive (especially tag archive) in grid layout with featured image #1329113Hi,
Sorry for the late reply.
To make it easier for me – do you have links to staging pages where I can see it (and if possible with backend access to see the settings).
Best regards,
GünterHey Tim,
Thank you for sharing your ideas – a great help as always.
I agree – we need to think about updates to WC integration.
I added it to our dev repo to have an eye on it. But we already have a lot in queue there for ALB core improvements. So I cannot give an ETA when we can start with it.
We will add any updates on this to the changelog (or as a preview to https://kriesi.at/support/topic/enfold-upcoming-fixes/
Best regards,
GünterNovember 9, 2021 at 7:07 pm in reply to: Enfold – CSS & Javascript Merging and Compression not working #1328387Hi,
@thinkjarvis
Thanks a lot for this info here.
We also added it to our docu: https://kriesi.at/documentation/enfold/optimization/#performance-compression-is-not-working
Have a great day.
Best regards,
GünterNovember 8, 2021 at 11:52 am in reply to: Error: public_html/sdwo-content/themes/enfold/template-builder.php on line 151 #1328204Hi,
I updated
if(in_array($last_el['tag'], AviaBuilder::$full_el_no_section ))
to
if( is_string( $last_el['tag'] ) && is_array( AviaBuilder::$full_el_no_section ) && in_array( $last_el['tag'], AviaBuilder::$full_el_no_section ) )
in next release. This should fix the problem.
Best regards,
GünterHey Tim,
Thanks for your feedback.
I’ve already been adressed with this notice – see https://kriesi.at/support/topic/error-in-socket-menu-aria-aria-accessability-issue/#post-1327070https://kriesi.at/support/topic/error-in-socket-menu-aria-aria-accessability-issue/#post-1327070
But I have no idea how to remove/solve that.
Best regards,
GünterNovember 4, 2021 at 5:59 pm in reply to: Add file-size and dimensions to Media Library – with sortable file-size column #1327835Hi,
Thanks @Guenni007.
Added it to core – extended code that svg show viewBox content in dimension column.
I added filter ‘avf_media_gallery_sortable_filesize’ ( https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/Images%20and%20Lightbox/avf_media_gallery_sortable_filesize.php ) because you have to “fill” filesize postmeta for all media elements before sorting works correct.
Best regards,
GünterHi,
Thanks for this positive feedback – and I hope everything works as expected.
I have an eye on the sticky mobile menu.
Best regards,
GünterHi,
Thank you for the feedback.
I added this fix to core already (4.8.7.2). So hopefully there should not be any more problems.
Seems to be PHP 8.0.11 related – but we cannot reproduce it (also not on 8.0.12, I’m working on 8.0.0).
Best regards,
GünterNovember 2, 2021 at 6:13 pm in reply to: how setting pagination without "?avia-element-paging=2" #1327510Hi,
This element is not working any longer due to changes since WP 5.5 in routing logic.
I updated the element and it will be part of next version 4.8.7.2.
Meanwhile please replace enfold\config-templatebuilder\avia-shortcodes\page_split.php
with the content of:
Do not forget to make a backup of the original file for a fallback and clear server and browser cache.
If you need help let us know and we can do it for you.
Best regards,
GünterHey andrea_werkhoven,
Thank you for using Enfold and sorry for the problem.
It is a PHP bug on a few client servers.I changed the text string a little – I hope this fixes the problem.
Please update enfold\includes\admin\option_tabs\avia_blog.php with the content of
Do not forget to make a copy of the original file and clear server and browser cache.
If you need help let us know and we can do it for you.
Best regards,
GünterHi,
Updated version:
Can you check please.
You can remove add_theme_support and it should work without your workaround with nextpage.
Best regards,
GünterHi,
Sorry the fix did not work.
As this element is only accessible via add_theme_support we did not get any reports up to now.
I will have to rewrite the complete logic as WP has changed some backend logic in pagination with 5.5.
I will let you know here when it is ready.
Best regards,
GünterHi,
Did you save theme options as well – to force recreating the post css files ?
Can you please create an admin account for us so we can check the backend. You can put it in private content.
Best regards,
GünterHey Jan,
Thanks for digging into this.
First:
Did you see the option:
Theme Options -> Performance -> Show advanced options -> Unique timestamp of merged files and WP object cache bug
Try to select “Fix WP Bug …..”.
Second:
The hash value is created from the filenames that are merged and not from file content (filenames are from wp_enqueue object).
This means whenever you change a merged file content manually you have to save the theme options to invalidate the merged files.
On theme update invalidating is done by default.Hope this helps.
Best regards,
GünterHi,
Sorry for the problems. Will be fixed in next update.
Meanwhile please replace content of enfold\config-templatebuilder\avia-shortcodes\grid_row\cell.php with
Do not forget to make a copy of the original file for a fallback and clear server and browser cache and save theme options to force a rebuild of the post-css files.
If you need help let us know and we can do it for you.
Best regards,
GünterOctober 30, 2021 at 4:24 pm in reply to: Error in Socket Menu Aria ARIA Accessability Issue #1327073Hi,
Glad to hear that you had no problems with the update.
We keep an eye on the accessibility and ARIA – lets see if we get more feedback from other users.
Have a nice weekend.
Best regards,
GünterOctober 30, 2021 at 3:23 pm in reply to: Error in Socket Menu Aria ARIA Accessability Issue #1327070Hi,
I had a look into it.
I added to header menu:
<ul id="avia-menu" role="menu" class="menu av-main-nav">
But this does not solve the problem, in contrary I get the additional message:
Elements with an ARIA [role] that require children to contain a specific [role] are missing some or all of those required children.
But we have a structure:
role=”navigation”
– role=”menu”
— role=”menuitem”I did not dig into the ARIA, but at the moment I have no idea how to solve this or what is wrong.
And also https://www.w3.org/WAI/GL/wiki/Using_ARIA_menus – Example Code at bottom is built in a similar structure.
Best regards,
GünterHi,
Sorry for the late reply – and thank you for reporting this.
I could locate the problem and fix it for most permalink structures.
It should work for yours. Will be part of the next update.Meanwhile please replace enfold\config-templatebuilder\avia-shortcodes\page_split.php
with the content of:
Do not forget to make a backup of the original file for a fallback and clear server and browser cache.
If you need help let us know and we can do it for you.
Best regards,
Günter -
AuthorPosts