Category : divi

My issue is that I’m using Divi which doesn’t have an add to cart button feature but you can add one by putting this bit of code into functions.php : add_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 20 ); Now, I have a mini cart set up in the cart page which allows users to shop for more things ..

Read more

<a href="<?php esc_url( the_permalink() ); ?>" target="_blank" class="entry-featured-image-url"> <?php print_thumbnail( $thumb, $thumbnail[‘use_timthumb’], $titletext, $width, $height ); ?> <?php if ( ‘on’ === $args[‘use_overlay’] ) { echo et_core_esc_previously( $overlay_output ); } ?> </a> I am using divi blog module for my WordPress website. It doesn’t have the option which let me open each post in new ..

Read more

I am playing with optimizing a site built on Divi. I’m thinking that rigidly embedding the footer and header will have a positive effect on page speed – just not quite sure how to go about it. I don’t need all the know-how, just some guidance. Ideally, after rigid embedding it would still be possible ..

Read more

Here is a link to the page: https://dev-hauls.andrichmedia.ca/ Here is an image of what it looks like: https://dev-hauls.andrichmedia.ca/wp-admin/upload.php?item=259 Here is an image of what I want it to look like: https://dev-hauls.andrichmedia.ca/wp-admin/upload.php?item=260 They have the element as a child of a bunch of things and as long as it is, I cannot make it appear behind ..

Read more

Trying to add an “email this page” link to an archive page in WordPress/WooCommerce. It’s in the sidebar (so outside the loop) The code I’m hoping to end up with is <a href=mailto:?subject="(page_title)"&body="Some text (url_to_the_page_being_viewed)">Email This Page I’ve tried a bunch of things, such as <?php echo ‘<a href="mailto:?subject=’ . the_title() . ‘&body=’ . the_title() ..

Read more

I’m creating custom modules for Divi Extension(plugin). I cant get through one issue. For exampple I have Repeatable modules –> Tabs. So basically I create Tabs and TabsItem. After I can get module order class in my sprintF– > $id = ET_Builder_Element::get_module_order_class( $render_slug ); Now I need to get in child module parent module order ..

Read more

I have a web app built on WordPress that retrieves a cookie and fills a field using PHP: function prefill_fields ( $fields ) { $fields[‘default’] = $_COOKIE["storedcookie"]; return $fields; } Majority of the time this process works without any issues. However, for certain users, something strange happens: If the original cookie is: "~thisisacookie~thisisthesecondpart~thisisthefinalpart~" Then, what ..

Read more