• I am trying to move the standard wordpress content below the product listings on the ‘shop’ page. I have found a ton of information regarding hooks and this to be honest is the first time I’ve encountered them.

    Can anyone provide any insight as to how I would move content (the type you throw into the ‘backend’ editor below the products? I assure you I have been hunting for the answer for some time now and whereas it has become somewhat clearer I came to the conclusion that this is probably the quickest way to my answer.

    I truly appreciate any and all insight and help you can provide, thank you. I would link the page but it’s not live currently. If that’s necessary I can make it happen but would rather not yet. Hope this makes sense, it’s late…

    ~ huckage

    https://ww.wp.xz.cn/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter huckage

    (@huckage)

    and I didn’t realize I threw this in the ‘plugins and hacks’ section, I apologize for that I will try and find a more pertinent section…

    ~

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    You should be able to move the page description with a little PHP snippet. Something like this should do the trick:

    remove_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 );
    add_action( 'woocommerce_after_main_content', 'woocommerce_product_archive_description', 5 );

    If you aren’t sure where to put this code, the following guide will help: https://www.skyverge.com/blog/add-custom-code-to-wordpress/

    Thread Starter huckage

    (@huckage)

    Thank you Caleb I truly appreciate your help. I couldn’t get that to work by either adding it to the child themes’ functions.php or trying the snippets plugin listed in that article. I did find a workaround (probably seems silly) by simply re-enabling the footer and adding my content there and then disabling the footer on every other page I don’t want the content.

    It’s just another puzzle I suppose, if you have any other ideas I will gladly try them. I always prefer to do things the proper way.

    Once again thank you for your help.

    ~

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    The above snippet seems to work for me, and moves the shop page’s content to below the products.

    It’s possible your theme has already removed the action and hooked it back somewhere else I suppose though. After you added the above code, did you maybe see the content doubled? One in the normal place and one at the bottom of the page?

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

The topic ‘hooks?’ is closed to new replies.