How to move the Archive Text in Genesis

For a while, I have struggled with how to remove or change location of the Archive Intro Text in a Genesis-based theme. Essentially, the idea is to move the Archive Intro Text towards the bottom of the page mostly for SEO purposes.

When I asked the questions on the StudioPress forums, I did not receive a satisfactory answer. So I did what most coders do: hack it till you discover how to do this way. Worry not, because this is not a hack. It is actually the recommended way to make a change like this.

Here is the code

https://gist.github.com/amitramani/edd26a3a7384d7c3d24d97dddbf7c12d

The first 4 lines simply unhook the actions responsible for showing the Archive Intro Text at its default position. This will make sure the Archive Intro Text does not show up in its usual location.

The rest of the code moves the Archive Intro Text down to the bottom of the page, by hooking on to the “woocommerce_after_shop_loop” action. The trick is to get the relevant parameters passed to the function that eventually displays the Archive Intro Text.

This example is limited only to moving the Archive Intro Text. You will have to extend it to display the Archive Headline to the bottom.

Do let me know if you have any questions!


Posted

in

, ,

by

Tags:

Comments

2 responses to “How to move the Archive Text in Genesis”

  1. Ron Avatar
    Ron

    Thank You Amit, works like a charm. I’ve been working on this for about a week, not sure why google just now shows me your page.

  2. CJ Avatar
    CJ

    Thank you, Amit. Any idea on how to retain the html formatting of the intro text? At the moment tags are stripped (other tags seem to work).

    Thanks again. You seem to be the only person who ever covered this! I can’t believe there haven’t been others calling for or offering solutions to this issue.

Leave a Reply

Your email address will not be published. Required fields are marked *