-
AuthorPosts
-
February 12, 2020 at 10:12 am #1183814
Hello, In 2015 I opened a thread https://kriesi.at/support/topic/enfold-magazine-post-with-link-format-does-run/#post-435156.
The moderator has closed the thread but he doesn´t give the solution. Also I do the same question here https://kriesi.at/support/topic/button-target-blank-not-run-magazine-thumbail-hidden-not-run/The moderator recomended this:
The Blog Posts element has a list layout that looks like the magazine element and it supports the link post format. Have you tried it? Insert a Blog Posts element and select one of the 3 last List Style options in the Blog Style settings. If you need more info, please open a new thread/ticket. We’ll close this one for now.
Well, It is not the same, when you use the 3 last List Style options you can’t see the image. Please, any solution?
Thank you so much!
February 15, 2020 at 9:53 pm #1184861Hey analidia,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
https://share.getcloudapp.com/BluBgG6g The link post format is showing up in the magazine on my end.
Best regards,
VictoriaFebruary 17, 2020 at 6:32 pm #1185344I send you again.
thanks!
February 17, 2020 at 8:44 pm #1185408Hi analidia,
https://share.getcloudapp.com/JruWzWxr The link post shows up in the magazine and shows the thumb. Can you please tell me in more detail what is not working here now?
Could you please attach some screenshots of the issue?
Best regards,
VictoriaFebruary 19, 2020 at 2:16 pm #1186050Hi Victoria, the the link is to google, it’s doesn’t run.
Thanks!- This reply was modified 4 years, 10 months ago by analidia.
February 20, 2020 at 1:47 pm #1186352I send you a image
February 20, 2020 at 1:48 pm #1186353Hello, In 2015 I opened a thread https://kriesi.at/support/topic/enfold-magazine-post-with-link-format-does-run/#post-435156.
The moderator has closed the thread but he doesn´t give the solution. Also I do the same question here https://kriesi.at/support/topic/button-target-blank-not-run-magazine-thumbail-hidden-not-run/The moderator recomended this:
The Blog Posts element has a list layout that looks like the magazine element and it supports the link post format. Have you tried it? Insert a Blog Posts element and select one of the 3 last List Style options in the Blog Style settings. If you need more info, please open a new thread/ticket. We’ll close this one for now.
Well, It is not the same, when you use the 3 last List Style options you can’t see the image. Please, any solution?
Thank you so much!
February 20, 2020 at 1:51 pm #1186355I need a solution in “magazine” because the last list style is not the same.
Thank you.February 20, 2020 at 1:53 pm #1186357You can provide the text to insert in functions.php and also the archive magazine.php to put in child theme.
Thank you!
February 20, 2020 at 6:05 pm #1186435February 21, 2020 at 10:40 am #1186653Hello Victoria, as I told in 2015 and now this is a temporaly solution because when you update again it breaks. I don’t know why you don`t give solution for this problem. If I put a “magazine” an I insert a format link post I think that it’s run… but not.
Any solution?
Please, can you provide the text to insert in child theme for functions.php and also the archive magazine.php to put in child theme?Thank you!
February 24, 2020 at 8:38 pm #1187491This is critical for us, too. We need this to work again with the Magazine format (need the filtering, tabs available).
This is what we previously had in our CHILD functions file. What should we change it to so it works now?
function avia_custom_link_content_filter($content) { //retrieve the link for the post $link = ""; $pattern1 = '$^\b(https?|ftp|file)://[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|]$i'; $pattern2 = "!^\<a.+?<\/a>!"; $pattern3 = "!\<a.+?<\/a>!"; //if the url is at the begnning of the content extract it preg_match($pattern1, $content , $link); return $link[0]; }
February 25, 2020 at 7:19 am #1187595Hi,
Did you edit the magazine.php file as well? You have to apply that function directly in the template file. Please review the following thread.
// https://kriesi.at/support/topic/enfold-magazine-post-with-link-format-does-run/#post-1003883
Best regards,
IsmaelFebruary 25, 2020 at 12:35 pm #1187666Hi Ismail, this is a loop! it’s always the same answer
Can you give a solution so that functions always although we update.
Please, can you provide the text to insert in child theme for functions.php and also the archive magazine.php to put in child theme?My English is bad and having to explain the same thing over and over again is hard.
Any solution?
February 25, 2020 at 4:20 pm #1187747Correct – we can not put this directly in the template file; it must be added to the child functions theme. Please provide the code that allows us to embed this into functions.php.
February 27, 2020 at 9:45 am #1188350Hi,
Sorry for the confusion. We will forward this thread to our channel and discuss if we should include this feature in the theme. For now, you will have to manually edit the files as suggested in the previous threads.
Thank you for your patience.
Best regards,
IsmaelFebruary 27, 2020 at 10:04 am #1188355Ok, we’ve been waiting for the solution for 5 years. I believe that if the template gives that function and that function does not work as it should, it would have to be fixed without discussing it.
I imagine that now you will close the thread and we will remain the same and maybe in five years we will have to discuss it again.
Or maybe you give the solution and it works as it should.Regards.
February 27, 2020 at 4:48 pm #1188521Really? Why can’t we adjust the functions file, like we did with the previous code? The previous code (that I posted above) used to work. Worked perfectly. Now it sounds like a line of code changed. Can you please provide what that new code looks like, that we can easily drop into our child theme???
Use the Blog Post widget does not work. Post publish date and sorting do not appear, which are critical for listing our links.
February 28, 2020 at 12:18 pm #1188810Hi,
After adding the avia_custom_link_content_filter snippet in the functions.php file, edit the enfold\config-templatebuilder\avia-shortcodes\magazine\magazine.php and look for this code around line 1055:
$link = get_post_meta( $entry->ID ,'_portfolio_custom_link', true ) != '' ? get_post_meta( $entry->ID ,'_portfolio_custom_link_url', true ) : get_permalink( $entry->ID );
Below, add this code:
$link = get_post_format($entry->ID) == 'link' ? avia_custom_link_content_filter($entry->post_content) : $link;
Now, if you want to override the default magazine element in your child theme, please check the following documentation.
// https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb
Add the provided snippet from the documentation in the functions.php file, create a folder called “shortcodes” in the child theme directory, copy the magazine shortcode files from the parent theme, then put it inside the new folder.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.