Giter Site home page Giter Site logo

benjaminluoma / gridable Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pixelgrade/gridable

0.0 2.0 0.0 852 KB

The Missing WordPress Grid Content Editor

License: GNU General Public License v3.0

PHP 3.79% CSS 5.59% JavaScript 89.93% Shell 0.41% HTML 0.27%

gridable's Introduction

Gridable

The Missed Grid Content Editor


Remove gridable style?

Gridable adds some CSS style in front-end to handle the grid, but if you want to use your grid system or something like Bootstrap you may want to disable this behavior by using this filter:

add_filter('gridable_load_public_style' '__return_false' );

Note: We may add an option for this feature, but this filter will always have the last say!

Row and Column templates

Each row is represented by the [row][/row] shortcode and be sure that there is a template file which can be found in gridable/public/partials/row.php.

You may overwrite this file in your theme in template-parts/gridable/row.php with your markup, but this is highly NOT recommended, only for desperate cases.

The right way would be to use the actions and filters available.

  • gridable_before_row_render and gridable_before_after_render - action - You can use them to add an extra wrapper

  • <div class="row" > - gridable_row_class - filter

  • <div class="row" data-custom-attribute="value" > - gridable_row_attributes - filter - Did you know you can add custom attributes?

  • gridable_before_row_content_render and gridable_after_row_content_render - action - You can use them to add an inner wrapper

  • gridable_render_shortcodes_in_row - filter - You can chose NOT to run inner shortcodes since they run by default

  • gridable_the_row_content - filter - In case you need to filter the content of a specific row

Need some grid attributes?

This plugin adds a nice interface to edit row or column custom attributes

<script src="https://gist.github.com/andreilupu/2ed88a589ece14a8a8afdb1170db9e43.js"></script>

gridable's People

Contributors

razwan avatar cristianfrumusanu avatar

Watchers

James Cloos avatar Benjamin Luoma 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.