{"id":2928,"date":"2015-07-01T11:36:44","date_gmt":"2015-07-01T10:36:44","guid":{"rendered":"https:\/\/www.megamenu.com\/?page_id=2928"},"modified":"2019-09-19T10:44:21","modified_gmt":"2019-09-19T09:44:21","slug":"add-social-links","status":"publish","type":"ht_kb","link":"https:\/\/www.megamenu.com\/documentation\/add-social-links\/","title":{"rendered":"How to add social media icons to your menu"},"content":{"rendered":"<h3>Step 1. Add a new Custom Link to your menu<\/h3>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-custom-link.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2929\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-custom-link.png\" alt=\"social-link-custom-link\" width=\"1364\" height=\"586\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-custom-link.png 1364w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-custom-link-300x129.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-custom-link-1024x440.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-custom-link-125x54.png 125w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-custom-link-75x32.png 75w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/a><\/p>\n<p>Save the menu once the link has been added.<\/p>\n<h3>Step 2:\u00a0Open the Mega Menu settings for the new menu item<\/h3>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-megamenu-settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2930\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-megamenu-settings.png\" alt=\"social-link-megamenu-settings\" width=\"1367\" height=\"588\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-megamenu-settings.png 1367w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-megamenu-settings-300x129.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-megamenu-settings-1024x440.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-megamenu-settings-125x54.png 125w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-megamenu-settings-75x32.png 75w\" sizes=\"auto, (max-width: 1367px) 100vw, 1367px\" \/><\/a><\/p>\n<h3>Step 3: Align the menu item to the right and hide the menu text<\/h3>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2931\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-settings.png\" alt=\"social-link-settings\" width=\"1360\" height=\"614\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-settings.png 1360w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-settings-300x135.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-settings-1024x462.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-settings-125x56.png 125w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-settings-75x34.png 75w\" sizes=\"auto, (max-width: 1360px) 100vw, 1360px\" \/><\/a><\/p>\n<h3>Step 4: Set an icon<\/h3>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-icon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2932\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-icon.png\" alt=\"social-link-icon\" width=\"1363\" height=\"610\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-icon.png 1363w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-icon-300x134.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-icon-1024x458.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-icon-125x56.png 125w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-icon-75x34.png 75w\" sizes=\"auto, (max-width: 1363px) 100vw, 1363px\" \/><\/a><\/p>\n<h3>Step 5: <em>Optional step for Max Mega Menu Pro users<\/em>.<\/h3>\n<p>Set a custom image icon<\/p>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/custom-icon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-213612\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/custom-icon.png\" alt=\"\" width=\"2646\" height=\"1692\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/custom-icon.png 2646w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/custom-icon-300x192.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/custom-icon-768x491.png 768w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/custom-icon-1024x655.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/custom-icon-50x32.png 50w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/custom-icon-1064x680.png 1064w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/custom-icon-620x396.png 620w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/custom-icon-400x256.png 400w\" sizes=\"auto, (max-width: 2646px) 100vw, 2646px\" \/><\/a><\/p>\n<h3>End Result:<\/h3>\n<p><a href=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-end-result.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2934\" src=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-end-result.png\" alt=\"social-link-end-result\" width=\"1150\" height=\"59\" srcset=\"https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-end-result.png 1150w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-end-result-300x15.png 300w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-end-result-1024x53.png 1024w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-end-result-125x6.png 125w, https:\/\/www.megamenu.com\/wp-content\/uploads\/2015\/07\/social-link-end-result-75x4.png 75w\" sizes=\"auto, (max-width: 1150px) 100vw, 1150px\" \/><\/a><\/p>\n<h2>Displaying social icons on a single line in the Mobile Menu<\/h2>\n<p>By default each social icon\/menu item will be displayed on it&#8217;s own row in the mobile menu.<\/p>\n<p>There are 2 options to change this.<\/p>\n<p><strong>Option 1<\/strong><\/p>\n<p>Enable the &#8220;Hide on Mobile&#8221; setting for each of your social icon menu items, then add them as <a href=\"https:\/\/www.megamenu.com\/documentation\/mobile-toggle-blocks\/\">Mobile Toggle Blocks<\/a> instead.<\/p>\n<p><strong>Option 2<\/strong><\/p>\n<p>Go to <em>Mega Menu &gt; Menu Themes &gt; Custom Styling<\/em> and add the following (make sure you update line 7):<\/p>\n<pre class=\"lang:default decode:true \">@include mobile {\r\n    #{$wrap} {\r\n        float: left;\r\n        width: 100%;\r\n    }\r\n    #{$wrap} #{$menu} &gt; li.mega-social-icon {\r\n        width: 50%; \/* UPDATE THIS: 100 \/ Number of social icons *\/\r\n        float: left !important;\r\n        clear: none;\r\n    }\r\n    #{$wrap} #{$menu} &gt; li.mega-social-icon &gt; a.mega-menu-link {\r\n        text-align: center;\r\n    }\r\n}<\/pre>\n<p>Add a <a href=\"https:\/\/www.megamenu.com\/documentation\/how-to-add-custom-css-classes-to-wordpress-menu-items\/\">Custom Menu Item Class<\/a> of &#8220;social-icon&#8221; to each of your social icon menu items.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1. Add a new Custom Link to your menu Save the menu once the link has been added. Step 2:\u00a0Open the Mega Menu settings for the new menu item Step 3: Align the menu item to the right and hide the menu text Step 4: Set an icon Step&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"open","template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"ht-kb-category":[14],"ht-kb-tag":[],"class_list":["post-2928","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-faqs"],"uagb_featured_image_src":[],"uagb_author_info":{"display_name":"Tom Hemsley","author_link":"https:\/\/www.megamenu.com\/author\/megamenu\/"},"uagb_comment_info":0,"uagb_excerpt":"Step 1. Add a new Custom Link to your menu Save the menu once the link has been added. Step 2:\u00a0Open the Mega Menu settings for the new menu item Step 3: Align the menu item to the right and hide the menu text Step 4: Set an icon Step...","_links":{"self":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/2928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/comments?post=2928"}],"version-history":[{"count":7,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/2928\/revisions"}],"predecessor-version":[{"id":213613,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb\/2928\/revisions\/213613"}],"wp:attachment":[{"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/media?parent=2928"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-category?post=2928"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.megamenu.com\/wp-json\/wp\/v2\/ht-kb-tag?post=2928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}