WordPress.org

Ready to get started?Download WordPress

Forums

MaxFlat Core
__SMARTLIB class vs. __MAXFLAT (2 posts)

  1. richpav
    Member
    Posted 6 months ago #

    Hello again! I just tested your theme on a fresh WP install with no plugins activated. I couldn't get the home page to render unless I made two changes:

    header.php
    Line 79:

    -                     maxflat_mobile_menu(
    +                     smartlib_mobile_menu(

    ...because I was getting this error:

    Fatal error: Call to undefined function maxflat_mobile_menu() in /srv/www/wordpress-default/wp-content/themes/maxflat-core/header.php on line 79

    Then I had to fix this too in maxflat-core/smart-lib/template-tags.php:

    Line 284:
    -  $menu_item = __SMARTLIB::layout()->wp_nav_menu_select( $args );
    + $menu_item = __MAXFLAT::layout()->wp_nav_menu_select( $args );

    I'm wondering how I seem to be the only one with this problem.

  2. neverenoughnotes
    Member
    Posted 6 months ago #

    I have this same issue - just trying your resolution now - thank you!

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.