ebaad
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Event page title is replaced by ArchiveYou are absolutely correct, when I started this website few years back, I was still learning and did not know much about child theme and how to create it, but now as much changes I have done, I think that is the right way to go.
I am testing one on the side and once that is functional, will replace this with child-theme.
Forum: Plugins
In reply to: [The Events Calendar] Event page title is replaced by ArchiveFINALLY!!!!
Found that there is a helpers file in include directory that sets up the $title, so commented out the original line and esc_html__ custom message ‘Event’ and it did the magic!!!
It feels so good to figure this out, but do credit you for inspiration.
Thanks.
/** * Return a page title based on the current page. * * @since 1.0.0 * * @return string Returns the current page title. */ function primer_get_the_page_title() { $title = ''; $post = get_queried_object(); switch ( true ) { case is_front_page() : $title = ( 'posts' === get_option( 'show_on_front' ) ) ? get_theme_mod( 'front_page_title', '' ) : get_the_title( get_option( 'page_on_front' ) ); break; case is_home() : $title = get_the_title( get_option( 'page_for_posts' ) ); break; case is_archive() : /* ADDED EVENT TITLE TO REPLACE ARCHIVE IN EVENT CALENDAR POSTS --- EA 01/03/2019*/ //$title = wp_strip_all_tags( get_the_archive_title() ); $title = esc_html__('Events', 'primer'); break; case is_search() : $title = sprintf( /* translators: search term */ esc_html__( 'Search Results for: %s', 'primer' ), get_search_query() );
- This reply was modified 9 months, 1 week ago by ebaad.
- This reply was modified 9 months, 1 week ago by James Huff.
Forum: Plugins
In reply to: [The Events Calendar] Event page title is replaced by ArchiveThis is great, but I don’t see this piece of code in my theme, tried to grep the directory, but no luck so far.
I was able to create a custom link in menu and pointed it to events page to add a nav link.Yes, it sucks to have everything available in pro version… 🙁
Forum: Plugins
In reply to: [The Events Calendar] Event page title is replaced by ArchiveAlso just noticed that “Blog” link shows as active link if “Events” is clicked, not sure why…
- This reply was modified 9 months, 1 week ago by ebaad.
Forum: Plugins
In reply to: [The Events Calendar] Event page title is replaced by ArchiveThanks for helping to resolve, I tried to install the same plugin on test site with simple twentytwelve theme and it works perfect.
Still not sure what is conflicting to create this issue.
Please let me know if you find any thing.
Thanks.