Tagged: ,

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1335235

    hi,
    We have a strange bug. On a page (see private content) the masonry shows portfolio items.
    Some items have title and excerpt content and some items only a title (click on TOON MEER (=load more)) to see.
    When our editor removed the content from the excerpt from some portfolio items,the expected behaviour is that the masonry only shows the title of that item.
    But instead the masonry shows the title and part of the content of the portfolio item.
    To set the masonry on only show title is no use, our editor wants to be able to choose for each portfolio item to either show title or show title and excerpt.
    In the private content section you find screencaptures and login.

    thanks,
    Karin

    #1335332

    Hey karinorage,

    Thank you for the inquiry.

    Try to add this code in the functions.php file to make sure that it only renders the excerpt and not the actual post content.

    add_filter("avf_masonry_entry_content", function($content, $entry, $atts) {
        return $entry->post_excerpt;
    }, 10, 3);
    

    Best regards,
    Ismael

    #1335458

    Hi Ismael,

    Thanks for your reply.
    The code makes the masonry rendering only the Title. The post content is gone, but it does not render the excerpt either.

    The weird thing is that when I remove the text from an excerpt field it keeps on showing up in the masonry view.

    For example the word “poëzie”, I removed it from two portfolio items from the excerpt-field but it renders as follows with the next text being the start of the actual post content

    example 1
    <div class=”av-masonry-entry-content entry-content” itemprop=”text”>Poëzie<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    We liepen tussen spiegels…</div>

    and

    example 2
    <div class=”av-masonry-entry-content entry-content” itemprop=”text”>Poëzie<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    De waarheid is een…</div>

    No idea where all the breaks come from either.
    Is it a cache issue?

    thanks,
    Karin

    PS I removed the code you sent, to make the bug visible.

    #1335531

    Hi,

    Thank you for the update.

    We added the filter again and it seems to be working correctly on our end. The excerpt of the posts in the masonry items are not displaying anymore. Please check the screenshot in the private field.

    Best regards,
    Ismael

    #1335578

    Hi Ismail,

    Please notice this was not the issue.
    If the user wants to only use title, she is aware that she can set the masonry to “title only” instead of “show title and excerpt”.
    But she wants to have a choice per portfolio item if she wants to either use Title or Title and excerpt.
    So standard masonry setting should be “show title and excerpt”.

    When the user fills in the excerptfield in a portfolio, the masonry renders normal i.e. it shows Title and in the next line Excerpt.
    The bug is that when the user removes previously added text from the excerptfield.
    The expected rendition would be the masonry be showing the Title without excerpt.
    But instead it shows Title and the word that was previously inserted in the excerpt field plus breaks and part of the post content. (see previous examples 1 and 2)

    thanks,
    Karin

    #1335809

    Hi,

    Thank you for the update.

    We just noticed that the site still contains an older version of the theme (4.8.6.3), which doesn’t contain the filter that we used above. Please make sure to update the theme to version 4.8.8.1. The update should help fix the issue with the excerpt.

    Best regards,
    Ismael

    #1337482

    hi Ismael,

    Sorry for the late response.
    Now we have 2 strange things instead of 1!

    1 – update to 4.8.8.SOLVED however please notice this: the owner has set her Envato in place, we expected that with Theme Options > Theme Update it would be updated to 4.8.8.x, but it said “”There are no updates available. You are already using the latest version!” while still showing 4.8.6.3
    I solved it by a manual upload of the newest version. But is this normal behaviour?

    2 – It looks like the bug has disappeared (without the need of the code you sent)

    3 – but … now the load more button is not working.
    Can you please look into this?

    The login credentials I sent earlier are still the same.

    thanks,
    Karin

    #1337759

    Hi Karin,

    Thanks for contacting us!

    1- Could you please try install Envato Market plugin – https://www.envato.com/lp/market-plugin/ and check your Personal Token with it? That issue usually happens when not all of the required tokens are selected when generating a Personal Token – https://kriesi.at/documentation/enfold/theme-registration/#toggle-id-5

    3- We have reported the issue to our devs. We will share the fix with you as soon as we have it. I attached the previous version of Enfold in private content field in case you would like to downgrade :)

    Best regards,
    Yigit

    #1337804

    Hi Yigit,

    Thanks for your reply and for the previous version, at least now the load more button works.
    But I am feeling we’ve landed in a Kafkaesque situation.

    1) I followed your advise to install the Envato Market plugin. Upon checking the token it gave the following messages:

    Incorrect token permissions, please generate another token or fix the permissions on the existing token.
    Please ensure only the following permissions are enabled:
    View and search Envato sites
    Download your purchased items
    List purchases you’ve made
    Additional Error Details:
    Found too many permissions on token..

    I searched in the Envato Community and the reason for these message appears to be that too many options were checked,

    On another website where I also use Enfold, I deleted the token and created a new one with only the 3 options mentioned in the previous message:

    • View and search Envato sites
    • Download your purchased items
    • List purchases you’ve made.

    This was okayed by the Envato Market plugin, but when I try to validate the token in Enfold options > Update
    it gave these errorcodes

    username Errorcode 403 returned by Envato: Forbidden:
    – code: not_authenticated
    email Errorcode 403 returned by Envato: Forbidden:
    – code: not_authenticated

    It did however update to the newest version. But it is very confusing to say the least.

    2) I hope the devs come up soon with a fix, so we can upgrade again in order to get rid of the bug I started this ticket for.

    thanks,
    Karin

    #1337971

    Hi,

    Thank you for the info.

    1.) Since the update went through regardless of the error, it might be a cache issue or the data hasn’t propagated yet, so the key was temporarily deemed invalid. Let us know if the issue persists.

    2.) Have you updated the theme to version 4.8.9? For the load more button, the code changes in the private field should help.

    Best regards,
    Ismael

    #1338004

    hi Ismael,

    re 1: The envato market plugin still returns these error messages:

    Incorrect token permissions, please generate another token or fix the permissions on the existing token.
    Please ensure only the following permissions are enabled:

    • View and search Envato sites
    • Download your purchased items
    • List purchases you’ve made

    Additional Error Details:
    Found too many permissions on token..
    sale:verify

    Updating with Thema Options > Thema Update is working.
    For me that’s important enough, I don’t see the relevance of having the Envato Market plugin, so I will de-activate it.
    It may be confusing for Enfold users to advise to use the Envato Market plugin as it gives error messages concerning checked boxes in the https://build.envato.com/create-token/ while Enfold advises/requires more boxes to be checked.
    Here’s some info I found: https://forums.envato.com/t/token-error-found-too-many-permissions-on-token/278370

    re.2 : Please advise where exactly to put the php-files. I have upgraded to 4.8.9 and I am using the child-theme

    thanks,
    Karin

    #1338030

    Hi,

    Thank you for the update.

    1.) Do you get the same error when you validate the token in the Enfold > Theme Options > Theme Update panel?

    2.) The shortcode files are located in the config-templatebuilder > aviashortcodes folder. Look for the masonry_entries and the masonry_gallery folders.

    Best regards,
    Ismael

    #1338040

    hi Ismael,

    1) I don’t get an error in the Enfold > Theme Options > Theme Update panel but an error in the Envato Market plugin because more more fields are checked in the https://build.envato.com/create-token besides the

    • View and search Envato sites
    • Download the user’s purchased items
    • List purchases the user has made

    But on a other website where I use the Enfold it is the other way around, I created a token with ONLY

    • View and search Envato sites
    • Download the user’s purchased items
    • List purchases the user has made

    Here the Envato Market plugin gives no error message, but the Enfold > Theme Options > Theme Update panel gives an error upon validation.
    See reply: #1337804

    But please forget this,because this is not why I opened this ticket.

    The real issue is the masonry BUG I started this thread for, which has not been solved!
    The theme is upgraded to the latest version.
    The two masonry.php are put in place, so the load more button is working again.

    But the BUG is still there!

    When I use the code you sent me,

    add_filter("avf_masonry_entry_content", function($content, $entry, $atts) {
        return $entry->post_excerpt;
    }, 10, 3);

    it does not resolve the bug, it merely removes the excerpt everywhere.
    But excerpts must be possible as well, that’s why we put the setting in the masonry on “Show tittle and element”.
    When the owner puts in a text in the excerpts section of a portfolio item, it should appear, and it does.
    But the BUG appears when the owner removes a text from the excerpts section of a portfolio item, see my former posts for screencaptures.
    Please check the screencapture in the private content. The green checked items are correct excerpts, the red crosses are items that had previously added excerpts, that were removed later, but still persist in the masonry with extra breaks and content.

    I am sorry to say, I am using the Enfold themes for quite some customers and quite some years now, but the way this is handled is not very satisfactory.

    thanks,
    Karin

    • This reply was modified 2 years, 9 months ago by karinorage.
    #1338110

    Hi,

    The two masonry.php are put in place, so the load more button is working again.

    We adjusted the code in the functions.php file a bit. It is now displaying the excerpt and not the full content of the masonry item. And only the title displays on items without excerpts.

    This is the updated filter.

    add_filter("avf_masonry_entry_content", function($content, $entry, $atts) {
        $excerpt = get_the_excerpt( $entry["ID"] );
        return $excerpt;
    }, 10, 3);
    

    Best regards,
    Ismael

    #1338282

    Hi Ismael,

    Thank you for the fix!

    Best regards,
    Karin

    #1338379

    Hi,

    You are welcome! Please let us know if you need anything else. We will close this thread for now.

    Have a nice day.

    Best regards,
    Ismael

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Masonry excerpts when deleted show text’ is closed to new replies.