{"id":2693,"date":"2018-04-11T11:14:01","date_gmt":"2018-04-11T11:14:01","guid":{"rendered":"https:\/\/www.markhendriksen.com\/?p=2693"},"modified":"2025-04-24T06:39:52","modified_gmt":"2025-04-24T04:39:52","slug":"create-call-action-button-menu","status":"publish","type":"post","link":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/","title":{"rendered":"How to create a call to action button in the menu"},"content":{"rendered":"\n<p>In this tutorial, you will learn how to create a call to action button in your <a href=\"https:\/\/www.markhendriksen.com\/how-to-create-a-divi-menu\/\">Divi menu<\/a>. A strong call to action on every page can be very powerful and get you more engagement with your website visitors. You can direct your visitors to a contact, quote or a landing page. You can even make it a phone number. You can see a live example here:<\/p>\n\n\n<div class=\"gb-button-wrapper gb-button-wrapper-9884b03d\">\n\n<a class=\"gb-button gb-button-b88ecfb0 gb-button-text demo-button-free-layouts\" href=\"https:\/\/demo.markhendriksen.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Demo Website<\/a>\n\n<\/div>\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2>Step by step guide<\/h2>\n\n\n\n<p><strong>Step 1<\/strong><\/p>\n\n\n\n<p>The first step you need to add a CSS class to the menu page that you want as a button.<\/p>\n\n\n\n<p>in your WordPress dashboard navigate to Appearance &gt; Menus<\/p>\n\n\n\n<p>Add the CSS class cta_menu to the menu page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"755\" height=\"601\" src=\"https:\/\/mk0markhendriks8nxd9.kinstacdn.com\/wp-content\/uploads\/2018\/04\/Add-CSS-class.jpg\" alt=\"Add CSS class\" class=\"wp-image-2696\" srcset=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/Add-CSS-class.jpg 755w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/Add-CSS-class-380x302.jpg 380w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/Add-CSS-class-680x541.jpg 680w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/Add-CSS-class-300x239.jpg 300w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/Add-CSS-class-610x486.jpg 610w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/Add-CSS-class-600x478.jpg 600w, https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/Add-CSS-class-510x406.jpg 510w\" sizes=\"(max-width: 755px) 100vw, 755px\" \/><\/figure>\n\n\n\n<p>If you don\u2019t see the CSS class field then you need to enable it. You can do this as follow:<\/p>\n\n\n\n<p>Go to the screen options (upper right corner) and check CSS classes.<\/p>\n\n\n\n<p><strong>Step 2<\/strong><\/p>\n\n\n\n<p>Add the following CSS in Divi &gt; Theme options &gt; Custom CSS or in your child theme CSS style sheet. If you don\u2019t know how to create a child theme you can follow this&nbsp;<a href=\"https:\/\/www.markhendriksen.com\/divi-child-theme-essential-guide\/\">tutorial<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* ##### CALL TO ACTION MENU BUTTON ##### *\/\n\n@media only screen and ( min-width: 981px ) {\n.cta_menu a {\n    background-color: #2eb243;\n    padding: 15px 25px !important;\n    border-radius: 25px;\n    text-transform: uppercase;\n    color: #fff !important;\n    box-shadow: 0px 0px 30px 2px rgba(0, 0, 0, 0.1);\n}\n\n.et-fixed-header #top-menu .cta_menu a\t{\n     color: #fff !important;\n}}<\/code><\/pre>\n\n\n\n<p>To change the background color of the button you can change the color code in:<br>background-color: #2eb243;<\/p>\n\n\n\n<p>To change the font color you can change the color code in:<br>color: #fff !important;<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":4208,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-2693","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-divi-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create a call to action button in the menu | Markhendriksen.com<\/title>\n<meta name=\"description\" content=\"In this tutorial, you will learn how to create a call to action button in your Divi menu. A strong call to action on every page can be very powerful and get you more engagement with your website visitors.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a call to action button in the menu | Markhendriksen.com\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, you will learn how to create a call to action button in your Divi menu. A strong call to action on every page can be very powerful and get you more engagement with your website visitors.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/\" \/>\n<meta property=\"og:site_name\" content=\"Mark Hendriksen\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/madebymarkhendriksen\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-11T11:14:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-24T04:39:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/How-to-create-a-call-to-action-button-in-the-menu-fb.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mark Hendriksen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mark Hendriksen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/\"},\"author\":{\"name\":\"Mark Hendriksen\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765\"},\"headline\":\"How to create a call to action button in the menu\",\"datePublished\":\"2018-04-11T11:14:01+00:00\",\"dateModified\":\"2025-04-24T04:39:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/\"},\"wordCount\":227,\"commentCount\":33,\"publisher\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/How-to-create-a-call-to-action-button-in-the-menu-with-divi.jpg\",\"articleSection\":[\"Divi tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/\",\"url\":\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/\",\"name\":\"How to create a call to action button in the menu | Markhendriksen.com\",\"isPartOf\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/How-to-create-a-call-to-action-button-in-the-menu-with-divi.jpg\",\"datePublished\":\"2018-04-11T11:14:01+00:00\",\"dateModified\":\"2025-04-24T04:39:52+00:00\",\"description\":\"In this tutorial, you will learn how to create a call to action button in your Divi menu. A strong call to action on every page can be very powerful and get you more engagement with your website visitors.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#primaryimage\",\"url\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/How-to-create-a-call-to-action-button-in-the-menu-with-divi.jpg\",\"contentUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/How-to-create-a-call-to-action-button-in-the-menu-with-divi.jpg\",\"width\":720,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.markhendriksen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Divi tutorials\",\"item\":\"https:\/\/www.markhendriksen.com\/divi-tutorials\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to create a call to action button in the menu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.markhendriksen.com\/#website\",\"url\":\"https:\/\/www.markhendriksen.com\/\",\"name\":\"Mark Hendriksen\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.markhendriksen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.markhendriksen.com\/#organization\",\"name\":\"Mark Hendriksen\",\"url\":\"https:\/\/www.markhendriksen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/01\/Mark-Hendriksen-Logo.png\",\"contentUrl\":\"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/01\/Mark-Hendriksen-Logo.png\",\"width\":354,\"height\":40,\"caption\":\"Mark Hendriksen\"},\"image\":{\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/madebymarkhendriksen\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765\",\"name\":\"Mark Hendriksen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.markhendriksen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1416c89ed4da57b902960a21b7fa25cb91558d39eff48c8b5017bd4c9bcc59a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1416c89ed4da57b902960a21b7fa25cb91558d39eff48c8b5017bd4c9bcc59a9?s=96&d=mm&r=g\",\"caption\":\"Mark Hendriksen\"},\"url\":\"https:\/\/www.markhendriksen.com\/author\/twopixels\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create a call to action button in the menu | Markhendriksen.com","description":"In this tutorial, you will learn how to create a call to action button in your Divi menu. A strong call to action on every page can be very powerful and get you more engagement with your website visitors.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/","og_locale":"en_US","og_type":"article","og_title":"How to create a call to action button in the menu | Markhendriksen.com","og_description":"In this tutorial, you will learn how to create a call to action button in your Divi menu. A strong call to action on every page can be very powerful and get you more engagement with your website visitors.","og_url":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/","og_site_name":"Mark Hendriksen","article_publisher":"https:\/\/www.facebook.com\/madebymarkhendriksen","article_published_time":"2018-04-11T11:14:01+00:00","article_modified_time":"2025-04-24T04:39:52+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/How-to-create-a-call-to-action-button-in-the-menu-fb.jpg","type":"image\/jpeg"}],"author":"Mark Hendriksen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mark Hendriksen","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#article","isPartOf":{"@id":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/"},"author":{"name":"Mark Hendriksen","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765"},"headline":"How to create a call to action button in the menu","datePublished":"2018-04-11T11:14:01+00:00","dateModified":"2025-04-24T04:39:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/"},"wordCount":227,"commentCount":33,"publisher":{"@id":"https:\/\/www.markhendriksen.com\/#organization"},"image":{"@id":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/How-to-create-a-call-to-action-button-in-the-menu-with-divi.jpg","articleSection":["Divi tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/","url":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/","name":"How to create a call to action button in the menu | Markhendriksen.com","isPartOf":{"@id":"https:\/\/www.markhendriksen.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#primaryimage"},"image":{"@id":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/How-to-create-a-call-to-action-button-in-the-menu-with-divi.jpg","datePublished":"2018-04-11T11:14:01+00:00","dateModified":"2025-04-24T04:39:52+00:00","description":"In this tutorial, you will learn how to create a call to action button in your Divi menu. A strong call to action on every page can be very powerful and get you more engagement with your website visitors.","breadcrumb":{"@id":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#primaryimage","url":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/How-to-create-a-call-to-action-button-in-the-menu-with-divi.jpg","contentUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2018\/04\/How-to-create-a-call-to-action-button-in-the-menu-with-divi.jpg","width":720,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.markhendriksen.com\/create-call-action-button-menu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.markhendriksen.com\/"},{"@type":"ListItem","position":2,"name":"Divi tutorials","item":"https:\/\/www.markhendriksen.com\/divi-tutorials\/"},{"@type":"ListItem","position":3,"name":"How to create a call to action button in the menu"}]},{"@type":"WebSite","@id":"https:\/\/www.markhendriksen.com\/#website","url":"https:\/\/www.markhendriksen.com\/","name":"Mark Hendriksen","description":"","publisher":{"@id":"https:\/\/www.markhendriksen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.markhendriksen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.markhendriksen.com\/#organization","name":"Mark Hendriksen","url":"https:\/\/www.markhendriksen.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/01\/Mark-Hendriksen-Logo.png","contentUrl":"https:\/\/www.markhendriksen.com\/wp-content\/uploads\/2021\/01\/Mark-Hendriksen-Logo.png","width":354,"height":40,"caption":"Mark Hendriksen"},"image":{"@id":"https:\/\/www.markhendriksen.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/madebymarkhendriksen"]},{"@type":"Person","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/person\/d40c4ac37512479c71b48ad2879fb765","name":"Mark Hendriksen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.markhendriksen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1416c89ed4da57b902960a21b7fa25cb91558d39eff48c8b5017bd4c9bcc59a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1416c89ed4da57b902960a21b7fa25cb91558d39eff48c8b5017bd4c9bcc59a9?s=96&d=mm&r=g","caption":"Mark Hendriksen"},"url":"https:\/\/www.markhendriksen.com\/author\/twopixels\/"}]}},"_links":{"self":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts\/2693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/comments?post=2693"}],"version-history":[{"count":3,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts\/2693\/revisions"}],"predecessor-version":[{"id":35637,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/posts\/2693\/revisions\/35637"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/media\/4208"}],"wp:attachment":[{"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/media?parent=2693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/categories?post=2693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.markhendriksen.com\/wp-json\/wp\/v2\/tags?post=2693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}