Tagged: slider
- This topic has 1 reply, 2 voices, and was last updated 7 years, 2 months ago by tikaram.
-
AuthorPosts
-
October 9, 2017 at 12:18 pm #124019ghsreutlingerParticipant
Somewhere I got to put this code
echo do_shortcode("[metaslider id=340]");
in order to place a slider on the homepage.
The homepage is a site that shows the newest content and not a particular fixed site.
I´ve already tried to put the code into the home.php file, but I can’t manage to position the Slider on top of the Site, but below the menu.
Now the slider is at the bottom of the website.The domain of the Site I´m struggling with is: http://www.ghsreutlinger-koeln.de
Thanks a lot for any kind of help!
October 10, 2017 at 12:16 am #124046tikaramParticipant@ghsreutlinger : I suggest you to create a child theme rather than directly editing the parent theme. If you edit the parent theme directly, all changes will be lost after theme update.
Download the child theme from the following link https://catchthemes.com/wp-content/uploads/2014/05/adventurous-child1.zip
Edit the functions.php file in the child theme and add the following functionfunction shorcode_here() { echo 'Your shortcode goes here'; } add_action( 'adventurous_before_main', 'shorcode_here', 40 );
Note replace
Your shortcode goes here
with your shortcode.
let me know if you need further assistance.Regards,
Tikaram -
AuthorPosts
- The topic ‘where do i put php-code for a slider?’ is closed to new replies.