Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #1232259

    Hi team Enfold

    I’m having a bit of trouble integrating Toolset into the website of a client. The custom post types are finished, but when editing the layout of ‘paard singel layout’, nothing changes on the front end when viewing the changes. Links and login are provided in the private section.

    I read something about having to integrate a snippet of code to the functions.php file, but some help would be more than welcome.

    Thanks!

    #1233485

    Hey KatrienW,

    We are very sorry for the delay.

    We can’t seem to access the paarden post type and the layout builder even when we’re logged in. It just redirects back to the login page. Could you provide a user account with admin rights? Additional info and assistance from the plugin authors will help.

    Thank you for the inquiry.

    Best regards,
    Ismael

    #1233556

    Hi Ismael

    Strange, when I use your login link to log in as Kriesi, I can open the post type and layout builder. You already have admin rights. Could you give it another try and let me know if it works now?

    Thanks!

    #1234654

    Hi,
    Sorry for the late reply, I believe you are looking for this snippet. Please let us know if this helps.

    Best regards,
    Mike

    #1240356

    Hi Mike

    Thanks for the snippet, we entered it but nothing changed. Could you take a look, please?

    Thanks!

    #1240371

    Hi,
    This is the only snippet I could find, I notice that above the snippet the user posted I think it’s impossible to integrate it in the Toolset Options but later wrote I can choose to open the Avia Layout Architect just as the other post types
    Sorry I do not use the Toolset plugin, so are you able to open the Avia Layout Architect just as the other post types, or are you trying to “integrate the Toolset Options” which may not work?
    Also when you are checking your pages are you publishing or “previewing”? If you are previewing then try publishing first and then view your changes.

    Best regards,
    Mike

    #1240888

    Hi Mike

    No, I cannot open the Avia Layout Architect in the custom post types paarden, vaders or moeders. We are publishing and still not seeing any changes. Maybe the snippets weren’t entered correctly, I’ll check that today. I’ll update you as soon as I find out more.

    #1240889

    By the way, if any of you know a better plugin to display these items (horses with several attributes like age, height, name, gender, …) that is easy for a WP-dummy to use (meaning the client we’re building this website for), please let me know. I tried to convince my employer that you can also achieve this simply with portfolio items, but he is convinced that Toolset is the better option.

    #1241571

    Hi,
    Sorry for the late reply and thanks for your feedback, I have asked the rest of the team to review, perhaps there is something I missed. Thank you for your patience.

    Best regards,
    Mike

    #1242014

    Hi,
    Thank you for your patience, I was directed to an open issue with Toolset, where Toolset says:

    Currently there is a workaround allowing users to proceed anyway with Toolset and Enfold, which is creating a Child Theme and customizing the templates to use such single content rendering function.

    This thread explains it well.
    So, as I understand, Toolset has a file you can add to your child theme that will allow the Toolset content to override the Enfold content for your custom post type. There was some work on a filter, but it seems this doesn’t work fully yet.
    Please try checking with Toolset support for the file to add to a child theme for Enfold, they may have it in a download area.
    Also, it now seems that the link I posted above is not the solution, so please remove it from your site if you added it.

    Best regards,
    Mike

    #1242531

    Hi Mike

    I steered in a completely different direction.
    I installed Custom Post Types UI, created a ‘Paarden’ post type. So far so good. Then I need custom fields like age, gender, name, level, … etc. So I installed ACF, and made a group of fields for the post type Paarden. I set the field group to display on the custom post type ‘Paarden’, and they appear like they should. I also added this code https://kriesi.at/documentation/enfold/intro-to-layout-builder/#alb-for-any-post-type to be able to edit the custom post type Paarden with the Avia Layout Builder.

    BUT

    Now I want to display the values of the ACF fields on the front-end of a Paarden-post. But that doesn’t work. The shortcodes in the ACF documentation don’t work for me, not in the classic editor and also not in de ALB. Also – I added an image element with the ALB in the custom post type, but that also doesn’t appear. Did I do something wrong with the ALB code? Why is nothing showing on the front-end? Please check the private section for links. Help :)

    #1243097

    Hi,
    This sounds like the same overall issue, the custom post type doesn’t show “the_content” on the front end, a filter would be needed, or the theme files would need to be adjusted, as in the case with Toolset.
    To test try checking if your content shows on a “page”, were “the_content” is used, not a “post” or a “custom post type”, if this works then it would show that it is an issue with “the_content”.
    For this issue the dev team writes:
    The Custom Posts uses “WP_Hook::apply_filters” so a filter such as:

    $additional_info = array( ......  )
    $content = apply_filters( 'avf_the_content', $content; $context, $additional_info );

    $context helps to figure out what location and with $additional_info you can render needed additional data.
    Have a look at enfold\config-templatebuilder\avia-template-builder\php\shortcode-template.class.php shortcode_handler_prepare() and enfold\template-builder.php.

    Since you are not using Toolset now please see this thread, but I didn’t find much info on ACF & Custom Post Types UI, most threads point to ACF documentation, but I assume you are fimaular with this.

    While I was researching this I found that the dev team has a new proposal for the Toolset team for “the_content”, Toolset has not replied yet, but I will post here:
    If we add at the beginning of loop-index.php (line 8):

    if( false !== apply_filters( 'avf_replace_content', false, 'includes/loop-index' ) )
    {
    	return;
    }

    With this filter it is possible to replace content (not sidebar and header).

    Best regards,
    Mike

    #1243132

    Hi Mike

    Since it was all getting way too complicated for me, I decided to try one more thing. I installed a catalog plugin (eCommerce Product Catalog for WordPress) to display the horses like catalog items. So far it looks like a decent solution – but nothing shows on the front-end AGAIN when adding a ‘product’ (aka horse). Please see the links in the private section.

    Maybe there’s still a snippet of code in our files that’s messing up the front-end view?

    Thanks again…

    #1243134

    FYI – I tried a different theme and the pages are working with another theme. So it has to be something related to Enfold? I’m not planning on switching themes :) Just trying to figure out what causes this. When I open one of the product pages, or the overview catalog page, the images show up for a fraction of a second but then disappear.

    #1243353

    Hi,
    I checked your new catalog page and the reason the images are not showing is because the link that wraps the images has the position “relative” which leads to a height and width of zero, this css corrects:

    #top.ecommerce-product-catalog .modern-grid-element.grey-box.ic-design a {
    	position: initial !important;
    }

    I added this to your Quick CSS, please clear your browser cache and check.

    Best regards,
    Mike

    #1243390

    Hi Mike

    That’s better, thanks! But still on the individual page of a horse, the same issue.

    #1243542

    Hi, could someone give me an answer asap? This client is waiting to launch the website 😊

    #1243572

    Hi,
    It seems the token login has expired, can you please renew.

    Best regards,
    Mike

    #1243700

    Hi,

    Please check the private content.

    #1243743

    Hi,

    I’m sorry to be a pain about this, but this website has to be ready by tonight. So if anyone can tell me what else I can do to fix this problem, I would be very grateful. My last solution is to switch themes, even though I’m sure that this can be easily fixed and is probably caused by something we did ourselves. :) So no hard feelings whatsoever towards Enfold and the entire team. Just to be clear. ;)

    #1243786

    Hi,
    I tried installing the plugin eCommerce Product Catalog for WordPress and exporting your products to my localhost, I found two issues, one was the css, I adjusted to this:

    #top.ecommerce-product-catalog .modern-grid-element.ic-design a {
    	position: initial !important;
    }
    

    second, the shortcode on your /paarden/ page was inside a text block and was wrapped in a link, I removed and added a code block element with the shortcode, it seems to work now.

    Please clear your browser cache and check.

    Best regards,
    Mike

    #1243787

    Hi Mike

    Please check the private content for what I see on an individual Paarden page .. Nothing. :/

    I could already see the content on the overview page, but the individual test page remains empty.

    #1243789

    Hi,
    Well this is odd, so in my testing, I had created a new page called “Paarden2” for the “Main Catalog Page” option then once the Main Catalog Page & product page was showing and I thought I had it sorted out I returned the setting back to “Paarden” and checked the Main Catalog Page, but I didn’t check the product page.
    So now when I change the setting back to “Paarden2” both work, please check.
    2020-09-06_165617.jpg

    Best regards,
    Mike

    #1243790

    Ok I see it now too! Really weird. I’ll change the permalink to something else than ‘paarden’ then.

    Thank you for all of your help Mike!

    #1243791

    Nope, we still have a problem. I can’t see the selected image on the single paarden page now.

    #1243792

    Hi,
    I have seen something similar once when a category slug was the same as a page, perhaps the issue was like that, anyways I’m glad it is sorted out.
    Unless there is anything else we can assist with on this issue, shall we close this then?

    Best regards,
    Mike

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