Forum Replies Created
-
AuthorPosts
-
March 30, 2021 at 2:42 pm in reply to: Custom Element Templates – Default sort order in ALB Tab #1291369
Hey M1000000,
Sorry for the late reply – but I was tagged for this topic today.
At the moment there is no way out of the box.
If you add to your functions.php file (in child theme):
add_theme_support( 'show_advanced_custom_element_options' );
in theme options – Custom Element tab you find a checkbox “Show advanced options” and there you find an option Custom Element Shortcode Buttons where you can select to group the custom elements similar to the normal elements.
If you have programming skills:
enfold\config-templatebuilder\avia-template-builder\php\element-templates.class.php line 2283:
usort( $tab, array( $this, 'sortByOrder' ) );
is the place where the default sort order is created in $tab.
We can add a filter here in the next release if this helps you.
Best regards,
GünterHi,
Thank you for bringing this up.
I added an issue to our dev repo and will have a look into it asap.
Best regards,
GünterHi,
Your welcome. If you need any futher assistance feel free to come back.
Enjoy the theme and have a nice day.
Best regards,
GünterHi,
Thank you for your feedback. We will keep this topic open. Have a great day.
Best regards,
GünterHi,
I tried to reproduce the problem on my dev server. Using WPML’s Advanced Translation Editor I’m not able to reproduce the problem.
In my opinion it is a problem with the classic translation editor (which as far as I heard will be deprecated in future) and switching around with the editors in the different languages.
I would suggest that you try the Advanced Translation Editor, only edit the german language and translate only in the provided popup fields and do not open the translated post in an editor.
WPML provides good support also for Enfold and if you have problems/questions in using WPML.As a first step I would suggest that you open a ticket at WPML – and describe the problem and provide your video.
In case you do not find a solution to your problem with the regular support staff please come back with the link to your support thread there and we will contact the compatibility team directly to find a solution for your problem.
Best regards,
GünterHi,
Please see line:
let item = $(<code>#top .av-subnav-menu a[href*=\'${entry}\']
);In my opinion
${entry}
should be replaced with:
" + entry + "
Best regards,
GünterHi,
You need to query the image title in your function:
$title = get_the_title( $id );
And i would not rebuild the html code in this filter but just insert the title attribute. My final solution would be:
function html_insert_image( $html, $id, $caption, $title, $align, $url, $size, $alt ) { $html = str_replace( '<img ', '<img title="' . esc_attr( get_the_title( $id ) ) . '" ' , $html ); return $html; } add_filter( 'image_send_to_editor', 'html_insert_image', 10, 8 );
Best regards,
GünterHi,
Glad to hear it is working for you now.
Are you talking about bbPress on your site?
bbPress has own post type forum, topic, reply in wp_posts database.
Check for a plugin setting to limit time of posts in past – just an idea.
Best regards,
GünterHi,
Good catch with the filter.
I think we should add the filter to core that we add the title to new added images (with an option in SEO tab to disable this).
But for existing images in already existing pages (where only the img tag html exists and probably no reference to the attachment id ) it will be difficult.
Best regards,
GünterHi,
Sorry, but no hint for that problem.
Instead of hacking tinyMCE – wouldn’t it be easier to switch to text mode and add the attributes manually to HTML? Depends how often you need it.
But thanks in advance for reporting back when you have found some solution.
Have a great day.
Best regards,
GünterHi,
Most Theme options are stored in a single array in your database table wp_options.
You can query it with:
SELECT * FROM 'wp_options' WHERE 'option_name' like 'avia_options_%'
There are a few other options but that are mostly e.g. only key for Google Maps, …
For import of demos we only use avia_options_[theme name]
Hope this helps you.
Best regards,
GünterHi,
Thanks for your feedback – yes, I restructured the js file a bit as the last solution was not really good and might have caused problems when more than 1 grid was on the page.
Have a great day.
Best regards,
GünterHi,
Thanks for coming back.
We have it in our dev repo – but at the moment we are not able to give a timeline when we are going to start to work on it.
Best regards,
GünterHi,
I added an option where you can activate this feature: “Mobile Flip Box Close Behaviour”
Please update enfold\config-templatebuilder\avia-shortcodes\icongrid\icongrid.js + php with:
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_8_1/icongrid/icongrid.php
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_8_1/icongrid/icongrid.jsDo not forget to clear server and browser cache.
Will be part of the next update.
Best regards,
GünterHi,
The “media” button in tinyMCE is standard WP. Actually a WP bug I would say.
When you switch from visual to text mode you see the generated HTML by WP containing the alt but not the title. Enfold does not hook in this.
Only way I see is try to add the image shortcode manually – but keep an eye on the layout, that it gets not broken.
Best regards,
GünterHi Vera,
Glad you got it to work.
Please update to 4.8.1 as soon as possible – there is a small bug in 4.8 when saving pages that might break layout in frontend adding unwanted br tags.
Best regards,
GünterHi,
I had a look into your problem.
On my dev server with Enfold 4.8.1 I’m not able to reproduce the problem. I have demo Enfold 2017 imported.
You made several changes – I tried to reproduce them on my dev server also – but even with the filter avf_post_nav_settings from your functions.php and adding and removing
$avia_post_nav = avia_post_nav();
from template-builder.php and footer.php i can see the post nav.
There must be something other causing the problems.
I would suggest you set up a staging site with 4.8.1, import Enfold 2017 demo and check by yourself. Then make your changes and check, until it breaks.
If nothing breaks then you can copy the files to your other server and check (keep a copy of your other files).
Best regards,
GünterMarch 13, 2021 at 4:23 pm in reply to: Overwritten CSS files after enabling CSS file merging and compression #1288030Hi phouthuijzen,
There had been a invalid character at the beginning of styles.css – opening it in WP theme editor showed a red point. Removing this it is working now.
Best regards,
GünterHey THP,
Thanks for reporting this.
I checked all elements that use class=’avia-slideshow-arrows’ and added
aria-hidden="true" tabindex="-1"
I hope this fixes the problems. Will be in next release 4.8.2.
If you encounter any more problems let us know please.
Have a nice weekend.Best regards,
GünterHey Guenter,
If I follow your idea it would be necessary to extend the metadata of an image (in WP media popup attachment details sidebar) with:
- Lightbox Title
- Lightbox Description
and add the metadata info to all ALB img tags (like alt, title, caption, desc, lightbox-title, lightbox-desc) ?
Best regards,
GünterHey Guenter,
Sorry for the late reply – but I was tagged to this yesterday.
I did not test, but you can try to add class “noLightbox” to the image.
This should exclude the image from our default binding to magnificPopup and you can add your magnificPopup.
Best regards,
GünterHi!
As mentioned above – background images have no alt.attribute.
Please check the following articles:
http://christianheilmann.com/2009/02/25/so-how-do-you-add-alternative-text-to-background-images/
https://stackoverflow.com/questions/4216035/css-background-image-alt-attribute
https://stackoverflow.com/questions/48913759/how-to-add-alt-text-to-background-images-making-background-images-accessibleThere are workarounds, but they increase the size of the page – which might also stand in opposite of having small loading times.
I have opened an issue in our dev repo and we will discuss it.
Best regards,
GünterHi,
Sorry once again for the troubles.
Glad we could help you fix the problem.
Have a great day and enjoy the theme. Feel free to come back when you need further assistance.
Best regards,
GünterMarch 8, 2021 at 4:01 pm in reply to: After ALB Custom Elements activated –> SQL queries jumps from 20 –> 200 #1286473Hi,
Thanks for your interest in the new feature and reporting this.
Checking the code I found an unnecessary query for the frontend. Removing this the amount of queries dropped for me on a testpage.
As a CET is stored in a post, there is a little overhead, depending on the amount of different CET used on a page ( we cache already queried CET ).
If you want to check:
Replace enfold\config-templatebuilder\avia-template-builder\php\element-templates.class.php with the content of:
If you use WPML you also need to replace enfold\config-wpml\class-avia-wpml.php with
Do not forget to make a backup of the original files for a fallback and clear server and browser cache.
Best regards,
GünterHi,
With 4.8 there were a lot of changes necessary concerning the custom elements – Hope you managed your changes.
I will close this topic – have a nice day.
Best regards,
Günter -
AuthorPosts