Skip Navigation

[Resolved] The theme Uncode does not play nice with Toolset

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by chrisC-25 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#629413

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?

#631091

Any idea on how to get toolset to work with this theme?

#632183

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

#637518

Thanks for the details, I am downloading the file, will feedback if there is anything found

#637522

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.

#873080

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

#873997

Nevermind, I think I have it working. Still cant use bootstrap which would be great if we could get that to work.....