Skip Navigation

[Resolved] Can’t Set Parent for Existing Layouts

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue her is that the user has a Layout but is unable to assign it a parent layout.

Solution:

Updating to the latest version of Layouts resolved this issue for the user. IF you are still experiencing it please re-create the Layout.

This support ticket is created 6 years, 4 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 12 replies, has 2 voices.

Last updated by Shane 6 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#922788
Screen Shot 2018-07-10 at 12.03.36.png
Screen Shot 2018-07-10 at 12.01.26.png

I am trying to:
Set parent layout for existing layouts

I expected to see:
"Set parent layout" button in the existing layout's hierarchy setting

Instead, I got:
"This layout displays in 'the content' area
If you want to design layouts for the entire page, you need to integrate Layouts into the theme"
without any option to set a parent for it.

Complete description:

I have previously created several layouts and decided to create one parent layout for them.

I created the parent layout named "Header & Footer", inserted a child layout cell, set it as a default parent layout. In the "Theme Options" metabox, I leave the "I will assign this layout to content later" option selected.

Next I edited an existing layout named "Home", expecting to see "Set parent layout" button in the hierarchy setting. Instead, I only see
"This layout displays in 'the content' area
If you want to design layouts for the entire page, you need to integrate Layouts into the theme"

#923079

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

Would you mind providing me with admin access to the site so that I can check on this for you ?

Thanks,
Shane

#923743

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

I created a new layout and was able to set the parent.
hidden link

Could you try this and let me know if it works for you.

Thanks,
Shane

#923839

Can you set parent for the existing "Home" layout?

#923939

I still need help to set parent for existing layouts, not the newly-created ones.

#924148

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screen Shot 2018-07-12 at 9.17.34 AM.png

Hello,

I'm not sure why the existing ones are not being able to assign to the parent but what you can do is to copy the old layout into a new one.

Click this button on your old layout, see screenshot

Then copy the information in that window. Create a new layout and click that same button and paste that new information there.

It should copy over the layout.

Please let me know if this helps.
Thanks,
Shane

#924463
toolset-layout.PNG

I was about to try your recommendation when I notice there are updates for some Toolset plugins.

Unfortunately, latest updates broke the plugin's UI. I have empty Layouts admin page (please see screenshot)

#924753

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Haryono,

Could you temporarily disable all your non-toolset plugins and see if this resolves the issue?

I'm trying to ensure that there are no plugin conflicts.

Thanks,
Shane

#924759
Screen Shot 2018-07-13 at 22.20.10.png

This is weird. I tried again on my laptop at home and the Layouts UI works just fine, sort of.

It shows tabbed sections as expected. However, clicking the "Templates for Archives" tab does not display the list and the spinner next to the "Apply" button won't stop spinning.

I checked the browser's console and see a Javascript error.

FYI, all non-Types plugins and browser extensions are disabled.

#924810
Screen Shot 2018-07-13 at 23.13.47.png
Screen Shot 2018-07-13 at 23.02.43.png

From what I understand, the error arise when toLowerCase() method is used on a 'null' value.

Looking at the admin-ajax response, there is one Layout entry with ID 155 that has 'null' post_title.

However, I cannot find any posts with that ID in the wp_posts table.

#924903

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Haryono,

I actually logged in and checked this on my pc and it worked fine on my end, i'm not seeing any errors in the console. Were you able to fix this ?

Thanks,
Shane

#948907
layout-2.PNG
layout-1.PNG

Hi, Shane. Sorry for the late reply.

I dirty-hacked the plugin to exclude posts with 'null' title. I know I should not make any modification on the plugin's codes, but I really need a quick way to be able to see the Layouts list.

Anyway, I tried your recommendation, creating new layouts and copy-paste the the codes from old layouts. It works. However, they could not completely unassigned. I unchecked all usages but still left with "Auto draft", making them unable to be deleted. Some even have "Undefined taxonomy archives" on their usages.

I think I'm going to start fresh, reinstalling everything, even WordPress. Had enough headache with old post types and taxonomies.

#949240

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Haryono,

Sorry I couldn't be much more help on this one but if there is anything still relating to this issue that you want some help with please let me know.

Thanks,
Shane