Tagged: x
-
AuthorPosts
-
July 13, 2016 at 3:01 pm #1085501
tabaskoParticipantDear support,
my front page shows this Seperator line ‘|’ after name of the whole blog.
Like this: “Blog name |”
On all other pages it is like this: “post name | blog name”How do I get rid of this seperator on the front page?
Thank you and best regards,
tabaskoJuly 13, 2016 at 11:15 pm #1086180
FriechModeratorHi There,
Thanks for writing in! Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Then add this on your child theme’s functions.php file.
if ( ! function_exists( 'x_wp_title' ) ) : function x_wp_title( $title ) { if ( is_front_page() ) { return get_bloginfo( 'name' ) . ' | ' . get_bloginfo( 'description' ); } elseif ( is_feed() ) { return ' | RSS Feed'; } else { return trim( $title ) . ' ' . get_bloginfo( 'name' ); } } add_filter( 'wp_title', 'x_wp_title' ); endif;Hope it helps, Cheers!
July 14, 2016 at 1:18 am #1086289
tabaskoParticipantThank you Friech, this helped a lot.
For what I wanted I adjusted the code like this:if ( ! function_exists( 'x_wp_title' ) ) : function x_wp_title( $title ) { if ( is_front_page() ) { return get_bloginfo( 'name' ); // . ' | ' . get_bloginfo( 'description' ); } elseif ( is_feed() ) { return ' | RSS Feed'; } else { return trim( $title ) . ' | ' . get_bloginfo( 'name' ); } } add_filter( 'wp_title', 'x_wp_title' ); endif;July 14, 2016 at 4:11 am #1086460
LelyModeratorYou’re welcome!
Thank you for sharing your code adjustment.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1085501 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
