Tagged: 404
Hi,
first of all I love Enfold and Thank you very much for all those great Updates!
I want to use a shortcode to add a product-slider into my 404 Page
I added this code into error404.php but it’s not working.
do_shortcode(“[av_productslider categories='142,85,158,173' columns='3' items='9' offset='0' sort='0' autoplay='yes' interval='5' custom_class='']“);
Can you help?
Thanks a lot
lilo
Hi Lilo,
Try this:
<?php echo do_shortcode(“[av_productslider categories='142,85,158,173' columns='3' items='9' offset='0' sort='0' autoplay='yes' interval='5' custom_class='']“); ?>
Thanks,
Rikard
Hi Rikard,
I tried, but sadly with that code the page doesn’t load at all.
Another Idea?
Cheers
Lilo
Hi,
Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.
Regards,
Rikard
Hi,
We added this code in the functions.php file:
add_action('ava_after_content', 'ava_after_content_mod', 10, 2);
function ava_after_content_mod($content, $context) {
if ( $context == 'error404')
echo do_shortcode("[av_productslider categories='142,85,158,173' columns='3' items='9' offset='0' sort='0' autoplay='yes' interval='5' custom_class='']");
}
Best regards,
Ismael
Wow,
it really works now.
Thank you very much.
Cheers
Lilo