Comments (7)
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.
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.
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.
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.
Sounds good to me.
from ea-genesis-child.
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.
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)
- Accessibility Error: Empty Button on Submenu dropdown HOT 3
- Create some basic comment styling
- 3rd party font rendering work around HOT 6
- Create GF basic error styling HOT 5
- Remove customizer stuff HOT 4
- Remove hover on hyperlinked icons HOT 1
- Genesis menu disappears sometimes HOT 1
- Smooth Scroll problem
- Add accessibility
- Flexbox Menus and more
- global.js updates for better validation HOT 6
- Genesis 2.3.0 adds image wrapper markup
- Remove the site title if a custom header is used? HOT 3
- CSS HOT 1
- Is this comment markup really correct? HOT 1
- ACF Custom Fields disappear from Admin menu HOT 2
- Undefined mixin media HOT 1
- Editor Style Not working HOT 1
- About menu
- Svg Icon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ea-genesis-child.