Forum Replies Created
-
AuthorPosts
-
Wordpress
MemberLook out for the extra space in
* /./* Related Content --- * /--->/* Related Content --- */Wordpress
Member^ Looks good. That's done.
As for the plugin, I've tried and it works. I can see search terms highlighted. Adding/removing code didn't affect it. I can only suggest the obvious like reinstalling the plugin or rebuilding the index. Not much else I can do there sorry.
Wordpress
MemberThis assumes HTML5 is enabled. Place this in your functions.php file:
// Set number of posts for search results to 18 add_action( 'pre_get_posts', 'child_search_posts_per_page' ); function child_search_posts_per_page( $query ) { if ( !is_admin() && $query->is_main_query() && $query->is_search() ) { $query->set( 'posts_per_page', 18 ); } }Now copy
search.phpfrom Genesis parent theme (if you haven't already), and paste it into your Child template directory. In that search.php file put in the following code (right before thegenesis();) Like so:// Remove post info & entry footer - Optional remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); remove_all_actions( 'genesis_entry_footer' ); // Excerpt and "read more" link remove_all_actions( 'genesis_entry_content' ); add_action( 'genesis_entry_content', 'child_do_post_excerpt' ); function child_do_post_excerpt() { the_excerpt(); echo '<a class="read-more-link" href="' . esc_url( get_permalink() ) . '">read more</a>'; } genesis();Note: I haven't tested with the Relevanssi plugin.
Wordpress
MemberPut this in functions.php
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );See here: http://my.studiopress.com/snippets/post-meta#remove
March 11, 2014 at 12:26 am in reply to: Search Box Suddenly Is Not Responsive??? Agency Pro Theme #94231Wordpress
MemberThat widget points to a JavaScript file, which contains
#IDX-quicksearch-34117 {width:960px;}.Add this to your css file:
#IDX-quicksearch-34117 { width: 100% !important; }If you want to keep it 960px wide then also add
max-width: 960px;Wordpress
MemberOn Chrome I directly inspect the element and look at the styles. Click around on the HTML part on the left to see if it's inheriting styles from ancestor/parent elements. In this case all I did was directly inspect the social icon, then on the HTML panel clicked its parent
<a>tag to check if it's inheriting styles from it, and it was and that's how I knew. Oh, and yeah, check the class/id name of those elements on the HTML panel.Wordpress
MemberThe social icons are being styled by the rule
a { border-bottom: 1px dotted #333; }Put this in your css file to remove that border for the social icons:.social-icons a { border: 0; }Wordpress
MemberGo to Genesis > Theme Settings > Content Archives > deselect "Include the Featured Image?"
Add this to your functions.php file:
add_action( 'genesis_before_entry_content', 'child_category_thumbnail' ); function child_category_thumbnail() { if ( in_category( 'yourcategory' ) ) { the_post_thumbnail(); } }yourcategory is your category. If you want to add more categories, then add more categories in an array separated by a comma (e.g.,
if ( in_category( array( 'category1', 'category2', 'category3' ) ) ) {)A nicer alternative (more similar to Genesis) - this links the featured image to the post, but no featured image when in single view:
add_action( 'genesis_before_entry_content', 'child_category_thumbnail' ); function child_category_thumbnail() { if ( in_category( 'yourcategory' ) && ! is_singular() ) { echo '<a href="' . get_permalink() . '">' . get_the_post_thumbnail() . '</a>'; } }Wordpress
MemberThe above is the solution for Genesis SEO.
For Yoast SEO, go to Dashboard > SEO > Titles & Metas > Home tab remove
%%sep%%Wordpress
MemberGo to Dashboard > Genesis > SEO Settings > Homepage Settings uncheck "Add site description (tagline) to
<title>on home page?site description" -
AuthorPosts