Hi there,
I’d like to add a text box and Rev Slider below the items in my Woo Commerce Shop
https://www.philipclay.com/shop-old/
Can anyone help at all?
Thank you so much in advance
Chris
Hi there,
I’d like to add a text box and Rev Slider below the items in my Woo Commerce Shop
https://www.philipclay.com/shop-old/
Can anyone help at all?
Thank you so much in advance
Chris
Hi Chris,
To achieve that, you can use actions and filters
You can try adding the code below in your child theme’s functions.php
file
function add_custom_box() {
if(is_shop()){
?>
<div class="mybox">
<div>ADD YOUR TEXT HERE</div>
<?php echo do_shotcode('[rev_slider alias="myslider"]'); ?>
</div>
<?php
}}
add_action( 'x_before_site_end', 'add_custom_box', 10 );
Change [rev_slider alias="myslider"]
with your revslider shortcode
Hope this helps
hi paul
thank you for the update. i’ll give this a go later today and let you know how i get on.
i also wonder if the opposite idea is possible by using actions and filters.
can i write a page and embed the shop page at the bottom of the page. do you think this would be possible?
all the best
chris
Hi Chris,
WooCommerce has the product shortcodes which you can put them in your page content builder:
Hope it helps
Hi Thai,
Thanks for the reply. I’ll give both of these ideas a go.
All the best
Chris
You’re welcome Chris
Hi Guys,
Thanks for the update. I am pleased with the changes. I ended up using the woocommerce shortcodes to add in the shop info I needed, rather than updating the functions.php as it gave an easier and better looking finish. The page looks much better. Thanks for the help
https://www.philipclay.com/shop/
All the best
Chris
You’re welcome!
We’re glad we were able to help you out.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.