Minimum Theme: Email Opt-in Homepage

Community Forums Forums Design Tips and Tricks Minimum Theme: Email Opt-in Homepage

This topic is: resolved

This topic contains 9 replies, has 2 voices, and was last updated by  firstname_galo 1 year, 7 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #35047

    firstname_galo
    Participant
    Post count: 7

    I’m currently using the minimum theme and would like to replace the sample picture on the homepage for an email optin with a picture ( like the one on http://www.thechangeblog.com/ ) Any ideas how I would go about doing this?

    My site is http://www.themovementproject.net

    #35123

    braddalton
    Participant
    Post count: 10567
    #35279

    firstname_galo
    Participant
    Post count: 7

    Thanks brad. I just tried this and it shows the optin underneath the image of the homepage. Isn’t there a way to get it so that it completely replaces the image header so that it looks like the one on http://www.thechangeblog.com.

     

    #35289

    braddalton
    Participant
    Post count: 10567

    The link you have provided to your site is returning a 404 page not found error message.

    Please paste a text link to your site.

    Remove this code from your child themes functions.php file or comment it out:
    [php]
    /** Add the featured image section */
    add_action( ‘genesis_after_header’, ‘minimum_featured_image’ );
    function minimum_featured_image() {
    if ( is_home() ) {
    echo ‘<div id="featured-image"><img src="’. get_stylesheet_directory_uri() . ‘/images/sample.jpg" /></div>’;
    }
    elseif ( is_singular( array( ‘post’, ‘page’ ) ) && has_post_thumbnail() ){
    echo ‘<div id="featured-image">’;
    echo get_the_post_thumbnail($thumbnail->ID, ‘header’);
    echo ‘</div>’;
    }
    }
    [/php]

    Commented out:
    [php]
    /** Comment This Function Out
    add_action( ‘genesis_after_header’, ‘minimum_featured_image’ );
    function minimum_featured_image() {
    if ( is_home() ) {
    echo ‘<div id="featured-image"><img src="’. get_stylesheet_directory_uri() . ‘/images/sample.jpg" /></div>’;
    }
    elseif ( is_singular( array( ‘post’, ‘page’ ) ) && has_post_thumbnail() ){
    echo ‘<div id="featured-image">’;
    echo get_the_post_thumbnail($thumbnail->ID, ‘header’);
    echo ‘</div>’;
    }
    }
    **/
    [/php]

    This code is executing a function on the same hook the feature box code uses.


    #35292

    firstname_galo
    Participant
    Post count: 7

    Thanks Brad. I’ll give it a try.

    http://www.themovementproject.net

    #35297

    firstname_galo
    Participant
    Post count: 7

    Brad,

    The perfect example of what I’m shooting for is  on here http://genesis.extenderplugin.com/

    Instead of video, a picture

    #35305

    braddalton
    Participant
    Post count: 10567

    Very easy to do that:

    You can use content columns and create that feature box in your editor.

    You might need to install a shortcodes plugin so you can use the tick images in your list.

    Then paste the code into a text widget.


    #35310

    firstname_galo
    Participant
    Post count: 7

    So I’m trying to work with the columns but can’t seem to get it. Do I have to create a separate featured box so that one aligns left and the other aligns right?

    #35315

    braddalton
    Participant
    Post count: 10567

    I wrote about this recently.

    You can find a plugin which adds 2/3 and 1/3 columns.


    #35446

    firstname_galo
    Participant
    Post count: 7

    Thanks Brad. I was able to get it! Appreciate your help.

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Minimum Theme: Email Opt-in Homepage’ is closed to new replies.