Skip Navigation

[Resolved] Toolset Blocks messed up Learndash Templates

This support ticket is created 3 years, 6 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: Africa/Casablanca (GMT+01:00)

This topic contains 22 replies, has 2 voices.

Last updated by stephanieK-5 3 years, 6 months ago.

Assisted by: Jamal.

Author
Posts
#2233829

I don't think that could be the issue. I still suspect that this ID attribute is a theme feature that needs to be enabled. Right now, I have also deactivated LearnDash, so the site is only working with the7 theme, but it did not add the ID attribute to the body.

Maybe it is a feature that can be enabled after registering the site. The7 theme support are the best placed to know how to enable this attribute.

#2233965

Hey Jamal,

thank you for the information!

Indeed it's so exhausting to solve that issue, it seems easy but it's not 🙂

From what I found out is that switching the theme on my backend side (in preview mode) would solve the issue. But I know from your sandbox, that the focus mode loads the theme THE7 font settings correctly, so there must be a nasty bug happen on my side somehow somewhere, right? (not coming from caching plugin)

Here is a reply from my theme author, if that helps. He is like crazy that Learndash does not reply to the question, how to add that body id to the focus mode page. Well we will do small steps!

Hello,

Like I said before the id=”the7-body” comes from the The7 header template header-single.php file
hidden link and this file is called by heder.php

But the learn dash does not use these files to display the lesson page, they use their own templates, which do not have this ID
They do not even use the theme header and menu hidden link unlike normal pages
They even have their own logo settings hidden link

and if change the template to Legacy hidden link
There is no font issue because it uses the theme header hidden link

so we need to find out that template file and add the id=”the7-body” to the body tag, so all I am asking is to provide some hints to locate the template file they use to display the lesson page, not sure why it is so difficult for them to understand

I cannot find the core learn plugin in the plugin folder, I can see addons there and am not sure which folder to look for the file
hidden link

So all you have to ask them is which templates are used to display this lesson page hidden link (LearDash 3.0 template) and how to overwrite it from the child theme, leave everything else for now

Regards
Safeer

<b>Reply from the LD forum:</b>

hidden link
And: I think this reply from learndash forum says basically you need to copy lesson.pho to the child theme and change the line:

If you are using focus mode, lesson.php is located in your child-theme/learndash/ld30/ folder.

Edit it in your child-theme and add that class to line #43 after the PHP closing tag and before the closing quotes.

#2234025

Well, that explains why the ID was removed. LearnDash is overwritting the theme's templates with its own, and provides a way to rewrite its templates in the child theme.

At this stage, I am afraid, there is nothing we(Toolset team) can do to help. If you overwrite LearnDash templates on your child theme to add the ID attribute, and it works. Then, Toolset interferes with it, we'll be more than happy to check it further.

Let me know if there is anything else I can do for you.

#2234035

Please check now hidden link

This is the template I have overwritten /dt-the7-child/learndash/ld30/focus/header.php

What do you think might have caused the issue first place? Could a server WordPress crash lead to those kind of bugs? I would like to avoid that in future, maybe with your expertise you have a reply to that :-))))))

Maaaaaan, thank you so much for your time and effort here, I really appreciate your awesome technical advise!

#2234069

Well, it seems that you fixed it. Now, I can see the ID attribute on a course page. Check this screenshot hidden link

I was not able to check the lesson page, as it needs to be logged in. And the previously provided credentials are not working for me anymore.

From the course page source code, it seems that Toolset blocks are activated. So, I guess that Toolset is not interfering at all.

I'll remain at your disposal.

#2234153

Hey Jamal

it seems to solve the issue, yes! I think some of the texts should be bold / blue buttons are not centred, but for the font it did the trick.

You can login again if you like with the same login, could you check if the lesson page runs smooth on your side?

Sometimes it is difficult to find out the source indeed, it may be the theme I think that did not work properly anymore

#2234329

I checked both of the provided URLs on your initial message. Both of them, now, include the id attribute for the body tag:
- hidden link
- hidden link

Aside, this is an interesting article on how to get a page source hidden link
Personally, I prefer the browser tools, and I am used to use Chrome. Read more about it here hidden link

All the best,
Jamal

#2236005

My issue is resolved now. Thank you!