[Support request] Sidebar setting not returning to Default

Home Forums Support Sidebar setting not returning to Default

  • This topic has 23 replies, 3 voices, and was last updated 11 months ago by David.
Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • #1037031
    Matthew

    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,

    #1037099
    David
    Staff
    Customer Support

    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.

    #1037687
    Matthew

    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!

    #1037947
    David
    Staff
    Customer Support

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

    #1038116
    Matthew

    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

    #1038523
    David
    Staff
    Customer Support

    Do you have any Layout Elements effecting the sidebar ?

    #1039917
    Matthew

    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?

    #1039926
    Matthew

    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,

    #1040106
    David
    Staff
    Customer Support

    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.

    #1040147
    Matthew

    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

    #1040225
    David
    Staff
    Customer Support
    #1040766
    Tom
    Lead Developer
    Lead Developer

    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.

    #1040868
    Matthew

    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,

    #1041542
    Tom
    Lead Developer
    Lead Developer

    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

    #1042939
    Matthew

    Great idea, I thought it would be the reason for sure, but no!

    Using LSCache with caching at the server, done ‘Purge All’, disabled, then deactivated this plugin. Also cleared all forms of browser cache.

    My CPT,

    https://drive.google.com/file/d/1eix3gvw4s0RZvsZhjZRfxmzKQwV9nGub/view

    Taxonomy (if required)

    https://drive.google.com/file/d/1C1kQDm6wN8bQREShy11LZDG52sIwuwZS/view

    thanks,

Viewing 15 posts - 1 through 15 (of 24 total)
  • You must be logged in to reply to this topic.