WordPress.org

Ready to get started?Download WordPress

Forums

Title not showing on main url (1 post)

  1. Danilux
    Member
    Posted 3 years ago #

    Hi, I'm using wordpress to build a portfolio page, I have created 4 pages:
    Home, Portfolio, Contact, About. In title I'm using the following code to show the title of the current page plus the name of the website:
    <?php wp_title('•','true','right'); ?><?php bloginfo('name'); ?>

    Everything works fine each one shows the title along with the name for all four pages:

    http://localhost/home/ = Home • Site Name
    http://localhost/portfolio/ = Portfolio • Site Name
    http://localhost/contact/ = Contact • Site Name
    http://localhost/about/ = About • Site Name

    But when I go to the main url http://localhost/ it displays the home page but in the browser's tab it shows only the name of the site and not the title of the actual page which should be 'home'.

    I'm using wamp locally and a custome template for each page because each has unique content so it goes like: home.php portfolio.php contact.php and about.php.

    In the dashboard I have set in reading setting the Home custome template as static page. Any help would be appreciated, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic