• Resolved tsalagi

    (@tsalagi)


    Howdy! I’m trying to find the function that looks at a theme’s css file to find the name of the theme and then displays the theme name. Any ideas?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tsalagi

    (@tsalagi)

    Sorry for the lack of info.
    Here is the comment header for the Twenty Ten theme.
    I’m looking for the function that looks at the line “Theme Name” and displays it in the admin panel.

    /*
    Theme Name: Twenty Ten
    Theme URI: http://wordpress.org/
    Description: The 2010 default theme for WordPress.
    Author: the WordPress team
    Version: 1.0 (optional)
    Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu (optional)
    
    General comments and license statement (optional).
    */

    Thread Starter tsalagi

    (@tsalagi)

    theme.php

    <?php if ( $theme = get_option('current_theme') ) echo $theme; ?>

    Thread Starter tsalagi

    (@tsalagi)

    Thanks. Works like a charm!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hook into Appearance Theme Page Theme Name’ is closed to new replies.