• Resolved Eric Hepperle

    (@codeslayer2010)


    I’m trying to understand how to customize the search page and I’m testing to to see if I can use the shop_isle_loop_post hook to print a simple “Hello World” literal string. But it is not working. I tried adding this to the end of my functions.php file.

    /* EHW - 2018.11.19 - Loop post */
    function ehw_test(){
    echo "<div style='background:yellow;'>AWESOME!</div>";
    }
    add_action('shop_isle_loop_post','ehw_test');

    What I expected to see was a yellow div that said “AWESOME!” after every post in my blog. But, instead I’m seeing nothing.

    1. Where can I find the documentation that details the purpose and usage of the shop_isle_loop_post hook?

    2. Why isn’t my echo statement working?

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Eric Hepperle

    (@codeslayer2010)

    I don’t know how, but it ended up fixing itself. Closing.

Viewing 1 replies (of 1 total)
  • The topic ‘Info on shop_isle_loop_post hook’ is closed to new replies.