Whitescreens when making changes in theme-functions.php

This topic has 11 replies, 3 voices, and was last updated 9 years, 11 months ago ago by Eva Kemp

  • Avatar: ntvmdbe
    ntvmdbe
    Participant
    December 9, 2014 at 20:25

    I would like to make some changes to theme-functions.php

    I want to translate “related posts” under a blogpost in something else.

    I want to translate “more details” when I hover a blogpost in related posts in something else.

    I want to translate “view large” and “more details” on the frontpage blog grid in something else.

    When I do this I get white screens in the backend.

    How do fix this?
    How can I make these translations?

    10 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    December 10, 2014 at 09:39

    Hello,

    You can translate those words in .po file as described in our documentation:
    https://www.8theme.com/demo/docs/royal/#!/1_how_to_translate

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: ntvmdbe
    ntvmdbe
    Participant
    December 10, 2014 at 11:18

    I followed instructions but I can’t get the translations to work.
    Can I translate directly in the theme files?
    I just want to change the title “Related posts” and the “More details” button in related posts.

    http://postimg.org/image/ezrn1jgav/

    Avatar: ntvmdbe
    ntvmdbe
    Participant
    December 10, 2014 at 11:28

    Ignore reply above.

    I installed poedit and made changes in default.po + generated a default.mo again.
    When I reupload these the changes won’t show.
    Did I forget something?
    What is the default language?

    Avatar: ntvmdbe
    ntvmdbe
    Participant
    December 10, 2014 at 13:11

    AHA! I found the problem I think. I was checking in the wrong place.

    The translations work everywhere but not on the homepage grid.
    “View large” & “More details” remain in English.

    How do I fix this?

    Avatar: ntvmdbe
    ntvmdbe
    Participant
    December 10, 2014 at 14:43

    Final update. I found the problem, now I just need the solution 🙂

    In theme-functions.php under Posts Teaser Grid I found this code:

    <div class=”zoom”>
    <div class=”btn_group”>
    <span>View large</span>
    <span>More details</span>
    </div>
    <i class=”bg”></i>
    </div>

    I assume that this is why the po mo translations don’t work on the frontpage.
    But when I make changes to the <span> I get whitescreens in the WordPress admin.
    How can I fix this?

    Avatar: Eva
    Eva Kemp
    Support staff
    December 10, 2014 at 15:50

    Hello,

    Please provide us with wp-admin panel and FTP credentials in Private Content.
    Please write the translation you want to use.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: ntvmdbe
    ntvmdbe
    Participant
    December 10, 2014 at 16:15

    Here you go!

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    December 10, 2014 at 17:51

    Hello,

    I’ve made changes in your site. Now it’s translated. Check it.

    Regards,
    Robert Hall.

    Avatar: ntvmdbe
    ntvmdbe
    Participant
    December 10, 2014 at 18:10

    Thank you!

    Avatar: Eva
    Eva Kemp
    Support staff
    December 10, 2014 at 18:41

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 11 results - 1 through 11 (of 11 total)

The issue related to '‘Whitescreens when making changes in theme-functions.php’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.