Forum Replies Created
-
AuthorPosts
-
December 23, 2015 at 10:04 pm in reply to: Customize 'Read More' Link on Archive Page by Category Type #174688SethReslerParticipant
Found the answer. Combined them into one snippet:
//*Read More Button For Excerpt function themeprefix_excerpt_read_more_link( $output ) { global $post; if ( in_category(502) ) { return $output . ' <a href="' . get_permalink( $post->ID ) . '" class="more-link" title="Watch Webinar">Watch Webinar</a>'; } elseif ( in_category(474) ) { return $output . ' <a href="' . get_permalink( $post->ID ) . '" class="more-link" title="See Video">See Video</a>'; } elseif ( in_category(494) ) { return $output . ' <a href="' . get_permalink( $post->ID ) . '" class="more-link" title="Get It">Get It</a>'; } else { return $output . ' <a href="' . get_permalink( $post->ID ) . '" class="more-link" title="Read More">Read More</a>'; } } add_filter( 'the_excerpt', 'themeprefix_excerpt_read_more_link' );
SethReslerParticipantIs the plan to upgrade the Education theme to HTML 5? Is there an ETA?
Thanks!
February 22, 2014 at 1:10 am in reply to: Simple Hooks: Add Post Category to genesis_title hook #91885SethReslerParticipantThe answer is that the Yoast SEO plugin was overriding this hook (and apparently forcing the php outside the </title> tag). I went into the Yoast settings and added %%category%% to the Title Template for posts, and scrapped the genesis_title code in Simple Hooks altogether. It seems to be working.
February 21, 2014 at 5:38 pm in reply to: Google Analytics Code Not Appearing on WordPress Login Page #91816SethReslerParticipantFound the answer: http://www.blogsynthesis.com/track-wordpress-login-register-and-dashboard/
Thank you!
May 28, 2013 at 12:52 am in reply to: Education Theme: Move the Call to Action bar above the Featured Widgets #42877SethReslerParticipantPerfect, thank you!
May 7, 2013 at 1:26 am in reply to: Create new layout: Secondary Sidebar / Content (No Primary) #39679SethReslerParticipantI figured it out. This goes in functions.php:
`
//** Add sidebar-alt-content layout **//
genesis_register_layout( 'sidebar-alt-content', array(
'label' => 'Small Sidebar/Content',
'img' => CHILD_URL . '/images/sidebar-alt-content',
) );add_action('genesis_before', 'gt_new_custom_layout_logic');
function gt_new_custom_layout_logic() {$site_layout = genesis_site_layout();
if ( $site_layout == 'sidebar-alt-content' ) {
// Remove default genesis sidebars
remove_action( 'genesis_after_content', 'genesis_get_sidebar' );
remove_action( 'genesis_after_content_sidebar_wrap', 'genesis_get_sidebar_alt');
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_get_sidebar_alt' );}
}`
This post was very helpful: http://genesistutorials.com/understanding-genesis-layout-options/
May 7, 2013 at 12:13 am in reply to: Create new layout: Secondary Sidebar / Content (No Primary) #39669SethReslerParticipantTo follow up, I also have BBPress installed, and I want to remove the primary sidebar on the BBPress pages. Is there a function that can check for a particular custom post type, and then remove the primary sidebar on that post type? Thanks!
Alternatively, maybe a template?
Thanks!
May 4, 2013 at 11:32 am in reply to: Create new layout: Secondary Sidebar / Content (No Primary) #39279SethReslerParticipantThis tutorial is great, but there is no "custom class" option for the layout on Category or Tag archives. What can I do for these pages?
May 4, 2013 at 9:43 am in reply to: Create new layout: Secondary Sidebar / Content (No Primary) #39255SethReslerParticipantThanks, that was very useful!
May 3, 2013 at 9:43 pm in reply to: How to Display Taxonomy Description on Taxonomy Archive Page? #39203SethReslerParticipantI used the Simple Sidebars plugin to insert this code before the loop to get the taxonomy description on the archive page:
`
if(is_tax()) {
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
?>
`description;
?> <!--?php }But I can't get the shortcodes to work. I've tried:
add_filter( ‘term_description’, ‘shortcode_unautop’);
add_filter( ‘term_description’, ‘do_shortcode’ );
in the functions.php file but no luck. Any ideas? Thanks!
November 25, 2012 at 11:30 pm in reply to: Remove Posts from Homepage in Education Child Theme #1694SethReslerParticipantPerfect, thanks for your help!
SethReslerParticipantWe're close! That eliminated the primary sidebar, but it also eliminated the secondary sidebar, which I do want to display on the homepage. I only want to get rid of the primary sidebar.
SethReslerParticipantScroll to the bottom and you'll see the "Event Schedule" which is from the primary sidebar.
SethReslerParticipantThis works, but the primary sidebar still shows up. How do I remove that from just the homepage? Thanks!
-
AuthorPosts