Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1333424

    Dear Enfold developers,
    I have 6 licences of enfold and 5 sites are productive now, i hope you can support me even if the support period is not valid.

    I have 2 questions …

    First is maybe a bug, i get following errors:
    Notice: Undefined variable: the_id in /var/www/vhosts/ on line 48
    Notice: Undefined variable: the_id in /var/www/vhosts/ on line 73
    Notice: Undefined variable: the_id in /var/www/vhosts/ on line 85

    It was fixed in footer.php in child-theme around line 47 …
    * Allows 3rd parties to change page id’s, e.g. translation plugins
    $post = AviaCustomPages()->get_custom_page_object( ‘footer_page’, ” );
    // gerald: hack 18.12.2021: fix theme
    if ( !isset($the_id )) {
    $the_id = get_the_ID();
    // end hack 18.12.2021: fix theme
    if( ( $post instanceof WP_Post ) && ( $post->ID != $the_id ) )

    The second thing would be a little modification to the masonry grid. I would need the category description showing up when sorting via thecategory filters above the image bricks.

    I have tried to code that, in the av-helper-masonry.php (line 438 – 559 and 583 – 588) in the enfold-child shortcodes folder but the text loads or updates only on second click. Maybe you can help me at this point, it is hard for me to understand the code, what the js does and the lots of css classes and ids in the masonry.


    • This topic was modified 2 years, 5 months ago by UeEK5gEkU.

    Hey Gerald,

    Thank you for the inquiry.

    This part might to be adjusted a bit to get rid of the warning.

    if ( !isset($the_id )) {
    $the_id = get_the_ID();

    Try to replace the code with this one.

    $the_id = get_the_ID();

    Unfortunately, your other request is beyond the scope of support. You may have to hire a freelance developer to add the option in the masonry element.

    Best regards,

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