Aleš Sýkora wrote

Oxygen Pro Menu menu selector – workaround fix on multisite

9. 8. 2021 in ,

Symptoms: Pro menu on multisite doesn’t show the WordPress menus in select field.

Select is empty on pro menu element when using multisite installation.

Unfortunately, this is a known issue when using the Pro Menu element on a multisite install. There is a workaround by manually adding the ID of the menu you want to display to the page or template shortcodes. To do this, add the Pro Menu to your design, save it and go back to the admin area. Click +Shortcodes below the “Edit with Oxygen” button to view the design shortcodes.

Here’s an example of how the Pro Menu shortcodes will look:

[oxy-pro-menu ct_sign_sha256='c7b28661500072a9a2be0f438140363963e61dcd82c6ebf0dbd3f0ba1196c03b' ct_options='{"ct_id":2,"ct_parent":0,"selector":"-pro-menu-2-37"}'][/oxy-pro-menu]

They need to be altered to include the menu ID by adding the below towards the end of the shortcode. You need to check your WordPress menus to find the correct ID. Go to Admin > Appearance > Menus and select the menu from select input. Click on select and look at the URL address.

In your URL address has been added parameter menu=number.

https://toolset.wiki/wp-admin/nav-menus.php?action=edit&menu=40

Tak the menu ID and put it in the menu_id attribute in shortcode. Update the whole shortcode then with the code:

,"original":{"menu_id":"40"},"activeselector":false

Here’s the full shortcode:

[oxy-pro-menu ct_sign_sha256='fe1bd05fdc8f9d6af7c486dfed1e46bf88972c72c3f64d2876ef43be79b30c8a' ct_options='{"ct_id":1,"ct_parent":0,"selector":"-pro-menu-1-37","original":{"menu_id":"40"},"activeselector":false}'][/oxy-pro-menu]

I would suggest taking a full backup of your site before doing this and also copying the full page or template shortcodes into a text document in case you need to revert your changes

I hope this helps!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Tracking events with Google Tag manager & WordPress
23. 8. 2019 in
Add numbers to your content with Google Tag Manager & Google Analytics Events.
Read More
Aleš Sýkora wrote
Comments Shortcode for Content Templates
11. 11. 2019 in
Display comments section whetever you want.
Read More
Aleš Sýkora wrote
Oxygen Front-end styles in Gutenberg
WARNING: I can’t figure how to make it working currently. If you have any idea, please put in in the comments below. You may want to display the content when editing in Gutenberg editor with your frontend Oxygen Styles included. It is possible with But the challenge is that Oxygen is creating CSS files for […]
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram