Site does not reflect changes to template parts

  • Unknown's avatar

    I have updated my navigation menu in the header and footer template parts, and saved, but when I ‘View’ the site in a new tab the changes are not there. Additionally, if I refresh the page showing my changes the changes are erased. This is after I have pressed the ‘Save’ button, at which stage it is disabled as there is nothing more to change. This page is: https://wordpress.com/site-editor/mywebsite.wordpress.com

    The changes I’m making are:
    1. Removed two links in the header navigation.
    2. Added a navigation widget to the footer and selected the ‘navigation 2’ (the one I want.)

    WP.com: Yes
    Jetpack: No
    Correct account: Yes

    The blog I need help with is: (visible only to moderators and staff)

  • Hi there, which were the links you had intended to remove?

  • Unknown's avatar

    It was the Privacy Policy and Covid pages. I intended to instead add these to the footer template and had ‘navigation 2’ set up ready for that. However, the forte template also does not save my changes.

  • Hey there,

     However, the forte template also does not save my changes.

    Interesting – are you seeing any error messages when making changes at all?

    Many thanks in advance.

  • Unknown's avatar

    I meant footer not forte. No errors I’m afraid

  • Unknown's avatar

    Also when i said “at which stage it is disabled as there is nothing more to change.” I meant “save” not “stage.” Forgive me I’m on my phone and it autocompletes.

  • Hi, no worries, I hear you on autocomplete making things a bit off.

    I took a look at the site. Currently, your navigation is set to “page list” which will show all pages. We’ll want to fix that.

    • Start here in the site editor (unless that is the incorrect site; if so please share the correct address here)
    • Click on your menu twice, then use List View to be sure you have your “Page List” selected.
    • You should see an Edit option. Clicking it will produce this warning:

    Customize this menu

    This menu is automatically kept in sync with pages on your site. You can manage the menu yourself by clicking customize below.

    Choose customize anyway! Then you can customize the menu and save.

    Want to give that a go?

  • Unknown's avatar

    Thank you, I’ve followed those steps and then pressed “Save”, however, the changes don’t save. When I either refresh the page or activate the “View” control and select “View site in new tab” the original menu shows.

    What I’ve done:

    1. Started in the Site Editor.
    2. Opened List View to ensure I am selecting the correct thing.
    3. At some point I had the warning you mentioned “…You can manage the menu yourself by clicking customize below…” I proceeded past that.
    4. I selected “Navigation.”
    5. Then I selected the single 3 vertical dot control on the navigation itself and chose “Show more settings.”
    6. Then in the more settings panel I choose a different navigation named “Main navigation.” This is the one that has the two removed links “Privacy policy” and “Covid.”
    7. All looked good.
    8. Activated “Save.”
    9. Then I refreshed the page and the changes were lost.
  • Thanks for the detailed description! I took the liberty of testing as you as well; it’s definitely doing the same thing for me on your site.

    We’ll need to check up on whether it’s happening elsewhere too, or if it’s isolated to this specific header template part. What you could do in the meantime is:

    1. Open the Site Editor
    2. Actually your current header template part and (re-)create a new one:
      https://en.support.wordpress.com/site-editing/theme-blocks/template-part-block/
    3. Add the new header template in place of the current one.

    I ran a test of the above which seemed to work – there’s a currently unused “Header Test” template part in your Site Editor which appears to be using the Main Navigation menu as we’d expect.

  • Unknown's avatar

    I believe I’ve tried that without succession. I’ve verified this by checking the List View, which contains: Header Test, Group, and Footer. All of these are at sibling level. Then I saved. Then if I refresh the page my changes are lost and the original header block remains.

  • Hello there,

    Ok, I think we need to check which page you may be editing there.

    Can you paste a link to the editing page into this thread please? I suspect you may be editing a template, instead of the page.

    Many thanks.

  • Unknown's avatar

    Yes, that sounds suspect and this is my first .COM website so I am not familiar with things. The URL I’m testing is https://example.wordpress.com/wp-admin/post.php?post=29&action=edit (using “example” as I’m not comfortable sharing the actual site.)

  • Ok. That page should be the front page of the site. I see its content on the front page.

    Can you send a link to the URL you’re using to edit the menu, so we can see what you see there?

  • Unknown's avatar
  • Apologies, the URL I’m editing the menu is https://wordpress.com/site-editor/example.comwordpress.com

    That does generally look correct! I’ve been running a few tests but it’s really not clear what’s going on here – there aren’t any obvious errors in the browser console which point to why the header constantly resets back to how it was.

    Does it make any difference if you use the three-dot menu (ellipsis) menu on the header and select “detach blocks from template part”, and after that make any further changes to the menu?

  • The topic ‘Site does not reflect changes to template parts’ is closed to new replies.