Forum Replies Created
-
AuthorPosts
-
February 25, 2019 at 1:18 pm in reply to: Unable to connect second Language home page when click flag in language switcher #1071268
Hi,
I’ve never been working with PolyLang – but a friend told me that they had tried to stay WPML compatible (using same filters). Maybe they changed something.
I see a WPML comp. grayed – could be they moved that to the PRO version?
Enfold hooks into WPML to keep options seperate for each language. This does not work for Polylang if they moved these filters.
Best regards,
GünterHi,
Sorry for that – we added a comment for testing and this was forgotten to be removed.
As mentioned above it is in file enfold\includes\class-avia-custom-pages.php line 271:
Replace
// return $template;
with
return $template;
or the complete file with
If you need assistance let us know and we will help you.
Best regards,
GünterHey!
public function is_nested_self_closing( $shortcode )
This function has been added to Enfold with introduction of the shortcode parser and is also needed to properly create the shortcode when the modal popup is closed for nested shortcodes.Cheers!
GünterFebruary 22, 2019 at 6:40 pm in reply to: Filtering products not working when using Advanced layout builder on Shop page #1070451Hi,
Thanks for this info.
I will try to find a solution – but it will take a little time. I come back to you if I have a solution.
Best regards,
GünterFebruary 22, 2019 at 4:28 pm in reply to: Don't display image on single post option not available #1070381Hi,
The checkbox has moved with 4.5.4 to a select box in “Layout” metabox below “Header visibility and transparency” selectbox.
Best regards,
GünterHi,
Just uploaded 2 files in avia_logfile directory:
enfold_4.5.4.1.zip is “real” version
enfold_4.5.4.1_log.zip is with logfile output.Could you use the log version on the site I worked on – delete log.txt after install. Hopefully no further messages should come up.
Keep a backup of the 4.5.4 for fallback.
Have a nice weekend and let me know if it works.
Thanks once again for your cooperation.Best regards,
GünterHi,
Glad if it helps you.
Fell free to open a new topic if you need further assistance. Enjoy the theme and have a nice day.
Best regards,
GünterFebruary 22, 2019 at 2:26 pm in reply to: Filtering products not working when using Advanced layout builder on Shop page #1070341Hi,
Sorry for the late reply – I’m currently working to fix a bug.
As said in https://kriesi.at/documentation/enfold/woocommerce-shop/ “Custom WooCommerce Shop Overview with Advanced Layout Editor” this is still a beta feature.
Did you make any changes to files or customizations or only
add add_theme_support( 'avia_custom_shop_page' );
?
Best regards,
GünterHi,
Thanks for your feedback.
It is the REST API call /wp-json/wp/v2/posts/ that still produces the error. I’ve been working on that the last days – turned out to be complex. But I’m currently testing the solution and it seems that I could fix the problem. As soon as I’m ready I upload the version to your server so you can test it.
I hope it will be today. I let you know.
Best regards,
GünterHey!
By the way – if you enable ALB debug mode you have a meta box Enfold Shortcode parser. Select “Check enabled on update” will detect the problem.
Cheers!
GünterHi,
The problem is the generated shortcode when you add a nested element:
[filetype_icon av_uid='av-jsdd4au1' custom_class='' admin_preview_bg=''] [filetype_item title='PSD' icon_bg_color='#4285f4' filetype_color='#ffffff' corner_bg_color='#ffffff' av_uid='av-iipd9'] [filetype_item title='PDF' icon_bg_color='#b02b2c' filetype_color='#ffffff' corner_bg_color='#ffffff' av_uid='av-hl1y5'] [filetype_item title='AI' icon_bg_color='#edae44' filetype_color='#ffffff' corner_bg_color='#ffffff' av_uid='av-8ah71'] [filetype_item title='esd' filetype_color='#ffffff' icon_bg_color='#4ad138' corner_bg_color='#ffffff'][/filetype_item] [/filetype_icon]
The last one (added) is not self closing. This breaks the regex for shortcodes.
Add
public function is_nested_self_closing( $shortcode ) { return true; }
Best regards,
GünterHi,
I added a filter (line 522 – before return) – you have to build the complete output or insert in $output what you like:
/** * @since 4.5.5 * @return string */ $output = apply_filters( 'avf_font_manager_load_font', $output );
A pull request is in our dev repo
Best regards,
GünterHi,
Glad it is working now.
I will close this topic – feel free to open a new one if you need further assistance.
Enjoy the theme and have a nice day.Best regards,
GünterHey!
I checked this file and fixed some more. Here is the updated file (Enfold 4.5.4):
I added a pull request to our dev repo.
Cheers!
GünterHi,
Custom pages are special pages that are excluded from search, sitemap creation, indexing, …. and are not accessible for not logged in users –
return 404.
Therefore I personally think it is no good idea to have a custom 404 page as frontpage. Better is to duplicate the content into an own page.As our theme has to stay compatible with other plugins like WPML and YOAST implementing a solution for that in core would make us problems.
But I added filters to core that allow you to modify the behaviour to your needs.
You find the modified file: https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_5_4/custom404/class-avia-custom-pages.php
If you use WPML you also need: https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_5_4/custom404/config-wpml/config.php
The filters are:
avf_show_inactive_special_pages
avf_404_supress_status_code
avf_forced_reroute_to_404avf_404_redirect_status
avf_maintenance_redirect_statusI added the same changes to our dev repo – so they should become part of the core.
I hope this helps you.
Best regards,
GünterFebruary 19, 2019 at 12:44 pm in reply to: Seeking "In-kind" solution to upgrade to Enfold 4.5.1 #1068910Hey Justin Henson,
If you are using Enfold you must have bought it on Envato Market place. Login with your account and you ahould have access to the updates of Enfold.
Best regards,
GünterFebruary 19, 2019 at 12:40 pm in reply to: Unable to connect second Language home page when click flag in language switcher #1068898Hi,
Thank you for using Enfold.
We try to keep Enfold compatible with as many plugins as possible – but as there are so many plugins around it is not possible to support all of them.
Enfold has a focus on WPML – and this plugin is supported (https://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990?ref=mr4k&gclid=CjwKCAiA767jBRBqEiwAGdAOr9yH7PCyt4HYhTgmi3ScprVYodIPcZ76pg6YF5LIHKQ86ITYTMB0yBoCyjMQAvD_BwE )
Polylang is not in the supported list of plugins. Nevertheless I downloaded it and had a quick look. But I was not able to figure out how to add the flags to the menu.
I’m afraid in this case we are not able to help you. Maybe Polylang changed something ?
Consider to switch to WPML.
Best regards,
GünterHi,
Thanks for reporting this.
Please update line 278 and 279:
$output .= "<li class='language_" . $lang['language_code'] . " $currentlang'><a href='" . esc_url( $lang['url'] ) . "'>"; $output .= " <span class='language_flag'><img title='" . $lang['native_name'] . "' src='". esc_url( $lang['country_flag_url'] ) . "' alt='" . $lang['native_name'] . "' /></span>";
I added a pull request to our dev repo for the next update.
Best regards,
GünterFebruary 19, 2019 at 11:00 am in reply to: Bug report: Improper handling of custom 404 page #1068867Hi,
Thanks for reporting this.
As a first step can you try to update to 4.5.4 – there has been some changing in the logic for 404 and maintenance mode page handling.
But I will open an issue to recheck this also.
Best regards,
GünterFebruary 18, 2019 at 6:21 pm in reply to: Using 'Insert Theme Shortcode' when multiple wysiwyg editors not working #1068522Hi,
I added the fix to a pull request in our dev repo – It should become part of the core.
Best regards,
GünterHi,
I uploaded enfold.zip in the avia_logfile directory – download this file, unzip and update your other sites via FTP.
That file contains the latest fixes not in 4.5.4 – it should work now without notices except for REST API calls – these still produce errors – I’m currently working on this.
Best regards,
GünterHi,
Just seen an error in conjunction with a REST API call (…./wp-json/wp/v2/posts/).
Checking for a fix for that.
Temporary I uploaded the latest version of Enfold including the latest fixes to the avia_logfile directory.
If you want you can update your other sites with that. I will let you know when the REST API problem is solved.Best regards,
GünterHi,
Danke dass Du Enfold verwendest – und dass das Problem gelöst wurde.
Viel Freude mit dem Theme und einen schönen Tag.
Best regards,
GünterHi,
Did you already update to 4.5.4?
There had been some improvements.
If the problem is not solved in the latest version – can we have an admin account to check your settings with YOAST – because I have no problems on my dev server.
Best regards,
GünterHi,
Have a look at https://digwp.com/2012/05/attach-unattached-media-files/
As ths behaviour is a standard WP behaviour – it should not be part of a theme to change this – and the problem is also – you can attacb an image only to one page/post/… What to do with an already attached image?
I will ask Kriesi but I’m sure he does not want to do any changes in core about that.
You can check for plugins (Google: wp plugin attach media to posts).
Best regards,
GünterHi,
I found the bug.
I updated 3 files for you on 1 site:
enfold\includes\loop-index.php
enfold\includes\loop-page.php
enfold\includes\loop-portfolio-single.phpI left the logfile script in enfold\config-templatebuilder\avia-template-builder\php\shortcode-template.class.php.
I deleted the old log files, but I think there should be no more errors coming.
Can you check that everything is displayed as it should.
If we do not see any more log entries you can revert shortcode-template.class.php to the original.
For the other sites please update the three files with the files in this folder:
Thank you for allowing us to use your site – it was a great help.
I also removed the debug mode setting – so the additional textfield is not shown any longer (is part of the debug and shows the shortcodes generated by ALB).
The fix should be in the next update.
Best regards,
GünterHi,
log2.txt shows the problem:
If you look at the first 2 arrays: The second one is the internal shortcode tree that is generated when saving the post. It shows 1 entry.
But the post content has 2 shortcodes: av_masonry_gallery and av_image.I activated the ALB debuging mode – you have a button Show Parser Info – this opens a new window and there you find a tab Shortcode tree. It is correct stored.
I extended the logfile output.
If I copy the post content to my dev environment it does not trigger any error (even with YOAST active).
Did you already try to deactivate the Classic Editor plugin – you should not need it. You have a theme option for that (Theme Options tab).
Best regards,
Günter -
AuthorPosts