studio481
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hemingway] Excerpt Not WorkingThank you, Jarret! That worked! I really appreciate your assistance!
- This reply was modified 5 years, 8 months ago by studio481.
Forum: Themes and Templates
In reply to: [Hemingway] Excerpt Not WorkingJarret,
Thank you again for your assistance. So I copied content.php over to the child theme and restored the original to
the_content();
on line 93.I also removed all content from the excerpt field on the latest post and sure enough, it choose the first 312 characters and put a Continue Reading button. Good clue, but not preferred. Not sure why I am not about to use the Excerpt as a teaser with a button, as is typical.
Do you think this behavior is deliberated coded into the functions.php of the parent theme? I perused it and could find no occurrence of the word excerpt. But I did find this block of code starting at line 271. But not being a PHP programmer myself, I am not sure it is the source of the trouble.
/* --------------------------------------------------------------------------------------------- CUSTOM MORE LINK TEXT --------------------------------------------------------------------------------------------- */ if ( ! function_exists( 'hemingway_custom_more_link' ) ) { function hemingway_custom_more_link( $more_link, $more_link_text ) { return str_replace( $more_link_text, __( 'Continue reading', 'hemingway' ), $more_link ); } add_filter( 'the_content_more_link', 'hemingway_custom_more_link', 10, 2 ); }
Forum: Themes and Templates
In reply to: [Hemingway] Excerpt Not WorkingThank you Jarret!
The change to the parent theme’s content.php did force the excerpt. Bravo!
However, the code for the child theme’s function.php did not result in the Continue Reading button.
Is there another step needed? I have a few other code snippets in my function.php file. Not sure if that would affect the code you suggested. Posting my function.php code below in case it is useful for troubleshooting. Thank you again for you assistance!
<?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { $parent_style = 'hemingway_style'; wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); } // Redirect Registration Page function my_registration_page_redirect() { global $pagenow; if ( ( strtolower($pagenow) == 'wp-login.php') && ( strtolower( $_GET['action']) == 'register' ) ) { wp_redirect( home_url('/registration')); } } add_filter( 'init', 'my_registration_page_redirect' ); /** * Format WordPress User's "Display Name" to Full Name on Login * ------------------------------------------------------------------------------ */ add_action( 'wp_login', 'wpse_9326315_format_user_display_name_on_login' ); function wpse_9326315_format_user_display_name_on_login( $username ) { $user = get_user_by( 'login', $username ); $first_name = get_user_meta( $user->ID, 'first_name', true ); $last_name = get_user_meta( $user->ID, 'last_name', true ); $full_name = trim( $first_name . ' ' . $last_name ); if ( ! empty( $full_name ) && ( $user->data->display_name != $full_name ) ) { $userdata = array( 'ID' => $user->ID, 'display_name' => $full_name, ); wp_update_user( $userdata ); } } function wpsupport_excerpt_more( $more ) { if ( ! is_single() ) { $more = sprintf( '<p><a class="more-link" href="%1$s">%2$s</a></p>', get_permalink( get_the_ID() ), __( 'Continue Reading', 'textdomain' ) ); } return $more; } add_filter( 'excerpt_more', 'wpsupport_excerpt_more' ); ?>
- This reply was modified 5 years, 8 months ago by studio481.
Thank you for your reply and the code. Much appreciated!
Forum: Plugins
In reply to: [Calendar Event Multi View] Link to a Specific MonthThank you for the quick response and a great plugin.
Regarding the solution you suggested, won’t that just make the calendar start in May (if it is earlier than May)? Then people interested int he current month would need to toggle back to the previous month.
I guess I was hoping there would be some syntax to add syntax to a hyperlink to the calendar page. Something like, https://www.mywebsite.com/event-calendar/&cal-par=mindate:2018-05-01 So that upon loading the page with the calendar, the calendar automatically advances to May. But those linking in the normal way (www.mywebsite.com/event-calendar/) would get the default, current month (April).
Possible?
+1 Please provide a way to opt out. Either a code work around or actual panel change. Sooner the better. Thank you for a great plugin.
Forum: Plugins
In reply to: [Calendar Event Multi View] Non-military time in Month ViewI figured it out. The parameters are edited on the page or post where the calendar will be posted. Got it. JSYK, not clear if you don’t real ALL of the documentation and just search for Military Time and read just that FAQ. Didn’t know where to find that Parameters box from just that blurb. fwiw. Thank you for the plugin.
Forum: Plugins
In reply to: [WP Event Calendar] How does one put Calendar on a page?Hi John,
Thank you for responding. When you say “theme-side,” do you mean the front end? In other words, it is only available in the Admin side?
Forum: Plugins
In reply to: [WP Event Calendar] How does one put Calendar on a page?Anyone?