Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter Kins

    (@kins)

    I haven’t…
    It’s totally odd.

    Thread Starter Kins

    (@kins)

    /*
    Theme Name:     Thème monthème (thirteen Child)
    Theme URI:      https://example.com/
    Description:    Thème Lisbeth de beauté
    Author:         Votre nom ici
    Author URI:     https://example.com/about/
    Template:       twentythirteen
    Version:        0.1.0
    */
    
    @import url("../twentythirteen/style.css");

    I don’t believe the error is there : all the other things i made in my theme child works.

    Thread Starter Kins

    (@kins)

    <?php
    remove_action( 'widgets_init', 'twentythirteen_widgets_init' ); //necessary to replace parent theme's code
    function twentyten_child_widgets_init() {
    register_sidebar( array(
    'name' => __( 'Alt Primary Widget Area', 'twentyten' ),
    'id' => 'alt-primary-widget-area',
    'description' => __( 'Alt primary widget area', 'twentyten' ),
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    'after_widget' => '',
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>',
    ) );
    }
    /** Register sidebars by running twentyten_child_widgets_init() on the widgets_init hook. */
    add_action( 'widgets_init', 'twentyten_child_widgets_init' );

    [Moderator Note: Please post code & markup between backticks (not single quotes) or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    In fonctions.php (child)
    It seems to work… i’ll make tries and see Thanks for your help

    Thread Starter Kins

    (@kins)

    hum, yeah.
    And how do i do that? (a tuto perhaps?)
    And after… where i must declare this function?

    Thread Starter Kins

    (@kins)

    when i made that (change child) i have errors and my website doesnt work anymore…

    But perhaps i made it wrong.

    If you use “twentythirteen_widgets_init() {” in a functions.php in your child theme, it doesnt work… what should i do?

Viewing 5 replies - 16 through 20 (of 20 total)