Did you even open header.php
and take a peek? You’ll see genesis_before()
called right after the opening <body>
tag – follow the white rabbit and you get:
function genesis_before() { do_action('genesis_before'); }
And likewise for the footer. So…
add_action( 'genesis_before', 'im_a_lazy_copy_paster' );
add_action( 'genesis_after', 'im_a_lazy_copy_paster' );
function im_a_lazy_copy_paster() {
if ( current_filter() == 'genesis_before' )
echo '<script>party.start();</script>';
else
echo '<script>if ( cops.called() ) party.split();</script>';
}
Related Posts:
- Adding ads after a certain number of paragraphs within Genesis themework
- How do I turn a 404 page into an automatic search with the info from the url?
- WordPress Hide Show Content script and activate/deactivate script on screensize
- Genesis menu position change
- Is it possible to roll back to a previous customization of Genesis?
- How can I eliminate the inline styles included by default with the Genesis framewrok?
- Portfolio-template won’t show items
- Move Archive Title to Entry Title – Genesis
- Modify Genesis Custom Header CSS
- How to remove the Navigation Bar (prim. and sec.) from the Homepage for the Genesis Framework?
- Notice: Undefined variable: thumbnail [closed]
- Issue echoing the site’s title in Genesis child theme
- Passing a Variable to a Function Hooked to Genesis Entry Content
- Genesis loading of html5shiv for IE8
- Multiple loops in Genesis
- How to enable full column width in Genesis layout options
- Genesis framework : how to display the primary sidebar manually?
- How to create and set a separate template file for articles in Genesis framework? (WordPress)
- genesis grid loop only showing one column
- Plugin for user comments, star ratings, badge, activity
- Insert custom metatag in all the internal pages of the site, less in the homepage
- Cropping a thumbnail with a Genesis child theme
- Genesis themes: how do alter the markup of post meta on archive pages? [closed]
- Getting Genesis Entry Headers Back on Post Tiltes
- Genesis page template with Powerpress
- New Genesis child theme or revise current Genesis child theme [closed]
- How to change title “Search Results for:….” in search results page of genesis?
- How to display post title on top of image with Genesis Featured Posts
- How to create a page template that display posts with a certain category in the Genesis Framework?
- Genesis Style Selector causes PHP warning [closed]
- Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067
- Adding a search form inside a div
- Genesis Child and Custom Post Type
- Using Custom Templates for Custom Post Types for the Genesis Theme Framework?
- Displaying Custom Fields on Post with Genesis Child Theme
- get_post_meta not working inside loop
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- Edit/Customize the Single Page of a Genesis Sample Child Theme
- WordPress Genesis Child Theme Filter divs
- Including Custom Post Type posts in a page template contextually (or should I widget?)
- Custom Blog Post Listing in Genesis Sample Child Theme
- Custom Fields Code not echoing whats in the value field
- Log in link not showing, Comment Issue
- WordPress Genesis custom taxonomy archive shows 3 repeats of each post
- Genesis: How to add content after aside and before the content-sidebar wrap
- Problem with WordPress query on page using custom fields
- WordPress Genesis not excluding category from blog
- Select full Image Size on widget “Genesis – Featured Posts”
- How to disable inline css styles generated by Gutenberg editor?
- Display child pages on parent page: 404 message overrules shortcode in page
- Posting comment returns 404
- Need to convert string of term ids into comma separated integers for use in an arguments array
- Optimise page loading time faster on Genesis child theme [closed]
- Derive child theme from separate theme
- if statement for wordpress default featured image on single post
- If you were to start using a WordPress framework today, which one would you use? [closed]
- Display video on homepage for users who have not logged in
- Move Genesis Single Page/Single Post Title
- Add an Outside Wrapper to my Header and Make it Full Width
- Insert Ads “into” comments section in Genesis Themework
- Custom Post Types Archives and Single Pages not showing custom taxonomy data
- Show specific category posts on Genesis framework home page
- display text on the same line
- Remove genesis_404 hook from genesis_loop [closed]
- Using two loops in one WordPress template
- How can I add search box in single.php?
- Genesis / custom template page / setting the page title and meta desc
- Randomize Color Scheme Selection in Theme
- How to create a non-responsive WordPress Theme Using Genesis Framework?
- Genesis Child Theme Modifying Comments display
- Excluded category from loop
- Posts limit on homepage (genesis framework)
- Using Shortcode Result In Custom HTML Block (Using Google Sheet JQuery Result As NumScroller data-max)
- Replace header with large image on home page only, using Genesis child theme
- Override admin selected page layout
- Is_single not working properly in genesis
- get_author_posts_url() Not working
- WP Query works outside a function, not inside a function
- Adding custom PHP to existing loop in Genesis
- Custom Pagination based on Custom Post Type
- Understanding and using did_action() in a conditional statement
- Adapting functions from Genesis theme
- Menu disappears with custom post type link
- What could interfere with changing iframe contents with href?
- using theme check plugin to remove waring and errors from my theme
- Need help setting up a search form for wordpress [duplicate]
- Syling Custom Fields echo’s from from functions.php
- Retina for WordPress Posts
- how to use the_excerpt for two post queries?
- Want to display page content after password prompt without page reload
- query posts returns 10 records
- What to do when child theme is out of date with parent theme
- $do_not_duplicate is not working in genesis theme
- Return 404 for /search/ queries – For Genesis
- I want my homepage navbar to have different styling to the rest of my site, how can I do this?
- display last post modified date in genesis child themes
- Inserting a shortcode into a genesis menu?
- How do i add logo in wordpress studiopress (glam theme)?
- Adding a new layout for genesis
- Can anyone help me with replace genesis post excerpt with yoast meta description and if there is no meta description show the excerpt?