Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #653990

    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

    #654718

    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

    • This reply was modified 8 years, 5 months ago by Rikard.
    #654989

    Hi Rikard,

    I tried, but sadly with that code the page doesn’t load at all.
    Another Idea?

    Cheers
    Lilo

    #655523

    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

    #655879
    #656804

    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

    #656930

    Wow,

    it really works now.
    Thank you very much.
    Cheers
    Lilo

    #657438

    Hey Lilo,

    Great, glad we could help. Please let us know if you should need any more help on the topic.

    Thanks,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.