GithubHelp home page GithubHelp logo

Comments (7)

GaryJones avatar GaryJones commented on September 4, 2024

Yes please - one that strips menus, sidebars etc. Again, if it's not needed, then it does no harm sitting in the theme folder.

from ea-genesis-child.

billerickson avatar billerickson commented on September 4, 2024

Example: https://gist.github.com/billerickson/4989908

The last function is most important, it removes the header-right widget area without having to rebuild the header.

from ea-genesis-child.

jaredatch avatar jaredatch commented on September 4, 2024

So which elements should we remove? Maybe remove all of them except content, and then they can easily be deleted if needed?

from ea-genesis-child.

billerickson avatar billerickson commented on September 4, 2024

I'd say just go full width, remove menu, footer widgets and header-right widget area

Leave the title. I really prefer using Genesis Title Toggle for removing titles than hardcoding it into theme files.

from ea-genesis-child.

jaredatch avatar jaredatch commented on September 4, 2024

Sounds good to me.

from ea-genesis-child.

jb510 avatar jb510 commented on September 4, 2024

I use this:
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); remove_action( 'genesis_header', 'genesis_do_header' ); remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); remove_action( 'genesis_after_header', 'genesis_do_nav' ); remove_action( 'genesis_after_header', 'genesis_do_subnav' ); remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs'); remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' ); remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
I don't think anything changed in those hooks for HTML5 but I'd need to check

Sometimes I add a body class too...

from ea-genesis-child.

jaredatch avatar jaredatch commented on September 4, 2024

Alright, I created a template that basically removes everything possibly needed.

  • It's easier/faster to just delete what you need to keep (such as the header) than add the code to remove it
  • It makes a good quick reference if you need to remove these elements for other areas or templates

from ea-genesis-child.

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.