Forum Replies Created
-
AuthorPosts
-
livelovepastaMember
Are you getting the double featured image on the homepage or on single posts?
Just on the home page, and I think I saw a code snippet somewhere where there was a way to exclude the featured image but I couldn't get it to work.
I am using the grid plugin strictly for the archives. I'm trying to achieve something similar to this site where there is a full content post followed by excerpts along with all archives being strictly grid layout: http://pinchofyum.com/
As you can see from their site, the "Read More" text is included in both the full feature as well as the following excerpts.
livelovepastaMemberI tried that but then since I need "Show Featured Image" checked, I get duplicate images from both the Post Content and the Featured Image, is there a work-around this way?
Ultimately I'd like to only have the first post on the blog home page be full content followed by 4 others showing only excerpt, then at the same time all archives strictly being grid images as is now.
But that's getting off topic 😉
livelovepastaMemberThanks Andrea! You're awesome.
livelovepastaMember<?php /** * Archive Post Class * @since 1.0.0 * * Breaks the posts into three columns * @link http://www.billerickson.net/code/grid-loop-using-post-class * * @param array $classes * @return array */ function be_archive_post_class( $classes ) { $classes[] = 'one-third'; global $wp_query; if( 0 == $wp_query->current_post || 0 == $wp_query->current_post % 3 ) $classes[] = 'first'; return $classes; } add_filter( 'post_class', 'be_archive_post_class' ); // Display featured image above title in grid remove_action( 'genesis_post_content', 'genesis_do_post_image' ); function be_teaser_image() { global $wp_query; global $loop_counter; $paged = get_query_var( 'paged' ); // if we are on the first page of a post archive page use the code // below for the post thumbnail on all but the first post if( 0 != $loop_counter && $paged < 2 ) { ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php the_post_thumbnail('grid-thumbnail'); ?> </a> <?php } if( $paged > 1 ) { ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php the_post_thumbnail('grid-thumbnail'); ?> </a> <?php } } add_action( 'genesis_before_post_title', 'be_teaser_image'); /** * Genesis Framework. * * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. * Please do all modifications in the form of a child theme. * * @package Genesis\Templates * @author StudioPress * @license GPL-2.0+ * @link http://my.studiopress.com/themes/genesis/ */ //* Template Name: Archive //* Remove standard post content output remove_action( 'genesis_post_content', 'genesis_do_post_content' ); remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); add_action( 'genesis_entry_content', 'genesis_page_archive_content' ); add_action( 'genesis_post_content', 'genesis_page_archive_content' ); /** * This function outputs sitemap-esque columns displaying all pages, * categories, authors, monthly archives, and recent posts. * * @since 1.6 */ function genesis_page_archive_content() { ?> <h4><?php _e( 'Pages:', 'genesis' ); ?></h4> <ul> <?php wp_list_pages( 'title_li=' ); ?> </ul> <h4><?php _e( 'Categories:', 'genesis' ); ?></h4> <ul> <?php wp_list_categories( 'sort_column=name&title_li=' ); ?> </ul> <h4><?php _e( 'Authors:', 'genesis' ); ?></h4> <ul> <?php wp_list_authors( 'exclude_admin=0&optioncount=1' ); ?> </ul> <h4><?php _e( 'Monthly:', 'genesis' ); ?></h4> <ul> <?php wp_get_archives( 'type=monthly' ); ?> </ul> <h4><?php _e( 'Recent Posts:', 'genesis' ); ?></h4> <ul> <?php wp_get_archives( 'type=postbypost&limit=100' ); ?> </ul> <?php } genesis();
livelovepastaMemberOk, I tried adding it to "page_archive.php" in my child theme and still nothing.
Hmm... Is this the correct place to put your code do you know? I appreciate your help by the way!
livelovepastaMemberAndrea,
I added your code above to my child theme's functions.php, then cleared my page cache and reloaded an archive page, but the titles are still above the thumbnail image?
Does your code have to be modified for html5? If you can think of anything else to try please let me know.
livelovepastaMemberI should say that before I updated, when the vertical banners were side-by-side, I was using this in my custom css section:
#blogherads li, .bhaheadlines { width: 300px !important; } #left-split { width: 160px; float: left; } #right-split { width: 160px; float: right; margin-top: 28px; margin-left: 5px; }
Maybe some of the css broke with the html5?
livelovepastaMemberAnother great archive page is here: http://www.howsweeteats.com/recipes/
If anybody knows how to achieve this please help.
Thank you!
livelovepastaMemberI am just putting the ad code in a text widget, same as the other 2 footer widgets that are showing. I took your advice and put the Search widget into the 3rd Footer Widget area and still nothing is showing up. It's just strange because I can see everything when I "view page source", I am guessing there is some broken css or something that is causing it not to show, or maybe a plugin I have installed is messing things up but I had it all working (3rd footer widget, and customized footer text with copyright info) like 2 or 3 weeks ago.
livelovepastaMemberI notice when looking in Firebug at the div id= "footer-widgets", there is no "footer-widgets-3 widget-area", only 1 and 2. And there is also no reference to my footer text.
But when looking at "page-source" the info is there for class="footer-widgets-3 widget-area", and also the footer text.
Please help, seems like it should be a simple fix. Thank you.
livelovepastaMemberThanks braddalton, yes, I forgot to mention I am using Jetpack as well. Didn't realize that plugin was doing anything to my images.
Can you recommend a managed server? I'm not sure we can justify it with our current income off the blog but maybe. If by us being throttled down by the shared server is affecting our page rank on Google and user experience then I would for sure consider it.
livelovepastaMemberI'm not sure if you meant to say "Not" using a CDN? Either way, I am still just using Bluehost shared server, was thinking about Cloudfare CDN or Google PageSpeed Services though. I am also using WP Super Cache and WP Minify, but there is something with the images that I am getting a bad score with.
Google must see it too because every time I log into Adsense, it suggests as a "High Priority" to: Combine images into CSS sprites, Leverage browser caching, Enable compression, Minimize redirects.
I'm not sure if CSS Sprites would help on my site or not, but there has got to be a way to: Serve scaled images & Optimize images possibly through customized CSS code or wp-smushit (which I have installed and am trying to use the bulk feature for old images.)
livelovepastaMemberDon't think that worked but thanks anyways. I input the code and tried clearing the cache to see if it resolve the different size widget areas but they still look different.
Marking this topic resolved though, thanks so much for the help earlier!
livelovepastaMemberThanks so much Dave. It worked!
If I could follow up with another question, do you know why the text widgets towards the bottom of my Primary Sidebar are clearly less width than some of the above widgets? I understand they are smaller ad units, and I have them set to be centered, but I thought since they were all under the same Primary Sidebar they would have the same width settings or wrap?
It's not really a big deal, if it's a simple answer then please let me know. If not, I really appreciate your help with the primary issue above!!! You made my day Dave, have a great weekend.
-
AuthorPosts