Divi is a website theme builder for WordPress websites. Use this tag for questions or problems you have with writing code in Divi.
Questions tagged [divi]
254 questions
5
votes
2 answers
Divi Theme and woocommerce_product_query not working
I am calling woocommerce_product_query but is not working in Divi theme.
I checked and it works with other built-in wordpress themes.
I am using Query Monitor and I can see that its fired correctly but still I get all products and not the one I…

netdev
- 496
- 1
- 5
- 22
3
votes
0 answers
WordPress - site_url() returns the url with http, but site url is set with https on the database
I'm getting too many redirects issue on my WordPress project.
So I've tried to find the reason and it seems to be the site url.
The thing is that the site url is correct on the database - https://dev.mydomain.com
But when I debug it with site_url()…

Jon Daveyan
- 41
- 4
2
votes
4 answers
Apply a CSS class to captions under all images (in JavaScript)
I'm using the Divi theme builder on my site. I've placed captions under each of my images in a text block. The captions are all in italics. Could anyone tell me if it's possible for me add some JavaScript that would automatically recognise the…

Lloyd
- 435
- 3
- 12
- 29
2
votes
1 answer
Hiding Google reCAPTCHA v3 with different code / disclaimer text
My name is Zach and I manage some websites that use Google reCAPTCHA v3 to protect a contact form. Many of these sites use the Divi theme builder. I would like to hide the badge icon in the lower right corner of the screen on all webpages of each…

Zach
- 21
- 2
2
votes
2 answers
How to Make the BuddyBoss BuddyPress Activity Stream Compatible With DIVI Builder?
Together with https://www.codementor.io/@robertverdes
we fixed the activity stream compatibility issue between DIVI and BuddyBoss -- it was showing shortcodes. The change is to be made in the buddyboss-theme/buddypress/activity/entry.php…

Dainis W. Michel
- 21
- 1
2
votes
1 answer
Removing auto-generated s in the mobile menu from Divi (WP Theme)
I am having an issue trying to remove some auto-generated anchor tags in a mobile menu for a customer's website. For the time being I have them "covered up" and "hidden" with CSS, but this is an obtuse solution and I'd like something eventually more…

jknight2660
- 43
- 1
- 4
2
votes
1 answer
What can cause Anchor Links to reload the page?
Recently, I've been working on a WordPress website powered by the Divi theme and builder. Some of the pages have a menu with the URLs set to ID's of certain sections of the page (anchor links) but when clicked, the page refreshes and then scrolls to…
user14937579
2
votes
2 answers
Why is my site not fully rendering after implementing WP Rocket? I get "Uncaught SyntaxError: Invalid regular expression: missing /" in my console
I've recently implemented WP Rocket on my WordPress site and suddenly it's not rendering correctly. I'm getting this error message in the console:
Uncaught SyntaxError: Invalid regular expression: missing /
I can clear the cache and it loads the…

Rob
- 897
- 3
- 8
- 22
2
votes
2 answers
error message "www/wp-includes/l10n.php on line 69" since last wordpress update 5.5.3
Since the last update of wordpress 5.5.3, i've a 505 error. from the debug mode, i've this error.
configuration:
wordpress 5.5.3
divi theme
OVH server provider
PHP 7.2
Fatal error: Uncaught Error: Call to undefined function get_option()
in…

AnnABlue
- 121
- 3
- 12
2
votes
2 answers
How to get child theme module templates to override main module template
For some reason my child theme templates are not being recognized.
I believe I have followed the correct procedure (and checked for caching etc)
/wp-content/themes/divi-child/includes/builder/module/Blog.php
should…

Sam
- 41
- 2
- 6
1
vote
0 answers
Why the slick carrousel does not align in the center?
I have used the slick slider code applyed to a Supreme before/after image slider, but i cant for some reason align it in the center of the page.
jQuery(document).ready(function() {
jQuery('.divilife-3-col-feature-blurb-slider').slick({
dots:…

Rafael Rodriguez
- 11
- 2
1
vote
0 answers
Meta refresh HTML tag accessibility error
I'm running accessibility tests on my site and am getting this error:
SC 3.2.5 - Tech H76 [WCAG 2.1 (AAA)]Using meta refresh to create an instant client-side redirect
reference link to the error https://www.w3.org/WAI/WCAG21/Techniques/html/H76
but…

LesCa
- 27
- 6
1
vote
1 answer
How to open largest version of image in lightbox upon click
I have embedded images in text blocks on my Divi website. I'd like that when the user clicks on the image, the largest/original size of the image opens up in a lightbox (instead of the thumbnail size as stated in the src). I have hundreds of images…

Lloyd
- 435
- 3
- 12
- 29
1
vote
0 answers
Divi footer not aliging to bottom of page
I have a problem with my Divi footer. I want to have it at the bottom of my page but nothing is working. Im struggling for more than 2 hours and I can't find the option.
Tried custom css, fixed footer, absolute footer its not working for me.
Here a…

Frank van Hassel
- 11
- 5
1
vote
0 answers
How to Pass Variable From Divi Module PHP variable value to React JSX
I created my own custom Divi extension .I setup Hello world Module I want to pass the myName php variable value to Frontend React JSX file , but it's unsuccessful. Please help me to rectify this issue.
Helloworld.php

Amrith Sudarshan
- 71
- 1
- 7