Metro Homepage Blog Image, Move Below Title & More Text Link

Community Forums Forums Design Tips and Tricks Metro Homepage Blog Image, Move Below Title & More Text Link

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  rfmeier 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #46303

    devnick
    Participant
    Post count: 12

    I placed the Genesis Featured Posts widget in Home – Bottom

    I’m trying to figure out how to change the structure and where… I want to move the image down, below the title in Metro because of long Post Titles.

    Here is an image of what I’m trying to do (sorry, no live link to site)

    http://tinyurl.com/m6jgufk

    Basically, it involves moving the thumbnail image link tag below the <h2> post title, see below.

    
    DEFAULT
     <div class="post-93 post type-post status-publish format-standard hentry category-uncategorized entry">
     <a href="http://..."><img width="150" height="150" src="http://..." class="attachment-thumbnail"></a>
     <h2>
     <a href="http://...">Now Two Great Lakes 100 Mile Triathlons in 2013</a>
     </h2>
     <p>In 2013... [...]</p>
     </div>
     CHANGE TO
     <div class="post-87 post type-post status-publish format-standard hentry category-uncategorized entry">
     <h2>
     <a href="http://...">Missouri Gets New Rev3 Branson Triathlon Event in September</a>
     </h2>
     <a href="http://..." class="alignleft"><img width="150" height="150" src="http://..." class="attachment-thumbnail"></a>
     <p>Branson,... [...]</p>
     </div>
    
    

    Also, trying to figure out why the [Read More] option isn’t working or showing up?

    Thanks,
    -Nick

    • This topic was modified 10 months ago by  devnick.
    • This topic was modified 10 months ago by  devnick.
    #46336

    rfmeier
    Participant
    Post count: 517

    Nick,

    Looking at the widget source, there does not seem to be any options (hooks) to re-arrange the element layout of the widget. A plugin/widget could be created to extend the Genesis_Featured_Post class to display a custom layout… unless there is another widget with more options.

    As for the [Read More], the source is below. Try a few different options.

    if ( ! empty( $instance['show_content'] ) ) {
    
    	echo genesis_html5() ? '<div class="entry-content">' : '';
    
    	if ( 'excerpt' == $instance['show_content'] )
    		the_excerpt();
    	elseif ( 'content-limit' == $instance['show_content'] )
    		the_content_limit( (int) $instance['content_limit'], esc_html( $instance['more_text'] ) );
    	else
    		the_content( esc_html( $instance['more_text'] ) );
    
    	echo genesis_html5() ? '</div>' : '';
    
    }

    I hope this helps point you in the right direction.


    Ryan Meier – Web Developer @ Solid Interactive
    Twitter

    #46376

    devnick
    Participant
    Post count: 12

    Ryan,

    Thanks.  I guess you mean do something like this (link), just moving the featured-post-widget.php to my child theme folder?  Then I would tweak the Title and Image structure.

    On the [Read More], does it not work by default?  Strange that I would have to add code.

    #46391

    rfmeier
    Participant
    Post count: 517

    Nick,

    The link you provided is one way of doing it. I would take the plugin route personally.


    Ryan Meier – Web Developer @ Solid Interactive
    Twitter

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

You must be logged in to reply to this topic.