http://example.com/wp-admin/customize.php?url=http%3A%2F%2Fexample.com%2Fsample-page%2F&autofocus[panel]=widgets&autofocus[section]=sidebar-widgets-sidebar-1&autofocus[
http://example.com/wp-admin/customize.php?url=http%3A%2F%2Fexample.com%2Fsample-page%2F&autofocus [panel] = widgets&autofocus [section] = sidebar-widgets-sidebar-1&autofocus [
control]=widget_text[10]&device=mobile&scroll=200
控制] = widget_text [10]&device = mobile&scroll = 200
pre>
The plugin will also persist the scroll position from the frontend to preview frame in the Customizer after clicking the “Customize” link in the frontend admin bar.
单击前端管理栏中的“自定义”链接后,该插件还将在定制器中保留从前端滚动到预览框的滚动位置。
This ensures you can quickly start editing whatever you were looking at the moment you clicked Customize, and it makes the Customizer load from the frontend in a more seamless way.
这样可以确保您可以在单击“自定义”的那一刻起快速开始编辑任何内容,并使Customizer以更无缝的方式从前端加载。 p>
Additionally, as you navigate around the Customizer preview, the close link in the Customizer controls pane will keep updating to point to the same URL that you are previewing, along with persisting the scroll position.
此外,当您在Customizer预览中导航时,Customizer控件窗格中的关闭链接将不断更新以指向您正在预览的URL,并保持滚动位置。
In this way, whenever you close the Customizer via this link the user experience is that the Customizer sidebar is just removed, similar to as if they clicked the “Hide Controls” link at the bottom of the sidebar.
这样,每当您通过此链接关闭Customizer时,用户体验就是Customizer侧边栏将被删除,就像他们单击侧边栏底部的“隐藏控件”链接一样。
This behavior is only active if the user had clicked the Customize link from the frontend.
仅当用户单击前端的“定制”链接时,此行为才是活动的。
If they clicked Customize from the admin, then the Close link will remain linking back to the admin page they came from.
如果他们从管理员单击“自定义”,则“关闭”链接将保持链接回到他们来自的管理页面。
Note that for responsive themes like Twenty Seventeen, the synced scroll position between the frontend and backend won’t always appear seamless since the Customizer controls panel being expanded causes the element dimensions in the preview to change.
请注意,对于像“二十一岁”这样的自适应主题,前端和后端之间的同步滚动位置将不会总是无缝显示,因为“定制器”控制面板被展开会导致预览中的元素尺寸发生更改。 p>
Development of this plugin is done on GitHub. 此插件的开发在GitHub上完成。Pull requests welcome.
拉请求欢迎。
Please see issues reported there before going to the 问题,然后再转到
://wordpress.org/support/plugin/customizer-browser-history">plugin forum
.
://wordpress.org/support/plugin/customizer-browser-history“>插件论坛。 strong> p>