-
AuthorPosts
-
May 12, 2021 at 10:17 am #1299866
Dear support,
On my website, we are using the portfolio items with 8 categories. However, when visiting https://servitize.dk/da/viden/ only these 4 are shown Alle/Podcasts/Praksisguides/Webinar.
First, after using the Load more in the bottom, I get the additional categories – Alle/Artikler/Guidelines/Podcasts/Praksisguides/Reportager/Webinar
I have noticed the following:
– After Load more, the additional items are shown without an image
– When I look at the categories in the portfolio edit mode, I see that Practical guide is listed 2 times – and that does not correspond to the list I see when editing the categories for the portfolio.I am using the latest update of both wp and Enfold. I have also tried to disable all plugins and custom CSS – but with the same result.
Any suggestions?
Best,
Chrilles
May 14, 2021 at 8:39 am #1300263Hey forcetechnology2,
Thank you for the inquiry.
A sort button or category will only display when a post that belongs to that category actually exists or is visible in the page. We can use css to display hiddencategories or sort buttons but nothing will happen when you click on them. This is one of the limitations of the sort option.
.av-masonry-sort .avia_hide_sort { display: inline; }
Best regards,
IsmaelMay 14, 2021 at 9:03 am #1300273Dear Ismael,
This is not a matter of showing empty category names.
All categories contain min one post – but all categories are not listed on the first page load. Only when I click Load more.
AFTER clicking Load more, all respective categories are listed, but the additional post previews loaded on the page are missing images and look out of place.I am talking about an issue in the core functionality here, not a custom CSS hack,
Please have a look again.
best,
Chrilles
- This reply was modified 3 years, 7 months ago by Chrilles.
May 17, 2021 at 9:01 am #1300663… and if I select Podcast, only one podcast is showing. First when I click Load more, then the second podcast is showing. Same issue with Articles.
Ismael, please feel free to hand over this case to someone else if you do not find yourself able to solve this issue. To me, it looks like some basic theme issues. I am looking very much forward to hearing from you.
Best,
Chrilles
- This reply was modified 3 years, 7 months ago by Chrilles.
May 17, 2021 at 1:17 pm #1300729Hi,
This is not a matter of showing empty category names.
Sorry for the delay. I think you misunderstood what we have just said. The single post that belongs to the hidden category may or may not exist on initial load and will only be visible once you load more posts. Only then will the sort button display because the post that belong to that category now exists. Again, this is a limitation of the category sort buttons.
Best regards,
IsmaelMay 17, 2021 at 3:03 pm #1300762OK Ismael, I am not sure I understand, but let’s jump to the next issue.
Why isn’t the thumb nail images showing on posts loaded after clicking Load more?
Best,
Chrilles
May 18, 2021 at 9:30 pm #1301075Dear Ismael,
Please have a look into thisRegards
ChrillesMay 19, 2021 at 4:00 am #1301095Hi,
Why isn’t the thumb nail images showing on posts loaded after clicking Load more?
The images are there but they are being covered by the masonry content. There seems to be a lot br tags in the posts. Example.
<h3 class="av-masonry-entry-title entry-title " itemprop="headline">Sådan vælger du den rigtige servicetype til din forretning</h3> <div class="av-masonry-entry-content entry-content" itemprop="text">ARTIKEL br br br Af Henrik Blach, FORCE Technology, Projektleder,…</div>
Did you intentionally add the br tags? Adding this css code might help but it will remove or hide the br tags.
.av-masonry-entry-content.entry-content br { display: none !important; }
Best regards,
IsmaelMay 19, 2021 at 8:52 am #1301151Dear Ismael,
Thanks for looking into this. Your provides CSS does it look a little better – but it is still not working.I also see a lot of <br> when viewing the thumbnail of the post – but those <br> are NOT present in the text.
And please notice the following.
– Those extra <br> are only on thumbnails visible after clicking on Load more!
– When clicking Load more, the screen is “flickering” indicating some code loops – probably where the extra br are being added.If you are not able to find the problem on the post, in edit mode, please escalate this issue as it seems to be a bug in the theme. No extra CSS should be needed to make the portfolio work.
https://docs.google.com/uc?export=download&id=1Pycp-8cbZgB1adTDdo0koyuiw-c9yheI
Regards,
Chrilles
May 20, 2021 at 4:17 am #1301287Hi,
Thank you for following up.
Looks like the issue only occurs when the loaded post has been created using the Advance Layout Builder (ALB). To fix the issue temporarily, please edit the enfold/config-templatebuilder/avia-shortcodes/av-helper-masonry.php and look for this code around line 561:
$markup = avia_markup_helper( array( 'context' => 'entry_content', 'echo' => false, 'id' => $entry['ID'], 'custom_markup' => $this->atts['custom_markup'] ) ); $items .= "<div class='av-masonry-entry-content entry-content' {$markup}>{$content}</div>";
Replace it with:
$content = strip_tags($content); $markup = avia_markup_helper( array( 'context' => 'entry_content', 'echo' => false, 'id' => $entry['ID'], 'custom_markup' => $this->atts['custom_markup'] ) ); $items .= "<div class='av-masonry-entry-content entry-content' {$markup}>{$content}</div>";
This will remove all the tags in the masonry excerpt. We will forward the issue to our channel.
Another solution is to manually define the excerpt for posts that were created with the ALB.
Best regards,
IsmaelMay 20, 2021 at 8:56 am #1301333Thanks, Ismael again for looking into this.
Unfortunately, it is still not working. Actually, I don’t see any differences at all.– The screen is still freaking flickering when I click Load more
– When I select Podcasts only one preview is shown but there are two podcasts.
– Two categories are not shown at all: Guidelines and Rapportager And two categories are not shown at all.
– And the multiple <br> is still there = the caption to the preview looks very oddI am looking very much forward to hearing from you.
regards,
Chrilles
- This reply was modified 3 years, 7 months ago by Chrilles.
May 20, 2021 at 5:01 pm #1301449Hi!
– And the multiple
is still there = the caption to the preview looks very oddLooks like you have created a copy of the masonry file. Unfortunately, the theme is using that file instead of the file where you added the modification. We edited the copy of masonry file and implemented the changes. This removes the br tags from the excerpt.
– When I select Podcasts only one preview is shown but there are two podcasts.
The other podcast does not show because it is not loaded, yet. You have to load more posts until the other podcast is visible. Again, this is a limitation of the sort button. It can only sort posts that already exist in the page. It cannot dynamically fetch the post from the database and return it in the page if that is what you are expecting. Unfortunately, that is not how the sorting option works.
– The screen is still freaking flickering when I click Load more
I am not really sure why that is happening but you can try this css code.
.avia_loading_icon { display: none !important; }
– Two categories are not shown at all: Guidelines and Rapportager And two categories are not shown at all.
The categories show up when you load more posts.
Best regards,
IsmaelMay 21, 2021 at 9:45 am #1301562HI Ismael,
Thanks for your responses. Now we are getting closer.
I can see the <br> have been removed from the code, but the text-issue under the preview image is still there –
How to solve that?
Another question. Is there a way/CSS to hide only Case from this Alle/Artikler/Case/Guidelines/Podcasts/Praksisguides/Reportager/Viden/Webinar
Regards,
Chrilles
- This reply was modified 3 years, 7 months ago by Chrilles.
May 24, 2021 at 3:33 am #1301877Hi,
Thank you for the update.
Have you tried manually adding excerpts to posts that were created with the advance layout builder? If you cannot find the Excerpt field or box, edit one the ALB posts and enable the Excerpt field from the Screen Options. You can then manually add the excerpt instead of showing the content of the ALB.
We can remove the whitespace and linebreaks with a script but we may get unexpected results such as a missing space between the headline and the actual content.
ARTIKELServitization er en strategi, og en strategi…
Best regards,
IsmaelMay 25, 2021 at 8:11 am #1302158Dear Ismael,
As you can see from my first image (link to image), and I have mentioned a couple of times, this looks like an Enfold bug. Looking at the image, you can see that the issue is 100% related to the functionality of the theme/ALB. Everything above the Load more button looks fine – the issue is only after clicking Load more.
Don’t you agree with that?
I am not sure how to understand your responses. Are you saying this is a bug that will not be looked into by the developers?
Regards,
Chrilles
May 25, 2021 at 9:45 pm #1302316Hey!
Don’t you agree with that?
We are actually offering work arounds, or at least providing suggestions to fix the issue temporarily, while we are trying to figure out what is actually causing the issue. I thought that was how the previous responses are coming.
The issue seems to only occur when the posts are created with the advance layout builder, so manually adding an excerpt and showing that text instead of the actual builder content should fix the issue temporarily.
We will forward the issue to our channel.
Cheers!
IsmaelJune 1, 2021 at 11:14 am #1303384OK, thanks. I will just wait for the bug to be fixed then.
Best,
Chrilles
June 3, 2021 at 5:58 am #1303696Hi,
We added a new filter called avf_masonry_entry_content in the latest version (4.8.3) that should allow processing of the masonry content before returning it. We can use this filter to return a content without the tags and the extra spaces. The filter can be added in the functions.php file.
Example:
add_filter("avf_masonry_entry_content", function($content) { $content = strip_tags(trim($content)); return $content; }, 10, 1);
Let us know if that helps.
Best regards,
IsmaelJune 3, 2021 at 11:07 am #1303738Hi Ismael,
I didn’t help, and WP is on the latest version.
Enfold version:
Theme Updates
No Updates available.
You are running the latest version! (4.8.3)I added the code to the end of the functions.php file for the Enfold child-site.
After that, the site just went blank/white screen. No errors.
I really appreciate your efforts.
Thanks,
Chrilles
June 4, 2021 at 9:21 am #1303961Hi,
Thank you for following up.
The same code works properly on our end. Did you copy it from your email? Please try to copy it directly from the forum to avoid conversion of symbols such as apostrophes.
The previous login token has already expired, so we cannot access the dashboard. Please generate another login token or provide a user account in the private field.
Best regards,
IsmaelJune 4, 2021 at 9:33 am #1303964Thanks a lot Ismael for holding on to this.
I did copy the code from here the blog post (as far as I remember – for the same reason you state)
I have extended the tokin so please feel free to log in and have a look. File Manager is installed so you will be able to see the content of the functions.php file. If you find the error, please let me do the changes :-)
Regards,
Chrilles
June 7, 2021 at 3:04 am #1304316Hi,
We corrected the code in the functions.php file and it seems to be working correctly. The white spaces in the masonry content are now gone including the br tags. If you want to completely remove the content, just replace the filter with this one.
add_filter("avf_masonry_entry_content", function($content) { return ""; }, 10, 1);
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.