Site logo

Archived topic

Sidebar setting not returning to Default

23 replies · Started by Matthew on October 17, 2019

Viewing posts 1–15 of 24

In the Customizer I have Layout > Sidebars set to,

Sidebar Layout: Content (no sidebars)
Blog Sidebar Layout: Content/Sidebar
Single Post Sidebar Layout: Content/Sidebar

On the post edit screen for a sample post (custom post type) I used the GP 'Layout' meta box and set the radio button from Default to Content (no sidebars). Then I refreshed the front facing post screen and the sidebar disappeared, which is correct.

Back to the post edit screen and select the Layout setting back to Default. When I refreshed the post screen, the sidebar didn't return. I think it should return the default setting under GP's customizer, i.e Content/Sidebar (for Single Post Sidebar Layout)?

Note that I have a Layout Element created earlier as Tom recommended and I followed here:
https://generatepress.com/forums/topic/sidebars-have-come-up-on-attachment-pages/

It is set to Content (no sidebars) with display rules as Media | All Media. This is not the custom post type concerned.

Thanks,

Hi there,

could you link me to the Post where the sidebar should be visible?
You can edit your original topic and use the Site URL field to share privately.

Hi David,

After the hyphen in the Site URL field is a password you need to insert for the Hide my Site plugin.

After returning to the sample post in admin screen I see that the GP ‘Layout’ meta box resets itself to Content (no sidebars), after I had set it on Default before saving the post. So it's reverting to a global setting automatically it would seem.

Thanks!

Does the sidebar re-appear if you change the Customizer > Sidebar Layout: Content (no sidebars) to Sidebar Layout: Content / Sidebar ?

When I did that it had no effect on the custom post type posts. They are still without a sidebar. For other areas of my site i.e. pages it brought the sidebar on

Do you have any Layout Elements effecting the sidebar ?

pls see my initial post earlier,

Note that I have a Layout Element created earlier as Tom recommended and I followed here:
https://generatepress.com/forums/topic/sidebars-have-come-up-on-attachment-pages/

It is set to Content (no sidebars) with display rules as Media | All Media. This is not the custom post type concerned.

I set this up after Tom suggested and it worked great to remove the sidebar on my attachment page. To re-iterate, the only settings I made for this layout element were:

on Sidebar tab: set to Content (no sidebars)
on Display Rules: set to Media > All Media (i.e. the two select list drop-downs)

All other settings for the layout element were default.

Also I moved this layout element to the trash to see if might be affecting things, but there was no improvement. Should I delete it permanently and try?

With GP Customizer set on Content/Sidebar under Single Post Sidebar Layout

On Standard Posts this is what happens.

Default radio selection for GP layout meta box is on Default
https://drive.google.com/open?id=1DNNwYIozEaAtpd81BGA-FLO_r_JjoHaS
front facing post is displaying right sidebar

Set radio selection for GP layout meta box to Content (no sidebars)
https://drive.google.com/open?id=1tb53DMX0ZtiLYYU8AburzNEN52DXnZg-
front facing post is NOT displaying right sidebar now

Set radio selection for GP layout meta box back to Default. Note in the capture the setting becomes Content/Sidebar once I re-load the admin post screen
https://drive.google.com/open?id=1kClIVgXWsuWtuMO65qADNJOdsxS-GsS_
front facing post is displaying right sidebar again

On Custom Post Type this is what happens.

Default radio selection for GP layout meta box is on Default
https://drive.google.com/open?id=1axL94cDxB7rWm_BzS5UfY3v_5aCb41uy
front facing post is displaying right sidebar

Set radio selection for GP layout meta box to Content (no sidebars)
https://drive.google.com/open?id=1yUqcMHMNlqeFJk6ajH5CEX8xEpS7R4jx
front facing post is NOT displaying right sidebar now

Set radio selection for GP layout meta box back to Default. Note in the capture the setting becomes Content (no sidebars) once I re-load the admin post screen
https://drive.google.com/open?id=1qzVZ6ti148GOJOKPZM6K-iv9O8eEo_Jc
front facing post is NOT displaying right sidebar again.

So that is the difference, standard posts it is working while custom post type is not; there is a problem.

Any ideas?

thanks,

Would you be able to provide us with Temporary Admin access so we can take a look.
You can send the login via the Account Issue form:

https://generatepress.com/contact/

Please add the URL of this topic to the form so we can track.

Hi David,

I am going to add a new user for this. Do I make the role 'Administrator'

And the email 'wordpress@generatepress.com' should do?

thanks

Note in the capture the setting becomes Content (no sidebars) once I re-load the admin post screen

This tells me that the option is failing to save, which would explain why the frontend isn't working.

Does this continue to happen even if you deactivate your other plugins? I wonder if one of them is causing Gutenberg not to save.

I've deactivated all plugins and removed all code from my site-specific plug-in to see if there's anything in that that might be conflicting. All that's left is the code of the actual custom post type (that's in my site-specific plug-in), which is pretty standard code that registers the custom post type and taxonomy.

Can you confirm that the GP layout metabox on specific posts is compatible with custom posts? Would you be ok to look at my site-specific plug-in briefly, it's a quite small and basic code in that for the custom post you would be familiar with. Hopefully anything wrong would stick out

thanks,

One thing to check: When registering your custom post type, can you make sure custom-fields is one of the items in the supports field?

Like this: https://stackoverflow.com/a/55729362

This archived topic is closed to new replies.