Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for gutenberg do_blocks() render issue affecting tutor courses and dashboard pages #358

Closed
wants to merge 2 commits into from

Conversation

abinalexpothen
Copy link

@abinalexpothen abinalexpothen commented Mar 3, 2023

The do_blocks() function has a known bug of missing block css.

In my website, the home page, blog page, etc look like this: image

But when I move to the tutor dashboard or courses page, the navigation block alignment gets broken like below:
image

On reading the tutor code, it was clear that this has to do with the do_blocks rendering issue, for which the known workaround is to assign the return value of do_blocks() to a variable before calling the wp_head().

This code change fixes my issue. Please modify as needed.

Steps to reproduce:

  1. Set the theme to the default wordpress theme that supports full site editing.
  2. Check /courses and /dashboard pages - They will have the alignment broken.

@bernhardkaindl
Copy link

bernhardkaindl commented Jul 30, 2023

@haruncpi @harunollyo @sifat009 Would you review this?

@harunollyo
Copy link
Collaborator

Not followed Contribution Guide

@harunollyo harunollyo closed this Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants