[resolved] Mantra Theme - Cannot redeclare mantra_get_theme_options (3 posts)

  1. Raaje
    Posted 4 years ago #

    Hi there,
    I have just recently installed the very cool Mantra Theme and created a child theme to make changes as desired for my site. I wanted to change the header width from 1110 to something smaller so I can upload my logo of 400x120 without it being expanded to the defaulted 1110x120.
    Anyway, I tried to change HEADER_IMAGE_WIDTH', apply_filters( 'mantra_header_image_width', $totalSize ) in [..]/mantra-child/functions.php by overiding the $totalSize with the numer 400. And I get this error:-
    Fatal error: Cannot redeclare mantra_get_theme_options() (previously declared in /homepages/32/d347763513/htdocs/wp/wp-content/themes/mantra-child/functions.php:22) in /homepages/32/d347763513/htdocs/wp/wp-content/themes/mantra/functions.php on line 27
    I replaced the mantra-child functions.php with the original but cannot enter my site at all even so.
    Can someone please tell me how I can recuperate from this error please?

    "The level of our success is limited only by our imagination" - Aesop


    [No bumping, thank you.]

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Re-upload a fresh copy of the theme to wp-content/themes using FTP.

  3. Raaje
    Posted 4 years ago #

    Ok thanks esmi, I thought of that but did nt want to lose the changes I made.
    Thanks for your reply & will do.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic