Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #568643

    Hi there,

    I tried to add more google fonts to my enfold theme.
    I followed a link on this forum: https://kriesi.at/support/topic/new-custom-font/
    As suggested I added following lines to my functions.php. I did it within the wp-admin panel, in the editor. It said like “Theme Functions functions.php”.

    ____
    if(isset($avia_config[‘use_child_theme_functions_only’])) return;

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Alef’] = ‘Alef’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {
    $fonts[‘Alef’] = ‘Alef’;
    return $fonts;
    }

    _____

    After I saved, I get white screen on wp-admin, as on /. I have to say, my internet connection is bad today and might have been seeking during saving!

    I tried to locate my changes in any functions.php using ftp client, but I couldn’t find my changes.
    I tried to help myself using youtube to solve white screen issue, therefore I renamed the folder name of my only plugin and my used theme (enfold -> xenfold). It didn’t help.

    I added debug true in my wp-config.php in root WP folder.
    Like this:
    error_reporting(E_ALL); ini_set(‘display_errors’, 1);

    define( ‘WP_DEBUG’, true);
    —-

    But there is no error messages.
    Don’t know how to proceed since there is no messages, maybe there is help to get them visible?

    I would like to keep my content and the layout I created with the enfold editor.

    I appreciate any help,
    thanks
    Andreas

    #568656

    Hey AndreasRau!

    hm it’s better to change theme files via FTP. Try to delete all theme files via FTP completely and get a fresh copy from your themeforest account.

    Cheers!
    Andy

    #568659

    Thank you Andy!

    This sounds good to me.

    Just a question beforehand to clarify. Will my progress of creating my enfold template be sustained, or will I loose my appearance? Will it be stored elsewhere?

    Cheers

    • This reply was modified 8 years, 2 months ago by AndreasRau.
    #568700

    Hi!

    You can simply overwrite functions.php file or remove the code you added in wp-content/themes/enfold/functions.php file via FTP and that should fix the issue

    Cheers!
    Yigit

    #568740

    Hi Yigi,

    I did overwrite the functions already. It doesn’t help. I tried to explain this in my post above.

    So the problem still occurs.

    I would try to overwrite all template files, If someone might answer if this is overwriting my template I created with enfold. Or is it saved some where else?

    Andreas

    #568755

    Hi!

    Your content is saved on your database, if you have not made any changes on theme files (other than adding the code for additional fonts), you can overwrite all files and your site will remain the same.

    If that does not help, Please try to increase the allocated memory to 128M: http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
    You can contact your service provider and they can do it for you.

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.