• 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

theMikeD

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 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • July 3, 2013 at 8:18 am in reply to: How to I control the comment box items? #48961
    theMikeD
    Participant

    Dave, I never found a way. I had to toss the entire thing and re-do it for the sake of one colon. Dumb, but there you are.

    February 23, 2013 at 2:14 pm in reply to: How to I control the comment box items? #22438
    theMikeD
    Participant

    OK, I guess that is the solution. This can be marked as resolved.

    February 23, 2013 at 2:13 pm in reply to: Studiopress: it would be really handy if… #22437
    theMikeD
    Participant

    Beuller? Is this thing on?

    February 13, 2013 at 12:03 am in reply to: How to I control the comment box items? #20024
    theMikeD
    Participant

    Maybe the only way is to copy out the genesis_comment_callback() function into my own functions.php, rename it, modify it to my needs, and then run a filter on genesis_comment_list_args to replace the callback entry with my custom one? That seems a bit heavy handed, but perhaps thats the only way. Is that considered correct wrt genesis code practice?

    January 15, 2013 at 8:19 pm in reply to: How can I change which menu is displayed in the primary position? #12184
    theMikeD
    Participant

    Figured it out:

     

    if ( condition ) {
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_before_header', 'genesis_do_subnav' );
    }

    January 15, 2013 at 7:03 pm in reply to: How do I disable the secondary menu? #12172
    theMikeD
    Participant

    OK, I did it in a backhanded way by doing this:

    add_theme_support( 'genesis-menus', array( 'primary' => __( 'Primary Navigation Menu', 'genesis' ) ) );

    IOW only defining the main menu.

    January 5, 2013 at 9:38 pm in reply to: Studiopress: it would be really handy if… #9861
    theMikeD
    Participant

    It would also be really handy if the code block used a monospace font and obeyed spacing done with tabs. Thanks x2!

    January 5, 2013 at 9:36 pm in reply to: Modifying the excerpt on a post list page #9860
    theMikeD
    Participant

    Ahh, an extra space killed me. This code does the trick:


    function md_add_dateline( $content ) {
    $d = the_date('',"", ": ", true);
    return str_replace ('',$p, $content);
    }
    add_filter( 'the_excerpt', 'md_add_dateline');

     

    January 5, 2013 at 9:04 pm in reply to: Modifying the excerpt on a post list page #9858
    theMikeD
    Participant

    function md_add_dateline( $content ) {
    return "HELLO";
    }
    add_filter( 'the_excerpt ', 'md_add_dateline');

     

    According to the docs, that should filter the excerpt and replace it with "HELLOO" but it does not. But once I figure it out, I think that'll be the way to go.

    January 5, 2013 at 8:37 pm in reply to: Modifying the excerpt on a post list page #9848
    theMikeD
    Participant

    Geez, I hope not! There must be a way to filter the excerpt and insert the date in there!

    January 5, 2013 at 8:36 pm in reply to: How can I change the featured image size? #9847
    theMikeD
    Participant

    OK, if I tell genesis to use the large image in the UI, I can restrict the image size for smaller images in CSS. A dumb, clumsy, mobile-unfriendly solution but it doesn't look like genesis has the ability to change this.

    January 5, 2013 at 8:23 pm in reply to: How can I change the featured image size? #9843
    theMikeD
    Participant

    Yes and no. I have already implemented the grid loop. But using a grid as an example, what I want is a full-size post first, then a grid under it. I think I may have solved it however...I'll report back.

    January 5, 2013 at 8:07 pm in reply to: How can I change the featured image size? #9837
    theMikeD
    Participant

    Thanks for the reply. The size is already set up as part of wordpress, so I know that works. The goal is to be able to tell genesis to use the "large" size for the image.

    For example, in the genesis core file called post.php there exists the following:

    function 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' ), 'attr' => array( 'class' => 'alignleft post-image' ) ) );
    printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute( 'echo=0' ), $img );
    }

    }

    If I change the highlighted to

    'size' => 'large'

    I get the behaviour I want...but for all posts, not just the first one. What I want is a way to say "Make a given post have the large size image"

    ...Mike

    January 5, 2013 at 5:07 pm in reply to: My very simple custom loop isn't working. Help! #9810
    theMikeD
    Participant

    Hi Susan,

    I got it sorted out:

    remove_action('genesis_loop', 'genesis_do_loop');
    add_action('genesis_loop', 'custom_featured_loop');

    function custom_featured_loop (  ) {

    global $post;global $wp_query;

    $args = array(
    'paged' => get_query_var( 'paged' ),
    'post_type' => 'bc_featured_entries',
    );

    $wp_query = new WP_Query( $args );

    genesis_do_loop();
    }

    November 20, 2012 at 3:56 pm in reply to: Is this specific layout possible? #955
    theMikeD
    Participant

    Yes, I figured that much Sozo 🙂

    For the record, here is the code that does it:

     

    add_action( 'genesis_before_content', 'md_get_upper_content' );
    function md_get_upper_content() {
    echo "<div class='upper-content'>";
    remove_action( 'genesis_after_post', 'genesis_get_comments_template' );
    genesis_do_loop();
    echo "</div>";
    }

    remove_action('genesis_loop', 'genesis_do_loop');
    add_action('genesis_loop', 'custom_loop');
    function custom_loop () {
    global $post, $wp_query;
    add_action( 'genesis_after_post', 'genesis_get_comments_template' ); // put back the comments we stripped earlier
    remove_action( 'genesis_before_post_content', 'genesis_post_info' ); // remove author etc
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); // remove meta
    remove_action( 'genesis_post_title','genesis_do_post_title' ); // remove post title
    remove_action( 'genesis_post_content', 'genesis_do_post_content' ); // removes content
    remove_action( 'genesis_before_post_content', 'genesis_post_title' ); // remove the title
    genesis_do_loop();
    }
    genesis();
    ?>

     

    eta: this would look better if either code option or the pre option were supported, but you get the idea.

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

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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