Skip Navigation

[Resolved] Code error in Divi Footer

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here was with our DIVI integration for the footer block where the output of a custom id was like this

<div id="id"=" footer-bottom""class="frow-fluid">

On the frontend. As you can see the markup was invalid.

Solution:
The issue is on line 35 in footer.php of the Divi Integration Plugin.

Change it from :

$el_id = isset( $args['cssId'] ) && ! empty( $args['cssId'] )
                    ? ' id="' . $args['cssId'] . '"'
                    : '';

The code should be:

$el_id = isset( $args['cssId'] ) && ! empty( $args['cssId'] )
                    ?  $args['cssId'] 
                    : '';
This support ticket is created 7 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 2 voices.

Last updated by Annie 7 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#514494
divi-footer.jpg

The problem is on this page: hidden link
I'm attaching a screenshot.

#514547

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Annie,

Thank you for contacting our support forum.

I'm not sure what the issue is here as i'm not seeing any error in the page.

It seems normal to me.

Thanks,
Shane

#514559

Did you check the screenshot? It's highlighted:

<div id="id"=" footer-bottom""class="frow-fluid">
#514564

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Annie,

I see, would you min d providing me with admin access to check on this for you to see whats wrong ?

The private fields will be enabled for your next response.
Thanks,
Shane

#514883

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Annie,

Thank you for the credentials and patience.

I was able to debug this and found out that its actually an issue with our divi integration with how the id is being added.

For now I will need to escalate this thread to our 2nd tier supporters for further debugging. What I would recommend that you do is to use the class option whilst our team team gets to the bottom of this one.

Thanks,
Shane

#514997

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Annie,

Thanks for the patience.

Could you try the following.

The issue is on line 35 in footer.php of the Divi Integration Plugin.

Change it from :

$el_id = isset( $args['cssId'] ) && ! empty( $args['cssId'] )
                    ? ' id="' . $args['cssId'] . '"'
                    : '';

The code should be:

$el_id = isset( $args['cssId'] ) && ! empty( $args['cssId'] )
                    ?  $args['cssId'] 
                    : '';

Please let me know if this helps.
Thanks,
Shane

#515071

That pretty much fixed it, the id attribute was formatted right, but didn't have a space after it, before the next attribute. But I was able to adjust the code to include a space between them.

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.