Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1411605
    Itwebdevelopment
    Participant

    Hi I’d like to add some images under this:

    https://gyazo.com/2a17c7dbed1360f93cdfc929189ec0c0

    On this page:

    https://www.dzdrones.com/cart/

    Can you help?

    #1411969
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To add some images or custom content below the “Proceed to Checkout” button in the cart page, assuming the child theme is set up, please add the following code in your child theme’s functions.php file

    functions custom_image_content() ?>
      
      <div class="custom-content" style="clear: both;">
        <img src="http://placehold.it/300x300/" alt="custom image" />
      </div>
    
    <?php }
    add_action('woocommerce_after_cart', 'custom_image_content');

    We would loved to know if this has work for you. Thank you.

    #1411977
    Itwebdevelopment
    Participant
    This reply has been marked as private.
    #1412130
    Thai
    Moderator

    Hi There,

    I was unable to login to your FTP account.

    Please try updating the previous code to this:

    function custom_image_content(){ ?>
      
      <div class="custom-content" style="clear: both;text-align: center;">
        <img src="http://placehold.it/300x300/" alt="custom image" />
      </div>
    
    <?php }
    add_action('woocommerce_after_cart', 'custom_image_content');

    Hope it helps 🙂

  • <script> jQuery(function($){ $("#no-reply-1411605 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>