Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #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

    #1300263

    Hey 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,
    Ismael

    #1300273

    Dear 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, 6 months ago by Chrilles.
    #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, 6 months ago by Chrilles.
    #1300729

    Hi,

    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,
    Ismael

    #1300762

    OK 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

    #1301075

    Dear Ismael,
    Please have a look into this

    Regards
    Chrilles

    #1301095

    Hi,

    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,
    Ismael

    #1301151

    Dear 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

    #1301287

    Hi,

    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,
    Ismael

    #1301333

    Thanks, 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 odd

    I am looking very much forward to hearing from you.

    regards,

    Chrilles

    • This reply was modified 3 years, 6 months ago by Chrilles.
    #1301449

    Hi!

    – And the multiple
    is still there = the caption to the preview looks very odd

    Looks 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,
    Ismael

    #1301562

    HI 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, 6 months ago by Chrilles.
    #1301877

    Hi,

    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,
    Ismael

    #1302158

    Dear 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

    #1302316

    Hey!

    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!
    Ismael

    #1303384

    OK, thanks. I will just wait for the bug to be fixed then.

    Best,

    Chrilles

    #1303696

    Hi,

    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,
    Ismael

    #1303738

    Hi 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

    #1303961

    Hi,

    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,
    Ismael

    #1303964

    Thanks 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

    #1304316

    Hi,

    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

Viewing 22 posts - 1 through 22 (of 22 total)
  • You must be logged in to reply to this topic.