Support » Themes and Templates » functions.php in child-theme

  • I created a child-theme called “twentyten2” based in theme “twentyten”. When I put the file functions.php at child-theme folder, appears this message:
    ” Fatal error: Cannot redeclare twentyten_page_menu_args() (previously
    declared in /home/dir1/public_html/folderWP/wp-content/themes/twentyten-2/functions.php:221)
    in /home/dir1/public_html/folderWP/wp-content/themes/twentyten/functions.php
    on line 224 “
    Both files functions.php are equals, without changes.
    I just need translate a text string to my language (portuguese).
    How I fix this problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael


    Forum Moderator

    it is not possible simply to copy functions.php from a parent theme into a child theme.

    just need translate a text string

    which string?

    are you already using a language file?

    Yes, I’m using the translation wordpress 3.1-pt_BR because my WP hosting does no offer WP translated, and I need to know how make changes like that in WP.
    The text string that I need translate is “continue reading” that appears at search results, below the text of search items…
    Thanks for attention!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘functions.php in child-theme’ is closed to new replies.