Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26912

    Hi, When I search using the search function in the header it separates the results into “portfolio items” and “pages”. How do I change the “portfolio items” text to say “recipes”.

    #132090

    Open up functions-enfold.php and replace

    if(isset($post_type_obj[$key]->labels->name))
    {
    $output .= "<h4>".$post_type_obj[$key]->labels->name."</h4>";
    }

    with

    if(isset($post_type_obj[$key]->labels->name))
    {
    if($post_type_obj[$key]->labels->name == 'Portfolio Items')
    {
    $output .= "<h4>Recipes</h4>";
    }
    else if($post_type_obj[$key]->labels->name == 'Pages')
    {
    $output .= "<h4>My Pages</h4>";
    }
    else
    {
    $output .= "<h4>".$post_type_obj[$key]->labels->name."</h4>";
    }
    }

    and instead of “My Pages” insert your custom label text for pages.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘search drop down titles’ is closed to new replies.