Skip Navigation

[Resolved] A view block has no css style when inserted in a hook

This support ticket is created 2 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 5 replies, has 2 voices.

Last updated by Luo Yang 2 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#2310545
broken view in element.jpg

You have closed my original tickets, but I want to let you know that the workarounds you suggested do not work... and I want to know if - 15 months later - the issue has moved up anywhere near the top of the development queue.

The Generatepress GP Premium developers say:
"Toolset probably only checks the_content for its blocks, so you would need to ask Toolset how to get it to check for a hooked in Element."

Here are my unresolved tickets:

https://toolset.com/forums/topic/view-block-in-hook-has-lost-css-style-again/#post-2293259

https://toolset.com/forums/topic/view-block-in-hook-has-lost-css-style/

#2311021

Hello,

Which website are we talking about?
Please provide a test site with the same problem, fill below private message box with login details, also point out the problem page URL and view URL, I need a live website to test and debug, thanks

#2318031

Thanks for the details, I am checking it in your website, will update here if find anything

#2318049

You can use the Toolset content template block directly, for example:
Edit the content template "Template for Article new":
hidden link
At the bottom, add a content template block, display the specific content template: related-view

Test it in frontend:
hidden link
It works fine

#2318747

Thanks for your reply. I am aware I can use views within the template area. I want to use a hook to display a view outside below the template area. I guess this is not possible.

#2319141

Toolset Content Template is using WordPress filter the_content hook to display the result, it works only in the post content area.

Is there any special reason that you need to use a hook to display a view outside below the template area?