Fixing Missing Titles on Shopp 1.2 Pages

If page titles aren’t showing up for Shopp “virtual” pages like Cart, Checkout, Account, etc. Try adding this snippet to your theme’s functions.php file:

add_filter('wp_title', 'title_fix',1000,1);

function title_fix ($title) {   
    if ( 0 == strlen($title) ) {
         while ( have_posts() ) : the_post();
            $new_title = get_the_title();
         endwhile;

         rewind_posts();

         return $new_title;
    } else {
        return $title;
    }
}
Fixing Missing Titles on Shopp 1.2 Pages
  • 1.00 / 5 5

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar