• Resolved saurabhr

    (@saurabhr)


    Hi,

    I am trying to install previously build themes on my website (running on localhost) and I get the following error while doing so

    Undefined variable: text_domain in C:\xampp\htdocs\wp_vs_1\wordpress\wp-content\themes\rockstart early daysV2\functions.php on line 23

    I am pretty new to wordpress and hence finding it difficult to find my way around. Any idea on how do I go about this.

    Thanks in advance
    Saurabh

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter saurabhr

    (@saurabhr)

    //Content for the left part of the front-page quick & dirty
    register_sidebar( array(
    ‘id’ => ‘front-page’,
    ‘name’ => __( ‘Front Page’, $text_domain ),
    ‘description’ => __( ‘This sidebar is for the content on the frontpage’, $text_domain ),
    ‘before_widget’ => ‘<div class=”left-box”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h4>’,
    ‘after_title’ => ‘</h4>’,
    ) );

    The above are lines 19-28 of my functions.php file. The error refers to the use of text_domain. But I have no idea what do i fix this.
    Can you help me on this.

    Thank You

    Thread Starter saurabhr

    (@saurabhr)

    Ok so I resolved the error by replacing $text_domain by ‘text_domain’.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error during Installing Theme’ is closed to new replies.