Coder Social home page Coder Social logo

sirlouen / oxygen-responsive-menu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from srikat/oxygen-responsive-menu

0.0 0.0 0.0 20 KB

A plugin that combines Superfish + StudioPress' ResponsiveMenus.js + CSS-animated hamburger for a responsive menu in WordPress.

License: GNU General Public License v2.0

CSS 72.42% PHP 27.58%

oxygen-responsive-menu's Introduction

Oxygen Responsive Menu

Implements Superfish + ResponsiveMenus.js + CSS-animated hamburger in Oxygen.

At the responsive breakpoint (959px by default), the menu will collapse into a hamburger (with the word Menu to its right). Tapping on the menu toggle button will smoothly slide open the menu and the hamburger will animate into a x.

Menu items that have children will have a down arrow which when tapped will expand to show the sub menu. Tapping on the up arrow will collapse the sub menu.

It is also possible to expand the menu without it pushing the page content below by uncommenting lines 193-198 in main.css.

Live Demo

Demo Site

Note

  • This plugin is meant for developers who are comfortable hand coding/tweaking the CSS to match their designs.
  • Despite the name, this plugin is not integrated with Oxygen in any way. This means, it is not possible to set the mobile icon breakpoint, change the colors or any adjustments in the Oxygen editor. You will need to edit the plugin's CSS file using a FTP client or cPanel file manager etc.
  • This plugin can be used with any WordPress site. When used in a non-Oxygen site, replace CT_VERSION with '1.0.0' in the plugin's PHP file.
  • The plugin is offered as is without any guaranteed support.

Installation

  1. Click on the Download ZIP button at the right to download the plugin.
  2. Upload the entire oxygen-responsive-menu-master folder to the /wp-content/plugins/ directory.
  3. Activate the plugin through the Plugins menu in WordPress.

Usage

Use [oxygen-responsive-menu menu="Main Menu"] shortcode to display a WordPress menu named Main Menu.

If your menu is already named Main Menu, you can omit the shortcode parameter and just use [oxygen-responsive-menu].

Follow this blog post for step-by-step instructions for implementing this in Oxygen.

Changelog

1.0.0 - November 18, 2018

  • Initial Release

1.0.1 - November 18, 2018

  • Set Dashicons to load so the up and down arrows can be seen.

1.0.2 - November 19, 2018

oxygen-responsive-menu's People

Contributors

srikat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.