I am trying to:
Use Toolset Content Template with the WPBakery in Uncode theme. I have disabled Layouts as suggested somewhere in here and I have tried debugging and am getting this:
"Content Template debug: your theme does not provide a valid, dedicated function to render the post content"
Also if I try to engage Bootstrap it throws everything out of whack. Is there a known solution to get this theme to work with Toolset?
Any idea on how to get toolset to work with this theme?
Hello,
I just got this thread.
Please try to follow our document to enable theme support debugging :
https://toolset.com/documentation/user-guides/editing-view-templates/theme-support-for-content-templates/
If you still need assistance for it, please provide a downloadable URL of theme Uncode in below private detail box, I need to test and debug it in my localhost, thanks
Thanks for the details, I am downloading the file, will feedback if there is anything found
Here are what I found:
1) Enable the option " Enable theme support debugging", I see same problem as you mentioned above:
Content Template debug: your theme does not provide a valid, dedicated function to render the post content
So Views content template does not support your theme "Uncode"
2) Currently you can try these:
a) Create a function to render the Views content template, for example, add below codes in your theme/functions.php:
function my_the_content(){
global $post;
$view_id = get_post_meta(get_the_ID(), '_views_template', true);
return render_view_template($view_id, $post);
}
b) Edit your theme files, use above function to render the content, for example, your custom post type is using slug "my-cpt", then you copy theme file single.php from original "Uncode" folder save it into the child theme folder, file name "single-my-cpt.php", edit the codes in it, line 637, from:
<div class="post-body">' . uncode_remove_wpautop($the_content) . '</div>' .
To:
<div class="post-body">' . my_the_content() . '</div>' .
Then test again.
Hi,
I have tried as suggested to no avail. It now is just blank. I think it is related to bootstrap. When I try and load bootstrap from Toolset it breaks everything on the site so I set it to this site does not use bootstrap.
The post is here:
hidden link
Named the single post:
single-release-toolset.php
Any other suggestions?
Thanks
Nevermind, I think I have it working. Still cant use bootstrap which would be great if we could get that to work.....