• Resolved Henry

    (@henrybaum)


    I am mostly trying to change the output in Easy Digital Downloads. Changing “Your Cart is Empty” to “Your Cart is Empty. Something Else” is working perfectly. However, it’s also changing the output any time “Your cart is empty” appears in a post or page. Is there a way to restrict it to the checkout page? Or is this only a Pro option?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marios Alexandrou

    (@marios-alexandrou)

    There’s almost always a way to restrict where the replace happens by matching enough of the HTML code so that it’s specific to the section of the site you want.

    The pro version would give you another option or two. In particular, you could force the replace to occur only on pages with a matching URL e.g. checkout.

    Thread Starter Henry

    (@henrybaum)

    Thanks, figured it out. I was trying this and it wasn’t working:

    <span class=”edd_empty_cart”>’ . __( ‘Your cart is empty.’, ‘easy-digital-downloads’ ) . ‘</span>

    but this works:

    <span class=”edd_empty_cart”>Your cart is empty.</span>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Apply Only to Plugin Output’ is closed to new replies.