{"id":14776,"date":"2014-02-28T08:00:22","date_gmt":"2014-02-28T14:00:22","guid":{"rendered":"http:\/\/www.adviceinteractivegroup.com\/?p=9137"},"modified":"2014-02-28T08:00:22","modified_gmt":"2014-02-28T14:00:22","slug":"making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu","status":"publish","type":"post","link":"https:\/\/www.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/","title":{"rendered":"Making The WordPress Twenty Fourteen Theme Sexier With A Mobile Accordion Menu"},"content":{"rendered":"<h3>Intro<\/h3>\n<p>Mobile menus have always been challenging, and over the last few years we&#8217;ve seen <a href=\"https:\/\/css-tricks.com\/off-canvas-menu-with-css-target\/\" target=\"_blank\" rel=\"noopener\">off-canvas menus<\/a>, <a href=\"http:\/\/getbootstrap.com\/examples\/navbar-fixed-top\/\" target=\"_blank\" rel=\"noopener\">fixed navigation<\/a> and everything in between.<\/p>\n<p>Today, we&#8217;ll be looking at the &#8220;Top primary menu&#8221; in the <a href=\"https:\/\/twentyfourteendemo.wordpress.com\/\">Twenty Fourteen theme for WordPress,<\/a> which is a fixed, top-down menu.<\/p>\n<h3>The Problem<\/h3>\n<p>I really like this style of menu, with one exception\u2014large menus often go below the fold on mobile.<br \/>\n<img fetchpriority=\"high\" decoding=\"async\" class=\" wp-image-9138 aligncenter\" src=\"\/images\/twenty-fourteen-top-primary-menu-iphone.png\" alt=\"twenty-fourteen-top-primary-menu-iphone\" width=\"250\" height=\"504\" \/><\/p>\n<h3>The Solution<\/h3>\n<p>One solution we are going to to explore here is making the menu <a href=\"http:\/\/demos.jquerymobile.com\/1.3.0-rc.1\/docs\/demos\/widgets\/accordions\/\" target=\"_blank\" rel=\"noopener\">accordion<\/a> style on mobile.<\/p>\n<p>Submenu items will be collapsed until the parent container is clicked\/tapped, and then they will expand.<\/p>\n<p>If a submenu is expanded, then a subsequent click on the active parent item will navigate to that page.<\/p>\n<h3>Shortcut<\/h3>\n<p>I highly recommend you read the entire article and get an understanding of what is going on, but if you just want the code it is on <a href=\"https:\/\/github.com\/\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>.<\/p>\n<h3>HTML<\/h3>\n<p>Since we are working with an existing theme, the HTML code is predefined. Below is the HTML code for the menu on the demo site:<\/p>\n<p>[code language=&#8221;html&#8221;]<br \/>\n&lt;nav class=&#8221;site-navigation primary-navigation&#8221; id=&#8221;primary-navigation&#8221; role=&#8221;navigation&#8221;&gt;<br \/>\n&lt;h1 class=&#8221;menu-toggle&#8221;&gt;Primary Menu&lt;\/h1&gt;<br \/>\n&lt;a class=&#8221;screen-reader-text skip-link&#8221; href=&#8221;#content&#8221;&gt;Skip to content&lt;\/a&gt;<br \/>\n&lt;div class=&#8221;menu-main-menu-container&#8221;&gt;<br \/>\n&lt;ul class=&#8221;nav-menu&#8221; id=&#8221;menu-main-menu&#8221;&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-278&#8243; id=&#8221;menu-item-278&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/&#8221;&gt;Home&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-279&#8243; id=&#8221;menu-item-279&#8243;&gt;&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/a-parent-page\/&#8221;&gt;Dropdown Menu&lt;\/a&gt;<br \/>\n&lt;ul class=&#8221;sub-menu&#8221;&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-280&#8243; id=&#8221;menu-item-280&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/a-parent-page\/first-child\/&#8221;&gt;First Child&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-282&#8243; id=&#8221;menu-item-282&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/a-parent-page\/second-child\/&#8221;&gt;Second Child&lt;\/a&gt;<br \/>\n&lt;ul class=&#8221;sub-menu&#8221;&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-283&#8243; id=&#8221;menu-item-283&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/a-parent-page\/second-child\/a-grandchild-page\/&#8221;&gt;A Grandchild Page&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-284&#8243; id=&#8221;menu-item-284&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/a-parent-page\/second-child\/a-spoiled-grandchild-page\/&#8221;&gt;A Spoiled Grandchild Page&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-285&#8243; id=&#8221;menu-item-285&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/a-parent-page\/second-child\/another-grandchild-page\/&#8221;&gt;Another Grandchild Page&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;\/ul&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-287&#8243; id=&#8221;menu-item-287&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/a-parent-page\/third-child\/&#8221;&gt;Third Child&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-281&#8243; id=&#8221;menu-item-281&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/a-parent-page\/fourth-child\/&#8221;&gt;Fourth Child&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-286&#8243; id=&#8221;menu-item-286&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/a-parent-page\/second-child\/another-grandchild-page\/a-wee-little-baby-page\/&#8221;&gt;A Wee Little Baby Page&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;\/ul&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-357&#8243; id=&#8221;menu-item-357&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/default-page-templates\/&#8221;&gt;Page Templates&lt;\/a&gt;<br \/>\n&lt;ul class=&#8221;sub-menu&#8221;&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-368&#8243; id=&#8221;menu-item-368&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/default-page-templates\/&#8221;&gt;Default Page Templates&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-358&#8243; id=&#8221;menu-item-358&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/default-page-templates\/contributor-page-template\/&#8221;&gt;Contributor Page Template&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-359&#8243; id=&#8221;menu-item-359&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/default-page-templates\/full-width-page-template\/&#8221;&gt;Full width page template&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;\/ul&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-289&#8243; id=&#8221;menu-item-289&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/html-elements\/&#8221;&gt;HTML Elements&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;li class=&#8221;menu-item menu-item-type-post_type menu-item-object-page menu-item-290&#8243; id=&#8221;menu-item-290&#8243;&gt;<br \/>\n&lt;a href=&#8221;http:\/\/twentyfourteendemo.wordpress.com\/image-alignment-and-styles\/&#8221;&gt;Image Alignment and Styles&lt;\/a&gt;<br \/>\n&lt;\/li&gt;<br \/>\n&lt;\/ul&gt;<br \/>\n&lt;\/div&gt;<br \/>\n&lt;\/nav&gt;<br \/>\n[\/code]<\/p>\n<h3>PHP<\/h3>\n<p>The only PHP we will have is a quick <a href=\"https:\/\/codex.wordpress.org\/Writing_a_Plugin\" target=\"_blank\" rel=\"noopener\">WordPress plugin<\/a> file that uses <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_enqueue_script\/\" target=\"_blank\" rel=\"noopener\">wp_enqueue_script<\/a> to load a Javascript file.<\/p>\n<p>[code language=&#8221;php&#8221;]<br \/>\n&lt;?php<br \/>\n\/**<br \/>\n* Plugin Name: TwentyFourteen Accordion Menu<br \/>\n* Description: Adds accordion functionality to the Top primary menu in the TwentyFourteen theme on mobile<br \/>\n* Version: 1.0<br \/>\n* Author: Advice Interactive Group<br \/>\n* Author URI: http:\/\/www.adviceinteractivegroup.com<br \/>\n* License: GPL2<br \/>\n* Copyright 2014 Advice Interactive Group (email : info@adviceineractive.com)<br \/>\n*<br \/>\n* This program is free software; you can redistribute it and\/or modify<br \/>\n* it under the terms of the GNU General Public License, version 2, as<br \/>\n* published by the Free Software Foundation.<br \/>\n*<br \/>\n* This program is distributed in the hope that it will be useful,<br \/>\n* but WITHOUT ANY WARRANTY; without even the implied warranty of<br \/>\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br \/>\n* GNU General Public License for more details.<br \/>\n*<br \/>\n* You should have received a copy of the GNU General Public License<br \/>\n* along with this program; if not, write to the Free Software<br \/>\n* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA<br \/>\n*\/<\/p>\n<p>function TwentyFourteen_Accordion_Menu_enqueue_scripts(){<\/p>\n<p>\/\/ enqueue theme Javascript with jQuery as a dependency<br \/>\n\/\/ http:\/\/codex.wordpress.org\/Function_Reference\/wp_enqueue_script<br \/>\nwp_enqueue_script( &#8216;TwentyFourteen_Accordion_Menu&#8217;, plugins_url( &#8216;\/js\/TwentyFourteen_Accordion_Menu.js&#8217; , __FILE__ ), array(&#8216;jquery&#8217;), false, true );<\/p>\n<p>}<\/p>\n<p>\/\/ add enqueue_scripts to wp_enqueue_scripts action<br \/>\n\/\/ http:\/\/codex.wordpress.org\/Plugin_API\/Action_Reference\/wp_enqueue_scripts<br \/>\nadd_action( &#8216;wp_enqueue_scripts&#8217;, &#8216;TwentyFourteen_Accordion_Menu_enqueue_scripts&#8217; );<\/p>\n<p>?&gt;<br \/>\n[\/code]<\/p>\n<h3>Javascript<\/h3>\n<p>The Javascript is pretty straight forward as well. We will detect if we are on mobile by using the visibility of the menu toggle. If it is hidden, we are not on mobile and do nothing.<\/p>\n<p>If we are on mobile, then we hide all submenus and add a click event to top level nav items containing a submenu.<\/p>\n<p>When one is clicked (or tapped) it gets a class of &#8220;sub-menu-active&#8221; and the submenu is toggled on.<\/p>\n<p>When the parent menu item is clicked again we check for the active class, and if it exists we return, which follows the link.<\/p>\n<p>[code language=&#8221;javascript&#8221;]<br \/>\nfunction TwentyFourteen_Accordion_Menu(){<\/p>\n<p>\/\/ if we are not on mobile (menu icon is hidden) show sub items and bail<br \/>\nif ( jQuery(&#8216;#primary-navigation .menu-toggle&#8217;).is(&#8216;:hidden&#8217;) ){<br \/>\n\/\/ show sub menus<br \/>\njQuery(&#8216;#menu-main-menu ul.sub-menu&#8217;).show();<br \/>\nreturn;<br \/>\n} else{<br \/>\n\/\/ hide sub menus<br \/>\njQuery(&#8216;#menu-main-menu ul.sub-menu&#8217;).hide();<br \/>\n}<\/p>\n<p>\/\/ top level nav click function<br \/>\njQuery(&#8216;#menu-main-menu &gt; li &gt; a&#8217;).click(function(e){<\/p>\n<p>\/\/ store parent li to variable<br \/>\nvar parent_li = jQuery(this).parent(&#8216;li&#8217;);<\/p>\n<p>\/\/ if sub menu does not exist in parent li<br \/>\nif ( !jQuery(&#8216;ul.sub-menu&#8217;, parent_li).first().length ) {<br \/>\nreturn;<br \/>\n}<\/p>\n<p>\/\/ if sub menu is already active, bail<br \/>\nif ( parent_li.hasClass(&#8216;sub-menu-active&#8217;) ){<br \/>\nreturn;<br \/>\n}<\/p>\n<p>\/\/ stop link click<br \/>\ne.preventDefault();<\/p>\n<p>\/\/ store current sub menu in variable<br \/>\nvar current_submenu = jQuery(&#8216;ul.sub-menu&#8217;, parent_li).first();<\/p>\n<p>\/\/ slide up non-current sub menus<br \/>\njQuery(&#8216;#menu-main-menu &gt; li &gt; ul.sub-menu&#8217;).not(current_submenu).slideUp(function(){<\/p>\n<p>\/\/ remove sub-menu-active class from all first level items except current parent li<br \/>\njQuery(&#8216;#menu-main-menu &gt; li&#8217;).not(parent_li).removeClass(&#8216;sub-menu-active&#8217;);<\/p>\n<p>});<\/p>\n<p>\/\/ slide down current sub menu<br \/>\ncurrent_submenu.slideDown(function(){<br \/>\n\/\/ add sub-menu-active to current parent li<br \/>\nparent_li.addClass(&#8216;sub-menu-active&#8217;);<br \/>\n});<\/p>\n<p>});<\/p>\n<p>\/\/ second level nav click function<br \/>\njQuery(&#8216;#menu-main-menu ul.sub-menu &gt; li &gt; a&#8217;).click(function(e){<\/p>\n<p>\/\/ store parent li to variable<br \/>\nvar parent_li = jQuery(this).parent(&#8216;li&#8217;);<\/p>\n<p>\/\/ if sub menu does not exist in parent li<br \/>\nif ( !jQuery(&#8216;ul.sub-menu&#8217;, parent_li).first().length ) {<br \/>\nreturn;<br \/>\n}<\/p>\n<p>\/\/ if sub menu is already active, bail<br \/>\nif ( parent_li.hasClass(&#8216;sub-menu-active&#8217;) ){<br \/>\nreturn;<br \/>\n}<\/p>\n<p>\/\/ stop link click<br \/>\ne.preventDefault();<\/p>\n<p>\/\/ store current sub menu in variable<br \/>\nvar current_submenu = jQuery(&#8216;ul.sub-menu&#8217;, parent_li).first();<\/p>\n<p>\/\/ slide up non-current sub menus<br \/>\njQuery(&#8216;#menu-main-menu ul.sub-menu &gt; li &gt; ul.sub-menu&#8217;).not(current_submenu).slideUp(function(){<\/p>\n<p>\/\/ remove sub-menu-active class from all second level items except current parent li<br \/>\njQuery(&#8216;#menu-main-menu ul.sub-menu &gt; li&#8217;).not(parent_li).removeClass(&#8216;sub-menu-active&#8217;);<\/p>\n<p>});<\/p>\n<p>\/\/ slide down current sub menu<br \/>\ncurrent_submenu.slideDown(function(){<br \/>\n\/\/ add sub-menu-active to current parent li<br \/>\nparent_li.addClass(&#8216;sub-menu-active&#8217;);<br \/>\n});<\/p>\n<p>});<\/p>\n<p>}<\/p>\n<p>\/\/ load menu accordion on doc ready<br \/>\njQuery(document).ready(function($) {<br \/>\nTwentyFourteen_Accordion_Menu();<br \/>\n});<\/p>\n<p>\/\/ load menu accordion on window resize<br \/>\njQuery(window).resize(function(){<br \/>\nTwentyFourteen_Accordion_Menu();<br \/>\n});<br \/>\n[\/code]<\/p>\n<h3>Summary<\/h3>\n<p>Our menu is now completely visible above the fold on mobile.<\/p>\n<p><img decoding=\"async\" class=\" wp-image-9138 aligncenter\" src=\"\/images\/twenty-fourteen-top-primary-menu-accordion-iphone.png\" alt=\"twenty-fourteen-top-primary-menu-accordion-iphone\" width=\"250\" height=\"504\" \/><\/p>\n<p>This was a pretty quick and easy way to extend the functionality of the menu and is a great example of a WordPress plugin. We accomplish a very specific task with code we can reuse on multiple projects without modifying the theme code.<\/p>\n<p>Want to try it out for yourself? The entire code is on <a href=\"https:\/\/github.com\/sarahkemp\/TwentyFourteen-accordion-menu\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>. Enjoy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Intro Mobile menus have always been challenging, and over the last few years we&#8217;ve seen off-canvas menus, fixed navigation and [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","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":"","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":"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":"","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-4)","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-4)","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-4)","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":""},"categories":[12],"tags":[],"class_list":["post-14776","post","type-post","status-publish","format-standard","hentry","category-realtime"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The WordPress Twenty Fourteen Theme &amp; Mobile Accordion Menu | Advice Local<\/title>\n<meta name=\"description\" content=\"The WordPress Twenty Fourteen theme is fine all by itself. Let us show you how to make it even sexier with the Mobile Accordion Menu. Call (214) 310-1356.\" \/>\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.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The WordPress Twenty Fourteen Theme &amp; Mobile Accordion Menu | Advice Local\" \/>\n<meta property=\"og:description\" content=\"The WordPress Twenty Fourteen theme is fine all by itself. Let us show you how to make it even sexier with the Mobile Accordion Menu. Call (214) 310-1356.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/\" \/>\n<meta property=\"og:site_name\" content=\"Advice Local\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/advicelocallistings\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-02-28T14:00:22+00:00\" \/>\n<meta name=\"author\" content=\"Bernadette Coleman\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"The WordPress Twenty Fourteen Theme &amp; Mobile Accordion Menu | Advice Local\" \/>\n<meta name=\"twitter:description\" content=\"The WordPress Twenty Fourteen theme is fine all by itself. Let us show you how to make it even sexier with the Mobile Accordion Menu. Call (214) 310-1356.\" \/>\n<meta name=\"twitter:creator\" content=\"@advice_local\" \/>\n<meta name=\"twitter:site\" content=\"@advice_local\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bernadette Coleman\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\\\/\"},\"author\":{\"name\":\"Bernadette Coleman\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#\\\/schema\\\/person\\\/2db3c5de76eb330f52a29fb4fafa1dbd\"},\"headline\":\"Making The WordPress Twenty Fourteen Theme Sexier With A Mobile Accordion Menu\",\"datePublished\":\"2014-02-28T14:00:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\\\/\"},\"wordCount\":1514,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#organization\"},\"articleSection\":[\"Realtime\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\\\/\",\"url\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\\\/\",\"name\":\"The WordPress Twenty Fourteen Theme & Mobile Accordion Menu | Advice Local\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#website\"},\"datePublished\":\"2014-02-28T14:00:22+00:00\",\"description\":\"The WordPress Twenty Fourteen theme is fine all by itself. Let us show you how to make it even sexier with the Mobile Accordion Menu. Call (214) 310-1356.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Making The WordPress Twenty Fourteen Theme Sexier With A Mobile Accordion Menu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/\",\"name\":\"Advice Local\",\"description\":\"Local Digital Marketing Software Solutions and Services\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#organization\",\"name\":\"Advice Local\",\"url\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/logo.png\",\"width\":265,\"height\":55,\"caption\":\"Advice Local\"},\"image\":{\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/advicelocallistings\\\/\",\"https:\\\/\\\/x.com\\\/advice_local\",\"https:\\\/\\\/www.instagram.com\\\/advice_local\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/#\\\/schema\\\/person\\\/2db3c5de76eb330f52a29fb4fafa1dbd\",\"name\":\"Bernadette Coleman\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bea94b8cbcbd36b9a98c360befad5e3ea7268fe4d99960115ddc5eb69df6fb61?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bea94b8cbcbd36b9a98c360befad5e3ea7268fe4d99960115ddc5eb69df6fb61?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bea94b8cbcbd36b9a98c360befad5e3ea7268fe4d99960115ddc5eb69df6fb61?s=96&d=mm&r=g\",\"caption\":\"Bernadette Coleman\"},\"url\":\"https:\\\/\\\/www.advicelocal.com\\\/blog\\\/author\\\/bernadette-coleman\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The WordPress Twenty Fourteen Theme & Mobile Accordion Menu | Advice Local","description":"The WordPress Twenty Fourteen theme is fine all by itself. Let us show you how to make it even sexier with the Mobile Accordion Menu. Call (214) 310-1356.","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.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/","og_locale":"en_US","og_type":"article","og_title":"The WordPress Twenty Fourteen Theme & Mobile Accordion Menu | Advice Local","og_description":"The WordPress Twenty Fourteen theme is fine all by itself. Let us show you how to make it even sexier with the Mobile Accordion Menu. Call (214) 310-1356.","og_url":"https:\/\/www.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/","og_site_name":"Advice Local","article_publisher":"https:\/\/www.facebook.com\/advicelocallistings\/","article_published_time":"2014-02-28T14:00:22+00:00","author":"Bernadette Coleman","twitter_card":"summary_large_image","twitter_title":"The WordPress Twenty Fourteen Theme & Mobile Accordion Menu | Advice Local","twitter_description":"The WordPress Twenty Fourteen theme is fine all by itself. Let us show you how to make it even sexier with the Mobile Accordion Menu. Call (214) 310-1356.","twitter_creator":"@advice_local","twitter_site":"@advice_local","twitter_misc":{"Written by":"Bernadette Coleman","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/#article","isPartOf":{"@id":"https:\/\/www.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/"},"author":{"name":"Bernadette Coleman","@id":"https:\/\/www.advicelocal.com\/blog\/#\/schema\/person\/2db3c5de76eb330f52a29fb4fafa1dbd"},"headline":"Making The WordPress Twenty Fourteen Theme Sexier With A Mobile Accordion Menu","datePublished":"2014-02-28T14:00:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/"},"wordCount":1514,"commentCount":1,"publisher":{"@id":"https:\/\/www.advicelocal.com\/blog\/#organization"},"articleSection":["Realtime"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/","url":"https:\/\/www.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/","name":"The WordPress Twenty Fourteen Theme & Mobile Accordion Menu | Advice Local","isPartOf":{"@id":"https:\/\/www.advicelocal.com\/blog\/#website"},"datePublished":"2014-02-28T14:00:22+00:00","description":"The WordPress Twenty Fourteen theme is fine all by itself. Let us show you how to make it even sexier with the Mobile Accordion Menu. Call (214) 310-1356.","breadcrumb":{"@id":"https:\/\/www.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.advicelocal.com\/blog\/making-the-wordpress-twentyfourteen-theme-sexier-with-a-mobile-accordion-menu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.advicelocal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Making The WordPress Twenty Fourteen Theme Sexier With A Mobile Accordion Menu"}]},{"@type":"WebSite","@id":"https:\/\/www.advicelocal.com\/blog\/#website","url":"https:\/\/www.advicelocal.com\/blog\/","name":"Advice Local","description":"Local Digital Marketing Software Solutions and Services","publisher":{"@id":"https:\/\/www.advicelocal.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.advicelocal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.advicelocal.com\/blog\/#organization","name":"Advice Local","url":"https:\/\/www.advicelocal.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.advicelocal.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.advicelocal.com\/blog\/wp-content\/uploads\/2026\/04\/logo.png","contentUrl":"https:\/\/www.advicelocal.com\/blog\/wp-content\/uploads\/2026\/04\/logo.png","width":265,"height":55,"caption":"Advice Local"},"image":{"@id":"https:\/\/www.advicelocal.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/advicelocallistings\/","https:\/\/x.com\/advice_local","https:\/\/www.instagram.com\/advice_local"]},{"@type":"Person","@id":"https:\/\/www.advicelocal.com\/blog\/#\/schema\/person\/2db3c5de76eb330f52a29fb4fafa1dbd","name":"Bernadette Coleman","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bea94b8cbcbd36b9a98c360befad5e3ea7268fe4d99960115ddc5eb69df6fb61?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bea94b8cbcbd36b9a98c360befad5e3ea7268fe4d99960115ddc5eb69df6fb61?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bea94b8cbcbd36b9a98c360befad5e3ea7268fe4d99960115ddc5eb69df6fb61?s=96&d=mm&r=g","caption":"Bernadette Coleman"},"url":"https:\/\/www.advicelocal.com\/blog\/author\/bernadette-coleman\/"}]}},"_links":{"self":[{"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/posts\/14776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/comments?post=14776"}],"version-history":[{"count":0,"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/posts\/14776\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/media?parent=14776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/categories?post=14776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advicelocal.com\/blog\/wp-json\/wp\/v2\/tags?post=14776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}