functions.php in child-theme (3 posts)

  1. wallyvianna
    Posted 4 years ago #

    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?

  2. Michael
    Forum Moderator
    Posted 4 years ago #

    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?

  3. wallyvianna
    Posted 4 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic