GithubHelp home page GithubHelp logo

bz-projects / hide-block Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 1.49 MB

WordPress Gutenberg Editor - Hide Block

Home Page: https://wordpress.org/plugins/hide-block

License: GNU General Public License v2.0

PHP 52.52% JavaScript 45.67% SCSS 1.17% CSS 0.64%
gutenberg gutenberg-plugin gutenberg-block gutenberg-hide-block wordpress wordpress-plugin wp-plugin wp

hide-block's People

Contributors

benjaminzekavica avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

hide-block's Issues

Columns Flexbox issue in Block Editor when no specific width is selected

Hi Ben, great plugin!
But I’ve just found a small issue when using the columns block.

By wrapping all the elements inside the .hide-block section elements, non-specified-width columns are collapsing and are breaking the intended layout.

This affects only the Editor view.

This is how it should look:

correct

This is what happens when the hide-block plugin is activated

broken

Bad return for hiddenblock

if( !empty( $block['attrs']['hiddenblock'] ) ) {
	return null;
} else {
    return $block_content;
}

this crashes with wordpress 6.5

you should return ""

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.