Forum Replies Created
-
AuthorPosts
-
Hi Guenni007,
You’re definitely right, I had made a typo and now it works !Too bad that the theme support recommends to edit the theme while they provide a robust solution :-((
Thanks a lot again,
ChristopheHi Guenni007,
I have already tried to enter this code in functions.php in my child theme, but it doesn’t work :-((Hello Ismael,
Seems that I have not been clear enough. Our need is to keep html tags in excerpts displayed on masonry grids.
We have already edited av-helper-masonry.php in a child theme, this way :
$loop_excerpt = strip_tags( $entry->post_excerpt );
replaced by :
$loop_excerpt = $entry->post_excerpt;It works well on our production site : https://ethiopiatropicaltours.com/ethiopia-tours-history-culture/
However we need to reapply this change for each major release. So we would prefer a robust solution with a filter.
Your change log mentions :
added: filter avf_masonry_loop_entry_content: allows to filter content (e.g. to allow/skip HTML tags)So we would like to knows how to use this filter in order NOT to strip html tags in excerpts, if possible.
Thanks,
ChristopheHello,
I am taking over from a previous wenbmaster.
In fact the above solution does not work (I don’t kown whether it has ever worked),
HTML tags are still stripped : https://test.ethiopiatropicaltours.com/ethiopia-tours-history-culture/Can you please advise how to set up this filter so that HLML tags are not stripped in masonry excerpts ?
Thanks
ChristopheHere is the solution :
add_filter(‘avf_masonry_loop_entry_content’, ‘my_avf_masonry_loop_entry_content’, 10, 2);
function my_avf_masonry_loop_entry_content($loop_excerpt, $entry) {
$loop_excerpt=$entry->post_excerpt;
return $loop_excerpt;
}Great news. I will give you a feedback here.
BérangèreHi Yigit,
I have already implemented this. Via a child theme and not in the parent theme.
It works but requires to check the file for each now release.
A robust solution, with a filter in the child theme would be much appreciated.Best regards
BérangèreHey Yigit,
I have entered this code in functions.php of my child theme and it triggers a critical error.Berangere
For information, I have sorted it out with the above solution but need to check the php file for each new release, whicn is really a hassle.
- This reply was modified 4 years, 11 months ago by caudebert.
Hi Ismael,
I cannot remove these line breaks because are not in the HTML code of my excerpts. They are created by the new Enfold version. I have switched back to the former theme version and no <br> shows in the code.
For example, here is the html code of the tour “Historic North Road”
<p><u>Easy</u> – 10 days, 9 nights</p>
<p>A classical tour of North Ethiopia. Visit the fabulous sites of Axum, Gondar and Lalibela. Enjoy sceneries, nature, endemic animals and the charming Ethiopian people.</p>and see the outcome here at the bottom of the page : https://test.ethiopiatropicaltours.com/
I think that the code change that you have provided above needs to be adapted for the new release.
Cheers
Bérangère- This reply was modified 7 years, 8 months ago by caudebert. Reason: fix typos
Hello Kriesi team,
I have applied the method suggested by Ismael on Feb 16 and it worked. I have been able to apply the codes changes via a child theme.
Unfortunately, I have issues again since I upgraded to Enfold 4.0. As I noticed that “av-helper-masonry.php” has been changed, I reapplied the code changes in my child theme based on the new version.
And now, I have double line breaks, as visible here : https://test.ethiopiatropicaltours.com/ethiopia-tours-history-culture/
It is not an option to remain with the previous version of “av-helper-masonry.php” because sooner of later I will have issues….
Please help,
BérangèreApril 7, 2017 at 7:08 pm in reply to: Enfold Theme…WooCommerce Product Images not showing as of 4-4-17 #774138Hi, I have the same issue.
Product images don’t show with the latest versions of Woo and Enfold.
I have deactivated all plugins : still doesn’t work.
I have switched to my parent theme : still doesn’t work.
I have switched to other themes : Storefront and Flatsome : works.
So it seems that Enfold requires a fix.
BérangèreHello Ismael,
I a extremely frustrated and disappointed by this answer.
Root cause of my issue : The Enfold team’s decision to remove a functionality : hmtl tags in Masonry excerpts.
Unfortunately for me, I have just built for a customer a website which heavily relies on this fonctionality. Have a look at https://ethiopiatropicaltours.com and you’ll understand.
Changing the shortcode in the parent theme is against all recommended WordPress practises and means that the customer will never be able to update the site on her own.
As I mentioned in my previous message, this places me in a very difficult situation with my customer. I can’t leave her alone with that issue, and cannot also not perform additional maintenance or rebuild work for free.
I hope you will be able to provide a workable and sustainable solution.
Bérangère
Hello,
This workaround was working when you implemented it 3 weeks ago, but not any more. I have just updated WP and the theme to the latest versions in my test environment (where you made the change in the child theme) and html markup doesn’t show any more.
I have copied the config-templatebuilder folder to the child theme and re-applied the change at line 436 in av-helper-masonry.php, but it still doesn’t work.
More generally, having a custom version of the masonry shortcode is not a sustainable solution – it requires to test and potentially apply changes at each new version, even with a child theme.
This site is totally dependant on html markup in masonry excerpts, which are used in dozens of pages. I have recommended Enfold to my customer because all its features made it possible to build the site without any changes in the theme’s templates, thus limiting maintenance effort. I have trained my customer to update the site on her own, I just can’t go back to her and tell her that it might not work well due to a custom template.
I am extremely annoyed and hope you will find a solution to restore the previous functionality in the standard version of the theme.
Thanks
Bérangère
Hello Ismael,
I have opened “config-templatebuilder > avia-shortcodes > av-helper-masonry.php”, but dindn’t find the piece of code you are mentioning.
I provide you an FTP access to the test environment so you can have a look, test and change whatever you need.
Thanks
BérangèreHere you are.
It is a test site, feel free to perform any actions needed.FYI, I have tested on the parent theme, with all plugins disabled, unsing standard posts and not CPTs. Same issue.
Thanks !
- This reply was modified 7 years, 11 months ago by caudebert.
Please close,
BérangèreDone, please close !
BérangèreDecember 5, 2016 at 8:07 pm in reply to: RSS links return 404 for portfolio item – on 2 sites #720650Hello Andy,
I have found a solution in the 1st thread by applying the following filter :
add_action(‘wp_head’,’avia_remove_feed’, 1);
function avia_remove_feed(){
if(is_single() && get_post_type() == ‘portfolio’) remove_action( ‘wp_head’, ‘feed_links_extra’, 3 );
}I have checked your demo and there is the same issue : view-source:http://kriesi.at/themes/enfold/portfolio-item/single-portfolio-23-gallery-3/
Maybe you should solve this once for all :-)
Thanks anyway !
Bérangère- This reply was modified 8 years ago by caudebert. Reason: typo
December 1, 2016 at 11:06 pm in reply to: RSS links return 404 for portfolio item – on 2 sites #719415Hello,
I have tried on the 2 sites. Unfortunately it does not change anything.Christophe / Bérangère
October 31, 2016 at 10:13 am in reply to: RSS links return 404 for portfolio item – on 2 sites #706056Hi,
Please find the credentials in the private area.
Christophe / Bérangère
Hi Yigit,
Yes it works, I had already tested, But I still don’t understand the logic behind this.
Why have an h1 for all page titles and NOT on the blog page, especially if your intention is to follow Yoast’s SEO guidelines ?
I have implemented a workaround. In the theme settings I have left “blog page” blank. And then created a normal page with a “blog posts” block in it. Doing this, my blog page has a standard h1 page title with the relevant styling.
I’m not so happy, but don’t feel like fussing further for that. It’s up to,you to decide whether you wish to improve this or not.
I love Enfold, one the best themes in my opinion, but I find the blog not the best part of it….
Cheers
Bérangère- This reply was modified 8 years, 2 months ago by caudebert.
Hello Ismael,
Sorry but I don’t catch your answer. If your intention is to follow Yoast’s guidelines, then the theme should place a h1 tag on the title of the blog page and not a “strong” tag.
Yoast’s guidelines are exactly what I am trying to achieve, it works when using just the parent theme, but not when using a child theme, even an empty one.
Bérangère
September 20, 2016 at 11:48 am in reply to: Enfold with WPML : Fontawesome icons don't display #689075Hello Ismael,
Yes the change in the .htaccess has been done in the relevant domain.
In parallel I have reinitialised the .htaccess file, re-entered the lines for the CORS fix, and then deleted and reinstall all plugins which write into the .htaccess file (WP Rocket, Wordfence, Move Login) and now IT WORKS.
I have applied the same method to the live site and it also works.
Problem solved : Thanks for the support !
Bérangère
Hello again,
I have made some additional testing.As the issue happens only with the child theme, I have removed the content of my child theme’s functions.php and style.css. The issue is still there.
So it seems that the tag of the blog page title is not the same when you use a child theme or not.
Hope this helps.
Bérangère
.
Hi Rikard,
as I said above, you can see the error on the title of the page even if there are no posts.
The word “blog” has a strong tag and not a h1 tag.
Regards
BérangèreOh sorry there is a “move login” plugin on this site, you will find the admin url in the private area.
There are no blog posts for the moment but you can see the issue on title of the blog page :
https://ethiopiatropicaltours.com/blog/, the word “blog” has a strong tag instead of a h1 tag.Let me know if you need more information,
BérangèreSeptember 16, 2016 at 2:54 pm in reply to: Enfold with WPML : Fontawesome icons don't display #687535Hi Yigit,
I have made the change in the .htaccess file, it works now for the fontawesome icon but not for the one from flaticon :
https://testfr.ethiopiatropicaltours.com/test-icon/I have added icons from Flaticon ollowing those instructions :
and it works perfectly except with WPML multi-domains.
FYI : I have updated the test site to the latest Enfold version. No plugins (except WPML) and no child theme currently activated on the test site.
Bérangère
- This reply was modified 8 years, 3 months ago by caudebert.
September 15, 2016 at 6:42 pm in reply to: Enfold with WPML : Fontawesome icons don't display #687051Hi Yigit,
sorry I provided the links to the home page and not to the test post.
Here you are :
French version : https://testfr.ethiopiatropicaltours.com/test-icon-fr/
English version : https://test.ethiopiatropicaltours.com/test-icon/Bérangère
September 6, 2016 at 4:21 pm in reply to: Enfold WPML language switcher : hide unavailable languages ? #682703Thanks a lot Josue, it works like a charm.
Best regards
Bérangère -
AuthorPosts