• Hello,

    I am using quickchic theme for my site. Title showing like “Theme Preview >> Worth A Thousand Words” but I would like to change title as “Worth A Thousand Words << Theme Preview”.

    Below code in theme functions.php

    /* Title filter */

    function quick_title( $title ) {

    // Get the Site Name

    $site_name = get_bloginfo( ‘name’ );

    // Prepend it to the default output

    $filtered_title = $site_name . $title;

    // Return the modified title

    return $filtered_title;

    }

    add_filter( ‘wp_title’, ‘quick_title’);

    Is there any modifications to do with this code for title change.

    Please provide your valuable suggestions on this.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • i would guess that changing $filtered_title to $filtered_title = $title . $site_name; would fix this…

    Thread Starter couponcodesfordiscount

    (@couponcodesfordiscount)

    Hello tiaanswart,

    Thanks for your suggestion but not working what you have said like “$filtered_title = $title . $site_name;”.

    Any one idea about this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Title filter in function.php’ is closed to new replies.