Results 1 to 2 of 2

Thread: Child Theme

  1. #1
    Thread Starter
    Newbie ruccola's Avatar
    Join Date
    Nov 2025
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Child Theme

    Hi,

    i try to build a child theme for ClassiPress as described in the tuturial.

    But in my backend i get following error massage:

    classipress-child: Missing template. Standalone themes must have a template file in templates/index.html or index.php. Child themes require a template header in the stylesheet style.css.

    This is the code in in both files:

    style.css:

    @charset "UTF-8";
    /* CSS Document */

    /*
    Themenname: ClassiPress Beispiel-Child-Theme
    Theme-URI: http://appthemes.com/
    Beschreibung: Beispiel eines Child-Themes für das ClassiPress-Theme
    Autor: AppThemes
    Autoren-URI: http://appthemes.com/
    Vorlage: Classipress
    Version: 0.1.0
    */

    body, h1, h2, h3, h4, h5, h6 {
    Schriftart: "Century Gothic", CenturyGothic, "AppleGothic", serifenlos;
    }


    functions.php:

    <?php
    /**
    * ClassiPress-Child-Theme-Funktionen.
    *
    * VOR DER VERWENDUNG: Verschieben Sie das classiPress-Child-Theme in den Ordner /themes/.
    *
    * @package ClassiPress\Functions
    * @author AppThemes
    * @since ClassiPress 3.0
    */

    /**
    * Registriert das Stylesheet für das Child-Theme.
    */

    function classipress_child_styles() {
    wp_enqueue_style( 'child-style', get_stylesheet_uri() );

    // Deaktiviert die ClassiPress-Standardstile.
    //wp_dequeue_style( 'at-main' );

    // Deaktiviere die Stile des Foundation-Frameworks.
    //wp_dequeue_style( 'foundation' );
    }

    add_action( 'wp_enqueue_scripts', 'classipress_child_styles', 999 );

    /**
    * Registriert die Skripte für das Child-Theme.
    */

    function classipress_child_scripts() {
    wp_enqueue_script( 'child-script', get_stylesheet_directory_uri() . '/general.js' );

    // Deaktiviere die ClassiPress-Standardskripte.
    //wp_dequeue_script( 'theme-scripts' );

    // Deaktiviere die Foundation-Framework-Skripte.
    //wp_dequeue_script( 'foundation' );
    //wp_dequeue_script( 'foundation-motion-ui' );
    }

    add_action( 'wp_enqueue_scripts', 'classipress_child_scripts', 999 );

    /**
    * Diese Funktion migriert Modifikationen des übergeordneten Themes zum untergeordneten Theme.
    */

    function classipress_child_assign_mods_on_activation() {

    if ( empty( get_theme_mod( 'migrated_from_parent' ) ) ) {
    $theme = get_option( 'stylesheet' );
    update_option( "theme_mods_$theme", get_option( 'theme_mods_classipress' ) );
    set_theme_mod( 'migrated_from_parent', 1 );
    }
    }

    add_action( 'after_switch_theme', 'classipress_child_assign_mods_on_activation' );


    Thank you for helping!

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,369
    Thanks
    173
    Thanked 3,447 Times in 3,318 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: November 14th, 2014, 08:40 AM
  2. [SOLVED] Pre-Sales Question - child theme of a child theme?
    By dorothy in forum Directory
    Replies: 2
    Last Post: August 7th, 2014, 09:09 PM
  3. Create a child theme of FlatPress child theme
    By dabesa in forum FlatPress
    Replies: 1
    Last Post: May 3rd, 2014, 07:10 AM
  4. creating child templates while using a child theme
    By bannerspace in forum Ultra Classifieds
    Replies: 5
    Last Post: January 10th, 2014, 06:26 AM