• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

alex2k5

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • February 6, 2019 at 1:40 pm in reply to: Apply filter to all genesis featured image calls? #489358
    alex2k5
    Participant

    OK, so I couldn't do it that way, wasn't working, but your feedback sent me on a path that did work.

    Basically looking to apply lazy load tech to the images Genesis spits out. They were not being caught by BJ Lazy Load and others because they are not in the_content, which is where they search for <img code to apply lazy load specs.

    What I did below is basically remove genesis_do_post_image, then re-add a modified version of it. The modified one is just the original, with the BJ Lazy Load filter applied before exporting genesis_markup. Working on my end.

    Would be nice if StudioPress could make this default, easier.

    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    add_action( 'genesis_entry_content', 'alex_genesis_do_post_image', 8 );
    
    function alex_genesis_do_post_image() {
    
    	if ( ! is_singular() && genesis_get_option( 'content_archive_thumbnail' ) ) {
    	    $img = genesis_get_image( array(
    	      'format'  => 'html',
    	      'size'    => genesis_get_option( 'image_size' ),
    	      'context' => 'archive',
    	      'attr'    => genesis_parse_attr( 'entry-image', array() ),
    	    ) );
    
    	    $img = apply_filters( 'bj_lazy_load_html', $img );
    	
    	    if ( ! empty( $img ) ) {
    	      genesis_markup( array(
    	        'open'    => '<a %s>',
    	        'close'   => '</a>',
    	        'content' => wp_make_content_images_responsive( $img ),
    	        'context' => 'entry-image-link',
    	      ) );
    	    }
    	  }
    }
    February 6, 2019 at 12:57 pm in reply to: Apply filter to all genesis featured image calls? #489357
    alex2k5
    Participant

    Thanks much. I will give it a shot.

    September 30, 2013 at 4:16 pm in reply to: Genesis 2.0 Footer Hook Method Question #64842
    alex2k5
    Participant

    Figured it out. Needed to alter the hook order to fire before the genesis_entry_footer_markup_close function, which is 15.

    add_action( 'genesis_entry_footer', 'post_taxonomy_filter', 14);

    That puts things inside the <footer></footer> block, after the default post-meta, but before </footer>.

    March 28, 2013 at 7:55 am in reply to: First Genesis Site Live #31725
    alex2k5
    Participant

    Looks very good. Why did you put it in a sub domain? And what theme did you use?

    Subdomain - because we were migrating from another cms which was in root, needed to be able to direct old to new. Easier this way.

    Appears he built it from the Sample theme. Very nicely done.

    Yes, correct. Started with sample theme, built it out from there. Once I got a hold of the themes associated with Genesis and realized most were just altered templates to include additional widget areas, I figured I could do that myself if needed. For now I've decided not to do even that, just use the pagination of default view with some tweaks to image display. That is similar to what we had before on other CMS, so it transitions well.

    February 17, 2013 at 7:04 pm in reply to: add div parallel with breadcrumbs div #20916
    alex2k5
    Participant

    I looked at that too, completely missed the prefix line. I should be able to add it into prefix/suffix accordingly. Thanks a lot!

    February 2, 2013 at 7:38 pm in reply to: Add content box after post-meta #17503
    alex2k5
    Participant

    I think I actually got it, right before you posted that. I added 100 to the end of the line, I saw something mentioning ordering, didn't/don't fully quite get it yet, but figured I'd try it out, did the trick.

    add_action('genesis_after_post_content','functionname',100);

    Now I just need to go research why that worked, what it did fully.

    I have the site blocked to all but my IP with a construction message because it's in development, but if you want to take a look, LMK your IP if you are comfortable with that. Thanks!

    February 2, 2013 at 6:33 pm in reply to: Add content box after post-meta #17495
    alex2k5
    Participant

    Directly after the post-meta div. Which comes after the post_content area. When i hook it into genesis_after_post_content, I get

    content
    new data
    post-mea

    I want

    content
    post-meta
    new data

    Thanks.

    February 1, 2013 at 1:47 pm in reply to: If statement to check if more than one image attached #17147
    alex2k5
    Participant

    I got this sorted, thanks.

    February 1, 2013 at 11:27 am in reply to: bbPress2 BBCode & Content Limiting #17103
    alex2k5
    Participant

    Figured it out. The excerpt, and even that custom code you linked to, strips out shortcode before processing. In that custom code you linked to, commenting out

    //$text = strip_shortcodes( $text );

    Gets the desired result. I may run into issues later if I start using shortcode early on in the post content, but for now, seems to do the trick.

    Thanks for the help!

    February 1, 2013 at 10:35 am in reply to: If statement to check if more than one image attached #17081
    alex2k5
    Participant

    Code isn't parsing correctly, will try again.

    add_action('genesis_after_post_content','gogallery', 0) ;
    function gogallery() {
    if (is_singular()) {
    $attachments34 = get_children(
    array(
    'post_type' => 'attachment',
    'post_parent' => $post->ID
    ));
    if(count($attachments34) > 1) {
    echo 'hello';
    }
    }
    }

    January 31, 2013 at 8:48 pm in reply to: bbPress2 BBCode & Content Limiting #16955
    alex2k5
    Participant

    I did find and try that option you posted earlier, adding [B] and [URL] and variants to the ones there, but it did not work.

    I will look at the options in your link now.

    Thanks a lot, appreciate the quick responses.

    January 31, 2013 at 7:22 pm in reply to: bbPress2 BBCode & Content Limiting #16922
    alex2k5
    Participant

    Ahh, so it's the plugin then. Is there a way using hooks to tell genesis or the genesis plugin to process the html using that bbcode plugin before running it's sanitizing process?

    January 31, 2013 at 6:40 pm in reply to: bbPress2 BBCode & Content Limiting #16909
    alex2k5
    Participant

    In a default situation, does it strip out the text between opening and closing HTML tags as well? Or just the HTML within brackets?

    For many of the blocked layouts, using the more tag won't work. They only work well when every block is roughly the same dimensions. Our text content, even with the more tag, is different per post. That's why I wanted to use the limiter. I don't prefer, but can live with HTML being stripped. However, the inner text of the HTML tags need to show up or else the teaser text is unusable.

    I am in the process of migrating to WordPress from another CMS system, so I have a lot of pre-existing content not created with these features in mind. Trying to make it work within the Genesis framework as much as I can.

    Thanks for the reply.

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble