- This topic has 1 reply, 2 voices, and was last updated 6 years, 5 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Pro Themes › Education Hub Pro › Adding a Video Slider
Tagged: shortcode, slider, slider hero, Video
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?
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!!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |