Community Forums › Forums › Archived Forums › Design Tips and Tricks › Metro Homepage Blog Image, Move Below Title & More Text Link
Tagged: blog, featured posts, homepage, Metro, thumbnail
- This topic has 3 replies, 2 voices, and was last updated 12 years, 5 months ago by
rfmeier.
-
AuthorPosts
-
June 16, 2013 at 9:10 pm #46303
devnick
MemberI 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)
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,
-NickJune 17, 2013 at 7:52 am #46336rfmeier
MemberNick,
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.
June 17, 2013 at 11:54 am #46376devnick
MemberRyan,
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.
June 17, 2013 at 1:28 pm #46391rfmeier
MemberNick,
The link you provided is one way of doing it. I would take the plugin route personally.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.