GithubHelp home page GithubHelp logo

Ability to disable post editor and other metaboxes when "Page Builder Only" page template is used about wds-simple-page-builder HOT 11 OPEN

webdevstudios avatar webdevstudios commented on June 10, 2024
Ability to disable post editor and other metaboxes when "Page Builder Only" page template is used

from wds-simple-page-builder.

Comments (11)

modemlooper avatar modemlooper commented on June 10, 2024

can do it

from wds-simple-page-builder.

gregrickaby avatar gregrickaby commented on June 10, 2024

Maybe we can follow what register_post_type() does?

$args = array( 'supports' => array( 'editor', 'thumbnail', 'etc....' ) );

from wds-simple-page-builder.

blobaugh avatar blobaugh commented on June 10, 2024

Should we really remove non-core metaboxes such at Yoast? Those are probably fine to leave as they are purposefully added when installing plugins

from wds-simple-page-builder.

gregrickaby avatar gregrickaby commented on June 10, 2024

@blobaugh Maybe we can set Yoast priority to "low" so it goes below our Page Builder metabox? I feel like we do this on every project anyway...

from wds-simple-page-builder.

jtsternberg avatar jtsternberg commented on June 10, 2024

I just did this on a project today. It requires setting hookup to false and hooking in manually (and then remove/add_action-ing to change the hook priority). Agree with Ben, shouldn't remove all.

from wds-simple-page-builder.

jtsternberg avatar jtsternberg commented on June 10, 2024

Like this: http://b.ustin.co/pz5C

from wds-simple-page-builder.

modemlooper avatar modemlooper commented on June 10, 2024

here's how you do it per custom page template https://gist.github.com/modemlooper/fe83273ce5458ae5adfe

is the page builder template a wp page template or a SPB template part?

from wds-simple-page-builder.

jazzsequence avatar jazzsequence commented on June 10, 2024

I like this idea a lot, and I think it should be something that gets added to Page Builder. We need to be careful not to assume it's an always-on setting though, e.g. if you're using a "page builder only" template, that doesn't necessarily mean you will always want to hide the post box and various meta boxes. It needs to be something that can be toggled -- ideally in the code rather than an actual, visible option -- rather than something that works automagically. Maybe a new option value passed to wds_register_page_builder_options could handle it?

Also not sure that it's necessarily something that's always-on or always-off. Some "page builder only" pages might not need or want the post box, but others might. In that case, somehow doing something along the idea of #44 and make it conditional might be better.

At any rate, we need to tread carefully with this feature because there's a lot of use cases where it would no longer be a feature but end up being a 🪲.

from wds-simple-page-builder.

blobaugh avatar blobaugh commented on June 10, 2024

Ladybugs are cool

from wds-simple-page-builder.

modemlooper avatar modemlooper commented on June 10, 2024

Disney world employees millions of Ladybugs as they are a natural pesticide, eat lots of mosquitos

from wds-simple-page-builder.

jazzsequence avatar jazzsequence commented on June 10, 2024

...I think you guys are missing the point.
ಠ_ಠ

from wds-simple-page-builder.

Related Issues (20)

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.