- This topic has 11 replies, 2 voices, and was last updated 3 years, 11 months ago by Leo.
-
AuthorPosts
-
May 25, 2020 at 8:54 am #1300779Edward
Hello, this theme is awesome, I love all the options. I have Galleries and a map of locations that i would like to place below the columns of Products on my Shop Page, which is also my static Front Page. I have looked around. in settings and do not see an option for this. I did internet searches for solutions to no avaiil.
Help here is greatly appreciated,
EdwardFollowing the tutorials on Woocommerce customization at BusinessBloomer.com and added the following code to the .php file of my GP child theme, but no success yet.
add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_pagination’, 10 );
function woocommerce_pagination ()(
echo (‘[Best_Wordpress_Gallery id=”19″]’);
)May 25, 2020 at 10:26 am #1300899LeoStaffCustomer SupportHi there,
What if you try
echo do_shortcode
https://developer.wordpress.org/reference/functions/do_shortcode/#user-contributed-notesMay 25, 2020 at 10:34 am #1300910EdwardLeo, thanks for the tip. It was my mistake leaving out the do_shortcode. Upon adding it, my gallery is still above my product images.
May 25, 2020 at 10:36 am #1300915EdwardStill no success, the added code into my GP Child theme .php file now reads
add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_pagination’, 10 );
function woocommerce_pagination ()(
echo do_shortcode (‘[Best_Wordpress_Gallery id=”19″]’);
)May 25, 2020 at 10:38 am #1300918LeoStaffCustomer SupportWhat if you try a lower priority?
Or maybe the
after_main_content
hook?
https://businessbloomer.com/woocommerce-visual-hook-guide-archiveshopcat-page/The theme itself doesn’t control the hooks on WooCommerce’s shop page.
May 25, 2020 at 10:56 am #1300951EdwardI tried your suggestion using
add_action( ‘after_main_content’, ‘woocommerce_output_content_wrapper_end’, 10 );
function woocommerce_output_content_wrapper_end ()(
echo do_shortcode (‘[Best_Wordpress_Gallery id=”19″]’);
)I understand if this woocommerce appearance does not fall under the scope of your support. Do you have any other suggestions for me on getting this solved? The real goal is getting my full page map shown below the products, which will not be an option using a footer widget to place content below the products. Thanks for trying!
May 25, 2020 at 11:07 am #1300967EdwardI can look at my options of adding the products via shortcode and arranging the page that way, but then I am losing the Woo options inside of Customizer.
May 25, 2020 at 11:13 am #1300979LeoStaffCustomer SupportSorry I meant to say
woocommerce_after_main_content
as suggested in this article:
https://businessbloomer.com/woocommerce-visual-hook-guide-archiveshopcat-page/May 25, 2020 at 11:18 am #1300990EdwardThanks and yes I used this, without success. I guess its kinda looking like I’ll have to go the shortcodes route.
add_action( ‘woocommerce_after_main_content’, ‘woocommerce_output_content_wrapper_end’, 10 );
function woocommerce_output_content_wrapper_end ()(
echo do_shortcode (‘[Best_Wordpress_Gallery id=”19″]’);
)May 25, 2020 at 12:54 pm #1301106EdwardThanks for checking out my situation. I just want to make sure I’ll have to head in another direction, and consider this support ticket closed.
May 25, 2020 at 4:25 pm #1301286EdwardI had () where there should have been {}
Solved, thanks for the hand holding, I probably never would have figured it out otherwise!May 25, 2020 at 4:52 pm #1301292LeoStaffCustomer SupportGlad you were able to figure out!
-
AuthorPosts
- You must be logged in to reply to this topic.