Skip to content

Commit

Permalink
issue fixed #299
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaled Mohammed committed Dec 16, 2016
1 parent 814a470 commit edc9b11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/features.php
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ function ampforwp_custom_title_tag(){
if( is_single() || is_page() ){
global $post;
$title = $post->post_title;
echo $title | get_bloginfo( 'description' ) ;
echo $title . ' | ' . get_option( 'blogdescription' ) ;
}
// title for archive pages
if ( is_archive() ) {
Expand All @@ -847,12 +847,12 @@ function ampforwp_custom_title_tag(){
// title for Static front page
if ( $redux_builder_amp['amp-frontpage-select-option']== 1 && ( is_front_page() ) ) {
$ID = $redux_builder_amp['amp-frontpage-select-option-pages'];
echo get_the_title( $ID ) | get_bloginfo('name');
echo get_the_title( $ID ) . ' | ' . get_option('blogname');

}
// title for index page
if ( is_front_page() && $redux_builder_amp['amp-frontpage-select-option']== 0 ) {
echo bloginfo('name') | get_bloginfo( 'description' ) ;
echo bloginfo('name') . ' | ' . get_option( 'blogdescription' ) ;
}
?>
</title>
Expand Down

0 comments on commit edc9b11

Please sign in to comment.