Viewing 4 replies - 1 through 4 (of 4 total)
  • pedjas

    (@pedjas)

    I could not find a way how to translate TITLE tag.

    Thread Starter jani74

    (@jani74)

    just checked something a few minutes ago…

    if I change in header.php the title tag as below, the conversion is working.

    <title><?php echo get_the_title(); ?></title>

    now just need a conditional case to do get_the_title at posts&pages and to do wp_title at any other cases (search, category view etc.)

    Thread Starter jani74

    (@jani74)

    yep, something like this in header.php will solve the problem:

    <title><?php if ((is_page()) || (is_single())) { echo get_the_title(); echo " | sitename"; } elseif (is_search()) { echo "sitename"; } else { wp_title( '|', true, 'right' ); } ?></title>

    there is problem with conversion again at “search” but i’ll survive that ??

    pedjas

    (@pedjas)

    Great! It’s good to know.
    Well done!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘doesn't change title tag on pages’ is closed to new replies.