{"id":1747,"date":"2016-01-20T14:07:56","date_gmt":"2016-01-20T08:37:56","guid":{"rendered":"\/?p=1747"},"modified":"2021-01-14T15:45:09","modified_gmt":"2021-01-14T10:15:09","slug":"how-to-trigger-a-modal-from-the-wordpress-menu","status":"publish","type":"docs","link":"https:\/\/convertplug.com\/plus\/docs\/how-to-trigger-a-modal-from-the-wordpress-menu\/","title":{"rendered":"How to Trigger a Modal from the WordPress Menu?"},"content":{"rendered":"\n<p>ConvertPlus allows you to set triggers that launch modules at the right time before the right users. You can set a trigger to display a module when a user clicks on a piece of text, an image or a media file on your webpage.<br>You can trigger modules using CSS Class within your website.<br>The following document is a stepwise guide to help you trigger a modal through a WordPress Menu.<\/p>\n\n\n\n<p>Create a Menu Item you wish to use as a trigger for the popup.<\/p>\n\n\n\n<p>1. Go to the &#8220;<strong>Appearance<\/strong>&#8221; tab in the Dashboard, and then &#8220;<strong>Menu<\/strong>&#8220;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-menu.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1217\" src=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-menu.jpg\" alt=\"WP-menu\" class=\"wp-image-1749\" title=\"How to Trigger a Modal from the WordPress Menu?\" srcset=\"https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-menu.jpg 2048w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-menu-300x178.jpg 300w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-menu-768x456.jpg 768w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-menu-1024x609.jpg 1024w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>2. Create a Custom Menu.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-create_custom_menu.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"2043\" height=\"1208\" src=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-create_custom_menu.jpg\" alt=\"WP-create_custom_menu\" class=\"wp-image-1750\" title=\"How to Trigger a Modal from the WordPress Menu?\" srcset=\"https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-create_custom_menu.jpg 2043w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-create_custom_menu-300x177.jpg 300w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-create_custom_menu-768x454.jpg 768w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-create_custom_menu-1024x605.jpg 1024w\" sizes=\"auto, (max-width: 2043px) 100vw, 2043px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Make sure you do not enter a URL in the given field. Since&nbsp;we are not going to divert the user to another page.<\/p>\n\n\n\n<p><em><strong>Important:<\/strong><\/em><br>Enable the \u201cCSS Class\u201d Option available in the \u201cScreen Options\u201d tab<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-CSS_class.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1208\" src=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-CSS_class.jpg\" alt=\"WP-CSS_class\" class=\"wp-image-1751\" title=\"How to Trigger a Modal from the WordPress Menu?\" srcset=\"https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-CSS_class.jpg 2048w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-CSS_class-300x177.jpg 300w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-CSS_class-768x453.jpg 768w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-CSS_class-1024x604.jpg 1024w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>3. Enter a valid and unique Class Name in the field for \u201cCSS Class\u201d under the newly created Custom Menu.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-class_name.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1208\" src=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-class_name.jpg\" alt=\"WP-class_name\" class=\"wp-image-1752\" title=\"How to Trigger a Modal from the WordPress Menu?\" srcset=\"https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-class_name.jpg 2048w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-class_name-300x177.jpg 300w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-class_name-768x453.jpg 768w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-class_name-1024x604.jpg 1024w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>4. Save the Menu<\/p>\n\n\n\n<p>5. Create and Design a Modal popup and open it in the editor. Click on Behavior.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-behavior.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1259\" src=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-behavior.jpg\" alt=\"WP-behavior\" class=\"wp-image-1753\" title=\"How to Trigger a Modal from the WordPress Menu?\" srcset=\"https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-behavior.jpg 2048w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-behavior-300x184.jpg 300w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-behavior-768x472.jpg 768w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-behavior-1024x630.jpg 1024w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>6. Go to Manual Display Options<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-manual_display.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1259\" src=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-manual_display.jpg\" alt=\"WP-manual_display\" class=\"wp-image-1754\" title=\"How to Trigger a Modal from the WordPress Menu?\" srcset=\"https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-manual_display.jpg 2048w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-manual_display-300x184.jpg 300w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-manual_display-768x472.jpg 768w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-manual_display-1024x630.jpg 1024w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>7. Copy the Class Name you Entered under the Customized Menu Item, and paste it under the \u201cLaunch with CSS Class\u201d field.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-launch-CSS-class.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1259\" src=\"\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-launch-CSS-class.jpg\" alt=\"WP-launch-CSS-class\" class=\"wp-image-1755\" title=\"How to Trigger a Modal from the WordPress Menu?\" srcset=\"https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-launch-CSS-class.jpg 2048w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-launch-CSS-class-300x184.jpg 300w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-launch-CSS-class-768x472.jpg 768w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2016\/01\/WP-launch-CSS-class-1024x630.jpg 1024w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>8. Save and Publish.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ConvertPlus allows you to set triggers that launch modules at the right time before the right users. You can set a trigger to display a module when a user clicks on a piece of text, an image or a media file on your webpage.You can trigger modules using CSS Class within your website.The following document [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":0,"template":"","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"docs_category":[442],"docs_tag":[],"class_list":["post-1747","docs","type-docs","status-publish","hentry","docs_category-general-issues-solutions"],"_links":{"self":[{"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/docs\/1747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/users\/23"}],"version-history":[{"count":2,"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/docs\/1747\/revisions"}],"predecessor-version":[{"id":24241,"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/docs\/1747\/revisions\/24241"}],"wp:attachment":[{"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/media?parent=1747"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/docs_category?post=1747"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/docs_tag?post=1747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}