![]() ![]() For example, if the section occurs on the page, then your URL would be:Įnter whatever link text you want your menu item to display. In the left column expand the Custom links category.Įnter the full URL of the target page in which the section occurs, followed by the pound sign and your ID. ![]() On the WordPress admin menu, click Appearance > Menus and make sure the menu you want to use is displayed. Just make sure each ID value is unique on your site. Second, a namespace helps to avoid accidentally using words that are reserved for use in coding languages like PHP and JavaScript or duplicating IDs and classes from other products.įor example, if your business name is Best Website Designs, you might choose bwd- as your namespace prefix and your ID value might be bwd-menutarget-1. For example, Beaver Builder uses the namespace fl-, so when you're inspecting the HTML source for a page, it's easy to identify the Beaver Builder code as opposed to, say, that of other plugins. Now, this plugin has a lot of different settings and you can play around with them. The namespace prefix plays a double role.įirst, it helps identify where the ID or class comes from. The easiest way is to install a WordPress plugin called page scroll to id. It's a best practice to prefix ID and class values with a namespace.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |