-
AuthorPosts
-
July 22, 2020 at 2:50 pm #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!
July 27, 2020 at 11:44 am #1233485Hey 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,
IsmaelJuly 27, 2020 at 6:46 pm #1233556Hi 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!
August 2, 2020 at 5:49 pm #1234654Hi,
Sorry for the late reply, I believe you are looking for this snippet. Please let us know if this helps.Best regards,
MikeAugust 24, 2020 at 1:23 pm #1240356Hi Mike
Thanks for the snippet, we entered it but nothing changed. Could you take a look, please?
Thanks!
August 24, 2020 at 2:25 pm #1240371Hi,
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,
MikeAugust 26, 2020 at 11:22 am #1240888Hi 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.
August 26, 2020 at 11:27 am #1240889By 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.
August 28, 2020 at 1:20 pm #1241571Hi,
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,
MikeAugust 30, 2020 at 11:36 pm #1242014Hi,
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,
MikeSeptember 1, 2020 at 3:10 pm #1242531Hi 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 :)
September 3, 2020 at 2:12 pm #1243097Hi,
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,
MikeSeptember 3, 2020 at 3:53 pm #1243132Hi 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…
September 3, 2020 at 3:59 pm #1243134FYI – 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.
September 4, 2020 at 2:12 pm #1243353Hi,
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,
MikeSeptember 4, 2020 at 2:53 pm #1243390Hi Mike
That’s better, thanks! But still on the individual page of a horse, the same issue.
September 5, 2020 at 10:20 am #1243542Hi, could someone give me an answer asap? This client is waiting to launch the website 😊
September 5, 2020 at 12:31 pm #1243572September 6, 2020 at 9:07 am #1243700Hi,
Please check the private content.
September 6, 2020 at 3:08 pm #1243743Hi,
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. ;)
September 6, 2020 at 10:35 pm #1243786Hi,
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,
MikeSeptember 6, 2020 at 10:46 pm #1243787Hi 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.
September 6, 2020 at 11:03 pm #1243789Hi,
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.
Best regards,
MikeSeptember 6, 2020 at 11:06 pm #1243790Ok 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!
September 6, 2020 at 11:19 pm #1243791Nope, we still have a problem. I can’t see the selected image on the single paarden page now.
September 6, 2020 at 11:22 pm #1243792 -
AuthorPosts
- You must be logged in to reply to this topic.