Hot answers tagged

1

You are not defining a certain width to each item from the second list, you could use the following to modify the styling for the submenu: ul li ul li { float: none; display: block; width: 100%; } It will look like this: You could also try using CSS Grid or CSS Flex to accomplish the structure.


1

After examining the code using developer tools, I was able to figure out the problem. Code was being wrapped in the pre tags which were causing the code to break its proper structure. Found the solution for the pre tags issue here which solved the problem.


1

When you enqueue a script with wp_enqueue_script() it adds the <script> tag part for you. If you have HTML that the script interacts with you will need to add that HTML to the page another way. You should not include the script tag in any HTML. There are many options for adding HTML to a page, depending on where you need it: Adding it in the Text tab ...


Only top voted, non community-wiki answers of a minimum length are eligible