Home Forums Pro Themes Education Hub Pro Adding a Video Slider

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #73815
    Michael Molter
    Participant

    Hello, I am looking to add a video slider made from the Slider Hero plugin in the same position as the Featured Slider that came with the template (disabling the featured slider of course). Slider Hero generates a line of PHP that executes a shortcode to display the slider, if placed in the proper position within the theme’s code. The generated code is <?php echo do_shortcode(“[qcld_hero id=4]”); ?>

    The closest I’ve been able to come after much effort is to have it appear beneath the header, but above the primary menu, and I’m looking to get it below the primary menu and above the Featured Content.

    Do you have a solution that can help me?

    #73831
    wensolutions
    Keymaster

    Hello @mcmolter,

    First of all thank you very much for using the Education hub pro theme.

    Now to display the slider from the hero slider plugin you have to activate the child theme.

    To create the child theme you can follow below given links:

    http://wptravel.io/how-to-create-a-child-theme/

    After activating the child theme, in your child theme functions.php file add below given code.

    function education_hub_pro_child_display_slider(){
    
    	echo do_shortcode('YOUR SHORTCODE');
    }
    add_action('education_hub_action_before_content','education_hub_pro_child_display_slider',5);

    Here replace the text “YOUR SHORTCODE” with your shortcode.

    PS: Also, we would like to inform you that since we have not tested the theme with the plugin you have mentioned so we are quite sure whether it displays the slider with the proper layout or not.

    Hope this helps.

    Best Regards!!

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