WordPress.org

Ready to get started?Download WordPress

Forums

Add to the Template Drop-down (7 posts)

  1. coutinhor
    Member
    Posted 1 year ago #

    How do I add values or templates to the Template Drop-Down options under Page Attributes.
    I am using the Twenty Eleven theme and I only see three options
    - Default Template
    - Showcase Template and
    - Sidebar Template

    I would like to add a Archives or a custom Template so I can create a page where I can create an index of all the blogs.

  2. premiumwp
    Member
    Posted 1 year ago #

  3. coutinhor
    Member
    Posted 1 year ago #

    I had read this article. It does not explain how I can see new templates from a drop down option from a page while using the twenty eleven theme.
    Thanks

  4. Shermanator
    Member
    Posted 1 year ago #

    Coutinhor

    add the following to the top of your page

    <?php
    /*
    Template name: [template name here]
    */
    ?>

    Save the file as a php extension.
    Use an FTP client (Filezilla, FireFTP, etc) to upload your php file to your site's theme folder. Usually sitename.com > wp-content > themes > themename
    Refresh the WordPress side and the page template should show up in the drop-down list.

  5. premiumwp
    Member
    Posted 1 year ago #

    If you create a new page template as explained in the article above and include it in your theme along with the other page templates – it will appear as a template option in Page Attributes.

  6. coutinhor
    Member
    Posted 1 year ago #

    U are awesome. Thanks for your help. Can I ask another question?
    How do I now create an index of all blog titles with hyperlinks to the actual blog.
    Example:
    By Month or Category
    June 2012
    - Blog 1 Title
    - Blog 2 Title
    July 2012
    - Blog 1 Title
    - Blog 2 Title

    Clicking on the Blog title will then take the user to the complete blog.

  7. Shermanator
    Member
    Posted 1 year ago #

    figure out how you want to index the the blog titles. make each title link to its respective blog. <a href="blogurlgoeshere">Blog Title</a>

    if you need help with basic syntax of html/javascript/css/etc try this site: w3schools.com

Topic Closed

This topic has been closed to new replies.

About this Topic