• Hello – can anyone help a non coder?

    Using a woocommerce plugin – would like to adapt my Shops front page.

    Currently displays page description and images of subcategories.

    Would like to be able to add content beneath these images – maybe some links or just to allow me to use Site Orgin Page Builder.

    I know how to the Woocommerce product archive file into my theme and I might have found some code which might resolve my problem

    function woa_content_after_shop() {
    	echo "<p>Insert your Content here...</p>";
    }
    
    add_action( 'woocommerce_after_shop_loop', 'woa_content_after_shop')

    Problem? I don’t know where to put it within the newly copied and renamed woocommerce.php file in my theme.

    At the moment if I just paste in the code the text of the code appears at the bottom of the page.

    I can follow instructions but as you can tell no coder.

    Many thanks in anticipation

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Pasting into the copied woo template is fine, you just missed one detail we coders often take for granted.

    First insert PHP code delimiters where you want the code to go: <?php ?>
    Then paste your PHP code inside of the delimiters. Anything outside of delimiters is treated as HTML content and sent to the browser.

Viewing 1 replies (of 1 total)

The topic ‘Woocommerce plugin customisation where do I put the code?’ is closed to new replies.