Home » Shoptimizer Theme Visual Hook Guide

Shoptimizer Theme Visual Hook Guide

by Tutor Aspire

Here’s a visual hook guide for Shoptimizer Theme by CommerceGurus, a WooCommerce theme specifically developed with speed, performance, sales conversion and UX in mind.

This visual guide belongs to my “Visual Hook Guide Series“, that I’ve put together so that you can find WooCommerce hooks quickly and easily by seeing their actual locations. Also, you can copy & paste in seconds and speed up your customization time.

Let me know in the comments what you think about this resource! Enjoy!

1. Shoptimizer Theme > Header Hooks

shoptimizer_before_site

add_action( 'shoptimizer_before_site', 'shoptimizer_header_cart_drawer', 5 );

shoptimizer_before_header

shoptimizer_topbar

add_action( 'shoptimizer_topbar', 'shoptimizer_skip_links', 0 );
add_action( 'shoptimizer_topbar', 'shoptimizer_top_bar', 10 );

shoptimizer_header

add_action( 'shoptimizer_header', 'shoptimizer_site_branding', 20 );
add_action( 'shoptimizer_header', 'shoptimizer_product_search', 25 );
add_action( 'shoptimizer_header', 'shoptimizer_secondary_navigation', 30 );
add_action( 'shoptimizer_header', 'shoptimizer_header_cart', 50 );

shoptimizer_navigation

add_action( 'shoptimizer_navigation', 'shoptimizer_primary_navigation_wrapper', 42 );
add_action( 'shoptimizer_navigation', 'shoptimizer_primary_navigation', 50 );
add_action( 'shoptimizer_navigation', 'shoptimizer_header_cart', 60 );
add_action( 'shoptimizer_navigation', 'shoptimizer_primary_navigation_wrapper_close', 68 );

shoptimizer_before_content

add_action( 'shoptimizer_before_content', 'shoptimizer_sticky_header_display', 5 );
add_action( 'shoptimizer_before_content', 'shoptimizer_header_widget_region', 10 );

shoptimizer_content_top

add_action( 'shoptimizer_content_top', 'woocommerce_breadcrumb', 10 );
add_action( 'shoptimizer_content_top', 'shoptimizer_shop_messages', 15 );

shoptimizer_before_footer

add_action( 'shoptimizer_before_footer', 'shoptimizer_below_content', 10 );

shoptimizer_footer

add_action( 'shoptimizer_footer', 'shoptimizer_footer_widgets', 20 );
add_action( 'shoptimizer_footer', 'shoptimizer_footer_copyright', 30 );

shoptimizer_after_footer

3. Shoptimizer Theme > Sidebar Hooks

add_action( 'shoptimizer_sidebar', 'shoptimizer_get_sidebar', 10 );

4. Shoptimizer Theme > Page Hooks

add_action( 'shoptimizer_page_start', 'shoptimizer_page_header', 10 );
add_action( 'shoptimizer_page', 'shoptimizer_page_content', 20 );
add_action( 'shoptimizer_page_after', 'shoptimizer_display_comments', 10 );
add_action( 'shoptimizer_homepage', 'shoptimizer_page_content', 20 );

5. Shoptimizer Theme > Post Hooks

add_action( 'shoptimizer_loop_post', 'shoptimizer_post_thumbnail', 5 );
add_action( 'shoptimizer_loop_post', 'shoptimizer_post_header', 10 );
add_action( 'shoptimizer_loop_post', 'shoptimizer_archive_post_content', 30 );
add_action( 'shoptimizer_loop_after', 'shoptimizer_paging_nav', 10 );

add_action( 'shoptimizer_single_post', 'shoptimizer_post_thumbnail_no_link', 5 );
add_action( 'shoptimizer_single_post', 'shoptimizer_post_header', 10 );
add_action( 'shoptimizer_single_post', 'shoptimizer_post_content', 30 );
add_action( 'shoptimizer_single_post', 'shoptimizer_post_meta', 40 );
add_action( 'shoptimizer_single_post_bottom', 'shoptimizer_display_comments', 20 );

You may also like